Errors
SuperSend TX returns JSON errors that match the OpenAPI contract.
Shape
{
"error": {
"message": "Human-readable summary",
"details": {}
}
}details is optional and may include field-level validation info.
Common status codes
| Status | When |
|---|---|
400 |
Invalid JSON or failed validation |
401 |
Missing/invalid Authorization: Bearer stx_… |
403 |
Authenticated but not allowed (e.g. unverified sending domain) |
404 |
Resource not found |
409 |
Conflict (e.g. domain already claimed) |
429 |
Rate limited |
502 |
Upstream mail delivery failure |
Examples
Unverified domain (403)
{
"error": {
"message": "Sending domain is not verified"
}
}Validation (400)
{
"error": {
"message": "Validation failed",
"details": {
"to": "Required"
}
}
}Idempotency
Some write endpoints accept an Idempotency-Key header. Replays with the same key return the original success response instead of creating duplicates — see the API Explorer and OpenAPI spec for which operations support it.