Note: the features on this page are only available to patchbay pro subscribers.

Getting a token

After successfully subscribing to patchbay pro, the next step is to get a token for your email address. This is easily done with a curl request. If I wanted a token for, I would make the following request:

curl ''

You will receive a verification email at the specified address. Once you click on the link in that email, the curl command will return with an auth token. Use that token as the value for the pb-token query parameter in the requests below. For the sake of example, we'll pretend the returned token was acgt1234.

You can create additional tokens as needed. When used in patchbay requests, the tokens unlock the patchbay pro features.

Reserving a channel

The next step is to reserve your private channel. This can also be done with a curl request. As an example, assume I want to reserve the channel name "anders". I would make the following request:

curl ''

You can now make authenticated requests to this channel. For example, you could host a web page like this:

while true; do curl '' --data-binary @index.html; done

Only users with valid tokens can read/write to that endpoint. A common pattern is to make endpoints open publicly for reading, but reserve writing for the owner. This allows you to host public websites.


patchbay uses a simple authorization system, based on paths. By default, every path is open to both reading and writing by anyone. Each path has 4 lists of permissions: Readers, Writers, Managers, and Owners. Readers can perform only GET requests. Writers can perform all requests. Managers can change Readers and Writers. Owners can change Managers. When you registered your patchbay pro account, you were added as an Owner over your reserved channel. This locked it down so that only you can control the permissions.

Adding/removing permissions is very simple. As always, it can be done using curl, in this case via the /auth/ protocol.

To add a reader:

curl ''

To remove a reader:

curl ''

The pattern is exactly the same for addWriter, removeWriter, addManager, removeManager, addOwner, and removeOwner.