Spanish Total.js
English
Documentation For AI agents
Contents

Access tokens

Create, edit, copy and remove the tokens your apps use to connect.

.md GitHub
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.

The Access tokens list with two tokens

Create a token

  1. On the Setup page, click Add next to Access tokens.
  2. In Name, type the name of the app, for example Demo app.
  3. Leave Allow to use only these channels empty to receive every channel, or add channels. See Limit a token to channels.
  4. Click SUBMIT.
  5. Click APPLY at the bottom of the page.

The token is saved only when you click APPLY. OpenSync creates the token value for you.

The Create token form with the name and one channel

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.

The options menu of an access 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.

Made in Europe