Skip to main content
Send JSON headers on every request and handle both success and error payloads consistently.

Required headers

Include these headers on every request:
  • Content-Type: application/json
  • Accept: application/json

Successful responses

Successful calls return 200 OK with a JSON body (async exports return 202 Accepted; see Exports).

Error responses

Failed calls return the matching HTTP status code with a JSON payload containing message and code:
Validation errors can also include an optional issues array: