Skip to main content
Every error response uses the same envelope:
  • code is stable. Branch your error handling on it.
  • message is human-readable and may change. It never echoes values you sent.
  • details is optional, machine-readable context.

Error codes

Details fields

Handling write_outcome_unknown

503 write_outcome_unknown means the write may already have committed. The API never retries it automatically. Follow details.recovery before issuing another write.

Retrying

  • 429 or 503 with Retry-After: wait at least that many seconds, then retry. Keep the same Idempotency-Key on writes.
  • 503 unavailable without Retry-After: retry with exponential backoff.
  • 402 insufficient_funds: add funds to your balance, then repeat.
  • Other 4xx responses: fix the request before retrying; sending the same request unchanged will fail again.
Every response carries a Request-Id header. Include it when contacting Sendblue support.