Skip to main content
Brudcast signals errors with the HTTP status code first. The body then explains what went wrong. Branch on the status code, then on code when it’s present, and never on the wording of message.

HTTP status codes

Platform API errors

boolean
required
Always false.
string
required
What went wrong, in plain words.
string
A stable identifier to branch on. A few responses leave it out, so always check the status code as well.
Some codes add fields that tell you exactly what to fix: One response without a code is worth knowing about: sending an X-Organization-Id header that doesn’t match the key’s organization returns 403 with This API key cannot act on the requested organization.

Validation errors

A 422 lists every invalid field, so you can fix them all at once:

Email send API errors

The email send API returns status: false and a message:
The <reason> in a 403 is one of:
  • account suspended: the organization is suspended. Email support@brudcast.com.
  • account status cannot be verified right now: a temporary check failed. Retry with backoff.
  • sending domain is suspended for bounce or complaint rates: the domain’s bounce or complaint rate crossed the limits in Deliverability best practices.
A validation error lists each problem with its path in the body:

Using the wrong credential on the wrong host

A platform API key and a sending key look identical: both start with bk_live_ and are followed by 64 hex characters. Only the host and the header tell them apart, so sending the wrong one is the most common cause of an Unauthorized you can’t explain. Because both failures read the same as a mistyped key, check the host before you check the key:
  • core-service.prod.brudcast.com takes a platform API key in X-API-Key.
  • mailing-service.prod.brudcast.com takes a sending key in Authorization: Bearer.
Keep them in differently named variables — BRUDCAST_API_KEY and BRUDCAST_SENDING_KEY — so the two can’t be swapped by accident. See Authentication and Sending keys.

SMTP relay replies

The SMTP relay answers with standard SMTP reply codes. 4xx replies are temporary and a well-behaved client retries them. 5xx replies are permanent.

Rate limits

Limits on every surface and how to back off.

Response format

The success envelope and pagination.