Authentication
All API requests require a valid Supabase JWT token in theAuthorization header:
Obtaining a Token
Tokens are obtained through Supabase Auth:- Login via Supabase Auth (email/password)
- Receive access token and refresh token
- Include the access token in all API requests
- Refresh tokens automatically when they expire
Token Validation
The backend validates tokens using the Supabase JWT secret. Invalid or expired tokens return:Feature Guards
Some endpoints are protected by feature guards. If a feature is disabled for your team, the endpoint returns:Organization Context
Most endpoints require an organization context, passed via theX-Organization-ID header or inferred from the authenticated user’s active organization.