Error envelope
Error types
Request IDs
Every response echoes a request id in theX-Request-Id header. Include it when you contact support — it lets us find the exact request in our logs.
Rate limits
When you exceed a limit you get a429 with a Retry-After header (seconds). Wait that long, then retry. The SDK reads Retry-After and backs off automatically.
Handling errors in the SDK
Eachtype maps to a typed error subclass, so you can branch with instanceof or on err.type:
Node.js
Automatic retries. The SDK auto-retries
429 and 5xx responses with exponential backoff and full jitter (default: 2 retries). A POST is only retried when you pass an Idempotency-Key, so sends are never duplicated.