Documentation
Errors
Successful responses use 2xx status codes. Failures use standard 4xx codes with a machine-readable body.
| Status code | Description |
|---|---|
200 | OK — request succeeded. |
201 | Created — resource created. |
202 | Accepted — request queued for processing. |
401 | Unauthorized — API key missing, malformed, unknown, inactive or expired. |
403 | Forbidden — the key is valid but lacks the required scope. |
404 | Not found — the requested resource does not exist. |
422 | Validation error — see the detail array below. |
429 | Rate limited — see the Rate Limits page. |
Validation errors (422)
A 422 response contains a detail array. Each item has loc (location), msg (message) and type (error type).
{
"detail": [
{
"loc": ["body", "to_email"],
"msg": "field required",
"type": "value_error.missing"
}
]
}Authentication errors
401 Unauthorized
Returned when the API key is missing or not usable. The response also includes a WWW-Authenticate: Bearer header. Messages:
| Condition | Message |
|---|---|
| Missing or malformed key | API key required |
| Unknown key | Invalid API key |
| Inactive key | API key is inactive |
| Expired key | API key has expired |
403 Forbidden
The key is valid but does not grant the scope required by this operation.
Insufficient permissions for this operation404 Not Found
The requested resource does not exist.
Transactional email not found429 Too Many Requests
The rate limit was exceeded. See the Rate Limits page for details.