Skip to main content
REST API Base Endpoint
The REST API is the advanced integration path for backends that need direct HTTP control or do not yet have a matching SDK capability. The /v1 segment is part of every public service URL.

URL format and API version

Every service path is appended to the same versioned base endpoint:
Each reviewed operation page shows its complete API URL above the request details so there is no ambiguity about where a request is sent.

Common request headers

The runtime accepts dev or development for Development, and prod or production for Production. Credentials and environment are resolved together: changing X-ENV does not turn a Development credential into a Production credential.

X-Privacy-Mode

X-Privacy-Mode is an optional privacy control for an individual API request. Send a truthy value such as 1 when the request contains data that should not be retained in normal observability payload logs.
Privacy Mode does not change authentication, routing, provider execution, billing, rate limiting, or usage tracking. The request runs normally, but AvraAPI does not retain the request body, non-routing request headers, provider response body, or provider response headers for that request. Only the minimum billing and usage metadata needed to operate the service is retained, including the request time, service, project and environment identifiers, credit cost, and response status. Use it deliberately for sensitive request data. It is not anonymous processing and does not remove the request’s billing or usage record. See X-Privacy-Mode — The Privacy Guarantee for the complete legal terms.

Common response behaviour

JSON provider operations use AvraAPI response envelopes. A successful operation includes success, request_id, and its operation-specific data. Error responses include success: false, request_id, a stable error.code, and a readable error.message. Some infrastructure errors also include meta; do not depend on meta being present for every operation-level validation error. The X-APIX-Request-ID response header mirrors the request identifier. Keep it when troubleshooting an API issue. Rate-limited operations return 429 and may include Retry-After; wait for that period instead of retrying in a tight loop. Media operations are documented separately because they can return image or PDF content instead of JSON. Their exact request and response media types are defined on the relevant Utilities pages.
Live Testing Guide: Before using Try it, create a Development project, then enter its Client ID and Client Secret. Configure the relevant provider for that project before sending the request.

Error-code reference

Handle every non-2xx response by HTTP status and error.code. Keep the request_id with your application logs and support request; it is also returned in the X-APIX-Request-ID header.
Typical JSON error envelope
meta is optional. In particular, directly validated operations can return a more specific error.details object instead.

Common platform errors

These codes are produced by the shared API middleware, the common exception renderer, or the Gateway request runtime. They can occur across more than one provider service.

Operation-specific errors

Some operations expose additional stable errors because they have their own input or service rules. Their endpoint page is the source of truth for those codes and response details.
Some exception names are used internally for observability or billing decisions but are not independently published as stable HTTP error.code values. This reference intentionally documents only codes that the public API contract can return to an integration.

Security boundary

Do not call the REST API from public frontend code. Your backend should read Client ID and Client Secret values from environment configuration or a managed secret store, then make the AvraAPI request on behalf of your application. See Authentication & credentials for credential lifecycle guidance and API key safety for incident response.
Last modified on October 1, 2026