Skip to main content
SuperAI Flows uses JWT-based authentication, managed through core.flows.super.ai. All API endpoints except a small set of public paths require a valid bearer token. Some endpoints (and the MCP server) additionally accept a service-account API key.

Authentication methods

Bearer token flow

1

Get your anonymous key

A public endpoint — no authentication required. The anon key is a long-lived key used only to authenticate against the auth service.
2

Authenticate to receive tokens

Returns a JWT access_token and a refresh_token.
3

Call the API with your access token

Token lifetimes

Refresh an expired access token:

API keys

Service-account API keys (prefix saf_) provide programmatic access without a login flow. Create one under Settings → Service Accounts in the dashboard, then pass it via the X-API-Key header:
API keys are the only supported method for the MCP server.
Tokens and API keys grant access to your organization’s resources — treat them like passwords. Store them in environment variables or a secret manager, use HTTPS for all requests, and never commit them to version control.

Common authentication errors

See the full Error Codes reference for details.