API

Errors and retries

Handle validation, authorization, conflicts, limits, and temporary failures.

Status codes

StatusMeaningAction
400Invalid requestCorrect the input; do not retry unchanged.
401Authentication failedCheck the key and Bearer header.
403Scope or role deniedUse an authorized role and the required scope.
404Resource not foundConfirm the id and active organization.
409State conflictRefresh state and resolve the conflict.
429Rate limitedRetry with exponential backoff and jitter.
5xxTemporary service failureRetry idempotent work with bounded backoff.

Safe retry policy

text
attempt 1: wait about 1 second
attempt 2: wait about 2 seconds
attempt 3: wait about 4 seconds
add random jitter to each delay
stop after a bounded number of attempts
Do not automatically retry a call-trigger request unless your application can prove that a call was not already accepted.