Authentication
API key
Every REST request carries the key in a header:
http
Authorization: Bearer syn_live_...- Only the
Authorizationheader is read. A key in the query string (?key=) and anX-Api-Keyheader are not accepted: they end up in logs. - Create a key in the console, section «API keys». You confirm with your password and accept the API terms.
- The key is shown once. Lost it · revoke it and create a new one.
- Up to 5 keys per account by default. More · 422
api_key_limit_reached. - The first characters of the key (
prefixinGET /account) tell keys apart; the key itself is not stored.
Key settings
| Setting | What it does |
|---|---|
| Daily limit | credits the key may spend per day, 300 by default. Resets at 00:00 UTC |
| Expiry | after expires_at the key stops working |
| Revoke | the key stops working at once |
Current values are in GET /account, object key: daily_limit, daily_spent, max_credits_per_call, expires_at.
Refusals
| Situation | HTTP | Code |
|---|---|---|
| No key, a wrong, revoked or expired key | 401 | unauthenticated |
| Many failed attempts from one IP | 429 | rate_limit_exceeded |
| Account blocked or scheduled for deletion | 403 | account_blocked, account_pending_deletion |
| API is not enabled for the account yet | 403 | api_not_enabled |
| REST is closed for the account | 403 | rest_not_included |
| Keys suspended after content filter rejections | 403 | api_key_suspended |
| Account in team mode | 403 | team_not_supported |
All four «the key did not match» cases give the same 401: the answer does not tell whether the key ever existed.
Response language
Error messages follow Accept-Language (ru or en). Without the header · the account language, otherwise English. Codes do not depend on the language.
MCP for AI agents by subscription: synesta.ai/mcp.