Guides · Reference

Errors

Every error is one envelope:

{ "error": { "code": "VALIDATION_FAILED", "message": "…", "details": [{ "field": "date", "issue": "must be YYYY-MM-DD" }], "requestId": "req_…" } }
HTTPcodeWhen
400BAD_REQUESTmalformed JSON, bad cursor, missing Idempotency-Key where required
401AUTH_REQUIRED · AUTH_INVALID_TOKEN · API_KEY_REVOKEDno, bad or revoked credentials
403ROLE_REQUIRED · SCOPE_MISSING · FORBIDDEN · READ_ONLY_MODEthe principal may not do this (read-only: the business's subscription lapsed)
404NOT_FOUNDunknown id — also another tenant's id
409NOT_AVAILABLE · ILLEGAL_TRANSITION · IDEMPOTENCY_MISMATCH · ALREADY_EXISTSthe calendar is taken, the state machine refuses, a reused key with another body
422VALIDATION_FAILED · POLICY_VIOLATIONthe body failed validation; a business rule (details say which)
429RATE_LIMITEDsee Rate limits — honour Retry-After
503DEPENDENCY_UNAVAILABLEa provider or datastore is down; retry idempotently

Include the requestId when you write to support.