Status Codes
Each endpoint page lists the statuses it returns, with an example body for each.
Error Bodies
Most errors havesuccess: false and a readable error, sometimes with details:
message instead of error, such as an agent that doesn’t exist:
error, and fall back to message. The text is for people: branch on the status code, not on the wording.
Rate Limits
Requests are rate limited. Every response carries these headers:
Go over the limit and you get a
429 with a Retry-After header giving the seconds to wait:
429s continue.
Retrying Safely
If a request to place a call times out, don’t send it again blind. Check On-Demand activity on the campaign’s On-Demand tab in Studio first, or accept that the contact may be called twice.