Idempotency and errors
Idempotency keys
Section titled “Idempotency keys”Networks fail after the server has acted but before you heard back. Requests that create something take an Idempotency-Key header so you can retry without doing it twice:
POST /v1/invitationsPOST /v1/cases/{id}/invitations(resend)POST /v1/cases/{id}/decisionPOST /v1/cases/{id}/checks/{capability}/rerun
Use one key per intended action (for example onboarding-<your-customer-id>), not per HTTP attempt. Repeating a request with the same key returns the original result.
Other writes are naturally safe to repeat: revoking something already revoked changes nothing.
Errors
Section titled “Errors”Every error has the same shape:
{ "error": { "code": "PermissionDenied", "message": "Your role (Viewer) doesn't allow this (case.create).", "correlationId": "4a5d46d1-3743-4388-8000-d6a889fba7a2" }}| Status | code |
What to do |
|---|---|---|
| 400 | InvalidArgument |
Fix the request; the message names the field. |
| 401 | Unauthenticated |
Check the API key. |
| 403 | PermissionDenied |
The key’s role doesn’t allow it. |
| 404 | NotFound |
No such resource in your organisation. |
| 409 | Aborted / FailedPrecondition |
The resource changed or is in the wrong state: re-read it, then decide whether to retry. |
| 429 | ResourceExhausted / RateLimited |
Wait for Retry-After. |
| 5xx | Internal / Unavailable |
Retry with backoff, with the same idempotency key. |
Every response carries an X-Correlation-Id header. Quote it when you contact us; you can also send your own (X-Correlation-Id: <your id>) to match our logs to yours.