beatra

API Reference

Public endpoint contracts for Available and Preview surfaces.

The contracts here cover what's callable today. Planned capabilities live in the Roadmap until they appear in the OpenAPI spec.

API conventions

These hold across every endpoint.

ConventionValue
Base URLhttps://api.beatra.ai/v1
AuthAuthorization: Bearer <api_key> on every request
Content typeapplication/json for request and response bodies
VersioningAll current endpoints live under /v1. Breaking changes ship under a new prefix.
IdempotencyIdempotency-Key on create-style POST; same key on retries; 24h dedup window
CorrelationX-Request-Id is echoed in every response. Send your own or let beatra generate one.

Status codes

CodeMeaning
200Success — synchronous result in the body
202Accepted — async work created, see body for task_id
400Validation error — fix the request and resend
401Missing or invalid Authorization
403API key authenticated but not permitted for this resource
404Resource or endpoint not found
409Idempotency-Key reused with a different body, or job already in a terminal state
429Rate limited — back off and retry with the same Idempotency-Key
5xxTransient server-side; retry with backoff

Error envelope

Every non-2xx response uses this shape:

{
  "error": {
    "code": "rate_limited",
    "message": "Request budget exhausted; retry later.",
    "retryable": true,
    "request_id": "req_01J5..."
  }
}

Branch on retryable. See Errors & retries and the full Error codes table.

Endpoint groups

Machine-readable spec

The OpenAPI document lists the same Available and Preview surfaces. Planned capabilities never appear in the spec.

On this page