Skip to content

Authentication

The API authenticates with an API token. A token acts as the person who created it: it reaches what they reach and may do what their role allows.

  1. Open your Profile, API & MCP tab.
  2. Under Create token, give it a Token name, such as the script or service that will use it.
  3. Optionally set Expiration days. Leave it empty for a token that never expires.
  4. Click Create token and copy it right away. It is shown only once.

Existing tokens lists each token’s name, prefix, last use and expiry. Revoke stops a token immediately; anything using it stops working.

Send the token as a bearer token on every request:

Terminal window
curl https://chelsea.example.com/api/v1/me \
-H "Authorization: Bearer $CHELSEA_TOKEN"

A request with a missing, wrong or expired token gets 401 with the code UNAUTHORIZED.

  • Chelsea’s own apps (the desktop app, the command line and the mobile apps) don’t use API tokens. They sign in through your browser with OAuth 2.1 and receive their own access tokens.
  • The web app uses its session cookie.
  • AI agents connect through MCP rather than the REST API.

GET /api/v1/instance needs no token. It returns the organization’s name and logo, its status and the addresses its sign-in uses, so an app can check an address before sending anything to it.

The API allows 120 reads and 60 writes a minute. Over the limit it answers 429 with the code RATE_LIMITED; wait and try again.