Error response format
Error fields
Error types
Request ID
Every response includes arequest_id (format: req_ + 12 alphanumeric characters). You can also send your own via the X-Request-Id header — the API will use it instead of generating one.
Validation errors
When multiple fields fail validation, theerrors array lists each one:
Phone number format
All phone numbers must be in E.164 format:+ followed by country code and number, no spaces or dashes.
Idempotency
All write endpoints (POST, PUT, DELETE) support an optionalIdempotency-Key header to safely retry requests.
How it works
- Send a unique
Idempotency-Keyheader with your write request (e.g., a UUID) - If the request succeeds (2xx), the response is stored for 1 hour
- If you send the same key again to the same endpoint, the API returns the stored response with an
Idempotency-Replayed: trueheader — the operation is not re-executed - If the request fails (4xx/5xx), the key is not consumed — you can retry with the same key until the request succeeds
Example
Key reuse across endpoints
Using the same idempotency key for a different endpoint or HTTP method returns a409 error with code IDEMPOTENCY_KEY_REUSE.