Skip to main content
Branch on the HTTP status and code. The error text is written for people and may change.

Retrying safely

Only retry 429, 500 and 503, waiting longer each time.
Add an Idempotency-Key header to every POST you retry, and keep it the same across retries. If the first attempt went through, you get its response back instead of a second SMS.