Skip to content

Documentation

Errors

Successful responses use 2xx status codes. Failures use standard 4xx codes with a machine-readable body.

Status codeDescription
200OK — request succeeded.
201Created — resource created.
202Accepted — request queued for processing.
401Unauthorized — API key missing, malformed, unknown, inactive or expired.
403Forbidden — the key is valid but lacks the required scope.
404Not found — the requested resource does not exist.
422Validation error — see the detail array below.
429Rate 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:

ConditionMessage
Missing or malformed keyAPI key required
Unknown keyInvalid API key
Inactive keyAPI key is inactive
Expired keyAPI key has expired

403 Forbidden

The key is valid but does not grant the scope required by this operation.

Insufficient permissions for this operation

404 Not Found

The requested resource does not exist.

Transactional email not found

429 Too Many Requests

The rate limit was exceeded. See the Rate Limits page for details.