Skip to main content

Documentation Index

Fetch the complete documentation index at: https://stabyl.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Errors use a JSON envelope with a stable upper-case code and human-readable message.
{
  "status": "error",
  "error": {
    "code": "UNAUTHORIZED",
    "message": "missing X-Api-Key header"
  }
}
Do not parse message for control flow. Use HTTP status and error.code for programmatic handling.

Common Status Codes

StatusMeaningAction
400Invalid requestFix parameters, filters, enum values, or body fields
401Missing or invalid API keyCheck X-Api-Key
403Access or account requirement not metConfirm key access and account readiness
404Resource not foundVerify the public identifier and account context
409ConflictCheck idempotency, duplicate intent, or current resource state
429Too many requestsBack off and retry later

Retry Guidance

ClassRetry?Notes
400NoThe request is malformed or semantically invalid
401NoFix credentials or environment
403NoFix key access or account readiness
404Usually noRetry only if you expect eventual visibility after a recent action
409DependsFor idempotency conflicts, read the existing order or create a new intent
429Yes, after backoffSlow down the caller and keep idempotency keys stable for order writes
5xxYes, boundedRetry with backoff; for order writes reuse the same Idempotency-Key

Required Headers

Use X-Api-Key on authenticated endpoints. Use Content-Type: application/json on JSON writes. Use Idempotency-Key on order create, cancel, and replace requests.