Beatra

Authentication & request conventions

API keys, base URL, and headers for agent clients.

API key

Bearer authentication; every request carries:

Authorization: Bearer sk-<region>-...

Keys embed their region in the prefix (sk-row-...); use the API host that matches the key's region. Create keys in the console at console.beatra.aiDeveloper → API keys. The secret is shown only once, at creation. To rotate: create a new key → switch your deployment → revoke the old key (old and new can be active in parallel).

Console sign-in is for humans managing the account. API keys are for agents, services, MCP adapters, and background jobs. Do not embed Console session cookies into agent runtimes.

Base URL

https://api.beatra.ai/v1

Request headers

HeaderRequiredDescription
AuthorizationYesBearer <api_key>
Content-TypeYesapplication/json (except file uploads)
Idempotency-KeyStrongly recommendedSend on create-style POST requests; reuse the same key on retries. Dedupe is durable: the same key always resolves to the same task
X-Request-IdOptionalEchoed back verbatim in the response; the fastest lookup key when troubleshooting

Idempotency rules

  • Retries of the same logical operation → the same Idempotency-Key;
  • The user's intent changed → use a new key;
  • Same key with a different body → 409 idempotency_conflict.

For rate-limit response headers and 429 handling, see Rate limits.

On this page