Status codes
Plan-limit errors (402)
These carry upgrade: true so you can prompt the user to upgrade:
Recommendations
- Authenticate every request and handle
401by surfacing a key problem, not retrying. - Treat
402as actionable — link the user to billing rather than failing silently. - Use idempotency (
client_id) on sends so retries after a network blip never duplicate mail. - Verify webhook signatures and return
2xxquickly; failures are retried with backoff.

