Skip to content

Authentication

Every request to the BoostMail API authenticates with a bearer API key. The generated API reference shows the bearer scheme on each endpoint; this guide explains how it works in depth.

Put your key in the Authorization header on every request:

Authorization: Bearer bm_live_...

For example:

Terminal window
curl https://api.boostmail.app/v1/subscribers \
-H "Authorization: Bearer bm_live_..."

A key has two parts: the prefix bm_live_ and a 43-character base64url random segment, 51 characters in total. The live segment marks a live key. A test variant is reserved for a future test mode, so every key you mint today is a live key.

Keys are minted in the BoostMail dashboard only. There is no /v1 endpoint for creating, listing, or rotating a key.

From the dashboard: Account > API Keys > Create key. Name the key, choose its scopes, and copy the secret. BoostMail shows the secret once, at creation time, and never displays it again. If you lose it, create a new key and update your integration.

A key carries one or more scopes. An endpoint accepts a request only when the key has the scope that endpoint requires.

ScopeGrants
subscribers:readRead subscribers
subscribers:writeCreate and update subscribers
segments:readRead segments
campaigns:readRead campaigns
campaigns:writeCreate and update campaigns
campaigns:sendSend a campaign
templates:readRead templates
transactional:sendSend a transactional email
stats:readRead stats
StatusCodeWhen
401invalid_credentialThe key is missing, invalid, revoked, or suspended.
403insufficient_scopeThe key is valid but lacks the scope the endpoint requires.

A 401 response:

{
"error": {
"code": "invalid_credential",
"message": "invalid_credential"
}
}

A 403 response:

{
"error": {
"code": "insufficient_scope",
"message": "insufficient_scope"
}
}

See the Errors guide for the full error envelope and status code table.