Skip to main content
Sign up at the CollabKit dashboard to create your organization. Once logged in, go to Settings to find your Account ID and API Key. CollabKit uses two authentication mechanisms:

Bearer Authentication

All REST API endpoints require Bearer authentication.

Constructing the Token

The Bearer token is a Base64-encoded string combining your accountId and apiKey:

Using the Token

Include it in the Authorization header:

JWT Authentication (Client SDK)

The client SDK authenticates over WebSocket using a JWT token. You get this token when you create a user via the REST API.

Getting a JWT

The response includes a token field containing the JWT:

Using the JWT

Pass the JWT when constructing the client:
The SDK sends the JWT with the JOIN_ROOM message, which performs both authentication and room join in a single step. If the token is invalid or expired, the authFailed socket event fires:

Token Lifecycle

  • Tokens are valid for 90 days from creation
  • Each call to POST /users generates a new token for that user
  • Each call to POST /users creates a new user with a server-generated UUID
  • There is no refresh endpoint — create a new user entry to get a new token

Error Responses

Authentication failures return a standard error response: