Sign in

API reference

API reference

The exact shapes: endpoints, headers, status codes and bodies, for the reader who already has it working.

The exact shapes, for the reader who already has it working: endpoints, headers, status codes, bodies and field rules, the things somebody writes an if against. This section is for the gateway's API reference, generated from its OpenAPI description, openapi.json, one page per operation, and for the wire of the Baseline package, the passive tap.

OpenAI-compatible

Base URL https://api.recovea.ai/v1

Anthropic

Base URL https://api.recovea.ai

Declared upstreams

Base URL https://api.recovea.ai/upstream/v1

A URL the gateway does not route

404 Not Found

The answer for a path outside every pattern in this document, under the OpenAI convention for an unknown URL.

HeaderDescription
x-recovea-request-id string required

The gateway's id for this request: req_ and 32 hex characters. On every response the gateway sends, forwarded or refused. Quote it when you ask about a request.

x-request-id string required

On a forwarded response, the provider's own request id, passed through untouched. On a response the gateway originates, a req_ id the gateway fills in; it is not the same value as x-recovea-request-id.

FieldDescription
error object required
error.message string required
error.type string required
error.param string or null required
error.code string required
A path the gateway does not serve
HTTP/1.1 404 Not Found

{
  "error": {
    "message": "Unknown request URL: GET /no/such/route.",
    "type": "invalid_request_error",
    "param": null,
    "code": "unknown_url"
  }
}