Skip to main content
Sessionboard supports OAuth 2.1 with PKCE for authenticating AI assistants (Claude, ChatGPT, and other MCP-compatible clients). This enables users to authorize AI tools to query their event data through a secure, permission-based flow.

How It Works

Endpoints

All OAuth endpoints are on public-api.sessionboard.com (US) or public-api-eu.sessionboard.com (EU).

Authorization Request

Redirect the user to the authorization endpoint with these parameters:

Token Exchange

Exchange the authorization code for tokens:
Response:

Refresh Tokens

Access tokens expire after 1 hour. Use the refresh token to get a new one:
Refresh tokens expire after 7 days and are rotated on each use (the old token is revoked). A refresh is refused with 400 and "error": "invalid_grant" when the refresh token is unknown, expired or already used, or when the user is no longer an active member of the organization. In each case, send the user through the authorization flow again.

Using the Token

Include the access token as a Bearer token on API requests:
Bearer tokens work on all /v1/ endpoints alongside the existing x-access-token header authentication.

Token Revocation

Revoke a token when the user disconnects:

Available Scopes

The consent screen is where these scopes are approved. Dynamic client registration grants the scopes the server advertises, including the write scopes above. write:transcriptions and write:media are API-token scopes only.

Permission Model

OAuth tokens inherit the authorizing user’s permissions:
  • Organization admin with Connect AI assistants → token can query all events in the org
  • Event-only user with Connect AI assistants → token scoped to their permitted events
  • Connect AI assistants revoked → token stops working immediately (checked on every request)
  • User deactivated in or removed from the organization → token stops working immediately (401, “User is no longer an active member of this organization”), and refreshing it fails with invalid_grant. The user must reconnect after being reactivated.
  • AI features disabled for org → all OAuth tokens for that org are blocked
API tokens (x-access-token) belong to the organization, not to a user, so they are not affected when the person who created them leaves. The Connect AI assistants permission (in your organization’s role settings) controls who can authorize OAuth connections. It is enabled by default for Admin roles.

Server Metadata

Discover OAuth server capabilities at:
Returns supported response types, grant types, scopes, and endpoint URLs per RFC 8414.