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.
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
A422 lists every invalid field, so you can fix them all at once:
Email send API errors
The email send API returnsstatus: 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.
path in the body:
Using the wrong credential on the wrong host
A platform API key and a sending key look identical: both start withbk_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.comtakes a platform API key inX-API-Key.mailing-service.prod.brudcast.comtakes a sending key inAuthorization: Bearer.
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.