Errors & status codes

Handle GraphQL and REST failures consistently.

HTTP status codes

CodeMeaningAction
400Invalid request or validation failureFix fields, types, or path parameters.
401Missing or invalid credentialsCheck the credential and header format.
403Wrong clientId, insufficient key scope, or admin-only operationDiscover the scoped client and confirm key permissions.
404Resource not found for this client or partnerConfirm referenceId and ownership.
429Rate limit reachedBack off and retry after the indicated window.
500Unexpected server failureRetry with jitter; contact support if persistent.

GraphQL error shape

GraphQL may return HTTP 200 with an errors array. Always check errors before reading data. Production introspection is disabled, so use this reference as the schema discovery surface.

json
{"errors":[{"message":"Forbidden","extensions":{"code":"FORBIDDEN"}}],"data":null}

Troubleshooting

A 403 is usually scope, not authentication

First run getMyClients and use its id. Client keys are scoped to exactly one client, and some schema operations remain staff-only.