Skip to main content
Developer API endpoints are API-key guarded REST mappings over Swig backend services.

Base URL

Examples use:
Use the environment-specific base URL provided for your project when working against dev, staging, or private deployments.

Authentication

Send your API key as a bearer token:
Runtime API keys are created in the Developer Portal.
API keys are server-only credentials. Do not ship one to a browser or mobile bundle, and do not expose one through a public build-time variable such as NEXT_PUBLIC_*. Route browser and mobile traffic through your own backend, or use the Developer SDK server route adapters, which keep the key server-side for you.
The gateway also accepts x-api-key, but bearer auth is the documented and SDK-default form. This section covers runtime product APIs. Use the Developer Portal for administrative operations.

Retry safety

Treat the two request classes differently: Sponsorship is the one write where a retry is explicitly safe, because a matching idempotency key returns the original response instead of spending again. Derive that key from something stable in your own domain, such as an order id, rather than generating a new value per attempt. The Developer SDKs encode exactly this policy: GET requests use the configured retry policy, POST requests do not retry, and sponsorship retries only when an idempotency key is present.

JSON encoding

The REST API uses protobuf JSON mapping.

Request mapping

Fields in the path template go in the URL. Remaining scalar fields on GET requests become query parameters.
For POST, PUT, and PATCH endpoints, the request body is the full request message unless noted otherwise.

Field casing

The protobuf field names are snake_case. JSON transcoding accepts protobuf JSON names, which are normally camelCase. This docs section uses camelCase in JSON examples and snake_case in endpoint tables when referring to the source proto field.

Response shape

Successful responses are JSON encodings of the protobuf response message. API errors are returned by the gateway or service as HTTP errors with a gRPC status mapping. See Errors.