Authentication
API Keys
Protected SynapseX API requests accept bearer tokens and API keys.Get an API Key
Use the CLI or the API key endpoint.Key Format
sx-, sx_live_, or sk-synapsex- placeholders. For current API-key auth, use the sk_... format accepted by the gateway and CLI.
Login Tokens
Headers
| Header | Required | Description |
|---|---|---|
Authorization: Bearer <token> | Yes, unless using X-API-Key | JWT session token or API key |
X-API-Key: sk_... | Yes, unless using bearer auth | API-key auth alternative |
X-Tenant-Id | SDK-dependent | Tenant scoping header used by SDK clients |
Plan Limits
| Plan | API Keys | API Calls/month |
|---|---|---|
| Free | 2 | 1,000 |
| Pro | 10 | 50,000 |
| Team | Unlimited | Unlimited |
| Enterprise | Unlimited | Custom |
Token Validation
Gateway services validate bearer tokens with the auth service. Public clients should not call internal validation endpoints directly. UseGET /v1/auth/me to verify the active token: