Skip to content

Get started

Authentication ​

API key ​

Every REST request carries the key in a header:

http
Authorization: Bearer syn_live_...
  • Only the Authorization header is read. A key in the query string (?key=) and an X-Api-Key header 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 (prefix in GET /account) tell keys apart; the key itself is not stored.

Key settings ​

SettingWhat it does
Daily limitcredits the key may spend per day, 300 by default. Resets at 00:00 UTC
Expiryafter expires_at the key stops working
Revokethe key stops working at once

Current values are in GET /account, object key: daily_limit, daily_spent, max_credits_per_call, expires_at.

Refusals ​

SituationHTTPCode
No key, a wrong, revoked or expired key401unauthenticated
Many failed attempts from one IP429rate_limit_exceeded
Account blocked or scheduled for deletion403account_blocked, account_pending_deletion
API is not enabled for the account yet403api_not_enabled
REST is closed for the account403rest_not_included
Keys suspended after content filter rejections403api_key_suspended
Account in team mode403team_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.