Errors
Match the HTTP status and error code to the action your integration should take.
Email and activity errors
Email, outbound-message, suppression, newsletter contact and hook endpoints use Postmark’s shape:
{
"ErrorCode": 300,
"Message": "Provide a TextBody, an HtmlBody, or both."
} ErrorCode is separate from the HTTP status. For example, ErrorCode 401 means the From domain is not hosted and comes with HTTP 422; it is not an authentication error.
| ErrorCode | HTTP | Meaning and action |
|---|---|---|
10 | 401 / 403 | Missing or invalid API key (401), a key without the required scope (403), or a call from an address outside the key's allowed IP list (403). Check the key, its organization, revocation state, endpoint scope and, for 403, its allowed IPs. |
100 | 503 | A broadcast could not be checked: the acceptable use or link blocklist check did not answer. Nothing was queued or counted. Retry the same request shortly. The check never passes content it could not judge. |
300 | 422 | Invalid message, field, header, pagination, suppression request or filter, or date filter, or an invalid contact, tag, list, hook address or event, or a mailing-list header (List-Id, or Precedence: bulk, list or junk) on the outbound stream. Also returned for an unknown email or activity endpoint, a broadcast without an organization postal address, and broadcast content refused by the acceptable use or link blocklist check (Message gives the reason). Read Message for the exact field or reason. Correct the request before retrying. |
400 | 422 | The From domain is not verified on this organization, or the API key is limited to other sending domains. For a broadcast, the From address is not on a verified newsletter subdomain of the organization. Use a verified From domain the key may send from, or ask an organization admin to verify the domain or change the key's sending domains. Broadcasts send from the newsletter subdomain set up in Newsletters settings. |
401 | 422 | The From domain is verified but not hosted on the Prawnwire mail server. Finish hosting setup so outgoing mail can be DKIM-signed. |
402 | 422 | The request body is not valid JSON. Serialize the body as JSON. Check escaping and trailing commas. |
405 | 422 | The monthly allowance or daily cap cannot fit the non-suppressed recipients in this message. For a broadcast, per recipient: the monthly marketing send limit or the newsletter contact limit is reached. For the contacts API, a new contact would go over the newsletter contact limit. Read the usage and reset information. Wait for the reset, or change the newsletter plan in Billing. |
406 | 422 | Every recipient is suppressed. Nothing was queued. For a broadcast, per recipient: the contact unsubscribed, bounced or complained. Inspect suppressions and resolve their cause before reactivating an address. An inactive newsletter contact cannot be mailed again through the API. |
409 | 422 | The request does not declare a JSON body. Set Content-Type: application/json. |
410 | 422 | The batch contains more than 500 messages. Split the array into batches of at most 500. |
411 | 422 | An attachment has a forbidden filename extension. Remove the executable or script attachment. See Attachments for the full list. |
412 | 422 | The organization is suspended, or Prawnwire paused its sending through the API while it reviews recent mail. Ask an organization admin to resolve the suspension, or write to support to ask for a review of the pause. A pause leaves mail from mailboxes alone. |
429 | 429 | This API key has exceeded its request rate limit. Wait for Retry-After, currently 60 seconds, before retrying. |
701 | 422 | The message was not found in this organization. Check the MessageID. Test sends do not exist in activity, and messages expire after 30 days. |
1235 | 422 | The message stream is not supported, or broadcast or the newsletter contacts API was used by an organization without Newsletters. Use outbound or broadcast as MessageStream, and outbound in suppression paths. Turn on Newsletters before sending broadcasts or calling the contacts API. |
1240 | 422 | The contact or webhook hook is not in this organization. A contact or hook of another organization is reported the same way. Check the email address or id, and that the key belongs to the organization that holds it. |
1241 | 422 | The contact is not subscribed: it unsubscribed, bounced or complained. The API never resubscribes it, and changes nothing about it. Leave the contact alone. Only the person can subscribe again, through a signup form. |
1243 | 503 | Webhook subscriptions are not available on this deployment. Try again later, or write to support if it persists. |
ErrorCode: 0 is success, not an error. A test send also returns 0, but does not queue mail. In a valid batch envelope, per-message errors appear inside an HTTP 200 array. Inspect every entry.
Account endpoint errors
/v1/me, /v1/domains, and /v1/members use this shape:
{
"error": {
"code": "insufficient_scope",
"message": "This key needs the domains:read scope."
}
} | Code | HTTP | What to do |
|---|---|---|
unauthorized | 401 | Supply an active key in an accepted header. |
insufficient_scope | 403 | Ask an admin for a key with the endpoint’s scope. |
ip_not_allowed | 403 | The key has an allowed IP list and this call came from outside it. Call from a listed address, or ask an admin to change the list. |
org_suspended | 403 | Ask an admin to resolve the organization’s suspension. |
rate_limited | 429 | Wait for Retry-After before trying again. |
not_found | 404 | Check the account endpoint path. |
Transport failures
An oversized HTTP body can be rejected before these handlers, with HTTP 413. Proxy errors and infrastructure failures may not have either JSON error shape. Check Content-Type and HTTP status before assuming the response body matches a send result.
On a network timeout after submission, the message might already be queued. There is no documented idempotency key. Check activity before retrying, and never replay successful batch entries. See Rate limits for safe retry handling.