Access tokens
Create, edit, copy and remove the tokens your apps use to connect.
On this page
Every client that connects to OpenSync needs a token. Create one access token for each app, so you can see who is connected and remove one app without touching the others.

Create a token
- On the Setup page, click Add next to Access tokens.
- In Name, type the name of the app, for example
Demo app. - Leave Allow to use only these channels empty to receive every channel, or add channels. See Limit a token to channels.
- Click SUBMIT.
- Click APPLY at the bottom of the page.
The token is saved only when you click APPLY. OpenSync creates the token value for you.

Copy a token
Click the ... button of a token:
- Copy URL address copies the address a client connects to, with the token:
https://sync.example.com/?token=…. - Show token shows the token in the list.
- Copy token copies only the token.

Use the token in the token query argument of the WebSocket or Server-Sent Events address.
Edit a token
Click a token, or choose Edit in its ... menu. Change the name or the channels, click SUBMIT and then APPLY. Connected clients get the new channels at once; they do not need to reconnect.
Remove a token
Choose Remove in the ... menu and click APPLY. Clients connected with that token are disconnected at once (WebSocket close code 4001), and the token cannot connect again.