> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paubox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> HTTP error codes returned by the Paubox Email API, with common causes and fixes.

The Paubox Email API uses standard HTTP status codes. Error responses include a JSON body describing the problem; see [Error response format](#error-response-format) below.

## Status codes

| Code | Meaning | Common cause |
| :- | :- | :- |
| `200` | OK | Request succeeded |
| `400` | Bad Request | Invalid request body: see checklist below |
| `401` | Unauthorized | Missing or invalid API key |
| `403` | Forbidden | API key valid but lacks permission for this action, or the account is in its first 24 hours after signup (see below) |
| `404` | Not Found | Resource (e.g. tracking ID, or the `template_name` on a templated message) does not exist |
| `422` | Unprocessable Entity | A dynamic template could not be rendered with the provided `template_values` |
| `429` | Too Many Requests | Rate limit exceeded; see [Limits](https://docs.paubox.com/email-api/limits.md) |
| `500` | Internal Server Error | Unexpected server-side error |
| `502` | Bad Gateway | Upstream connectivity issue; retry with backoff |
| `503` | Service Unavailable | Temporary outage; check [status.paubox.com](https://status.paubox.com) |
| `504` | Gateway Timeout | Request timed out; retry with backoff |

## 400 Bad Request: debugging checklist

A `400` usually means the request body is missing a required field or contains an invalid value. Work through this list:

> [!WARNING]
>
> **The most common causes of 400 Bad Request:**
>
> * **`from` domain not verified**: the sender address must belong to a domain you have verified in [Settings > Domains](https://next.paubox.com/settings/domains). Sending from `@gmail.com` or any unverified domain always returns a 400.
> * **Empty `recipients` array**: `data.message.recipients` must contain at least one valid email address.
> * **Missing attachment field**: every attachment needs `fileName`, `contentType`, and `content`. Inline attachments also need `contentId` and an `image/*` `contentType`.

> [!NOTE]
>
> Always include `data.message.content` with `text/plain`, `text/html`, or both. A send request with no `content` object is not rejected with a `400`; it returns a `500`.

## 401 Unauthorized

The API key is missing or malformed.

```bash theme={null}
# Check: is the Authorization header present and using a valid key?
curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.paubox.com/v1/email/message_receipt?sourceTrackingId=YOUR_SOURCE_TRACKING_ID"
```

## 403 Forbidden: new accounts

New accounts are under review for 24 hours after signup. During that window, send requests (`/messages`, `/bulk_messages`, and `/templated_messages`) return `403` with the title `Account Under Review`. Wait until 24 hours after signup and try again, or contact [support@paubox.com](mailto:support@paubox.com).

## 429 Too Many Requests

You have exceeded the rate limit for your plan. Back off and retry. See [Limits](https://docs.paubox.com/email-api/limits.md) for rate limit details.

For high-volume sending, use the [bulk messages](https://docs.paubox.com/email-api/bulk-messages.md) endpoint (recommended max 50 per request) rather than looping over individual `/messages` calls.

## Error response format

Most errors return an `errors` array. Each entry has a `code`, `title`, and `details`.

```json theme={null}
{
  "errors": [
    {
      "code": 400,
      "title": "Invalid from domain",
      "details": "From domain is not an approved sending domain for your account"
    }
  ]
}
```

A request body that is missing a required field or uses the wrong type (for example, no `data.message.recipients`) is rejected before processing with a single error object instead of an array:

```json theme={null}
{
  "code": 400,
  "title": "Invalid Request",
  "details": {
    "title": "Missing required params",
    "details": "Expected 'data.message.recipients' with Array type.",
    "code": 400
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.