API reference
API introduction
Base URLs, authentication, the response envelope, errors and rate limits for every BoostMails API.
| API | Base URL | Auth |
|---|---|---|
| MCP server | https://boostmails.com/api/mcp | bm_pat_… or OAuth bm_oat_… |
| Agent tools (REST) | https://boostmails.com/api/v1/tools/{tool} | bm_pat_… or bm_oat_… |
| Temp mail | https://boostmails.com/api/v1/temp-mail | bmt_… |
| Webhooks (outgoing) | Your HTTPS URL | HMAC-SHA256 signature |
Authentication#
Send the token as a bearer token on every request over HTTPS. Agent tokens and temp mail keys are separate: a bmt_ key can't call agent tools, and an agent token can't call the temp mail API.
Authorization: Bearer bm_pat_xxxxxxxxxxxxxxxxxxxx- Agent tokens: Settings → Agents → Create token, or
npx boostmails setup. See Connect an agent. - Temp mail keys: Temp inboxes → API key. Shown once.
Responses#
REST endpoints answer JSON. Success has "ok": true plus the data; failure has "ok": false and a human-readable error.
{
"ok": true,
"result": [
{
"id": "0b6f3c1e-…",
"name": "Tripkit"
}
]
}MCP follows JSON-RPC 2.0: a failing tool returns a normal result with isError: true and the message as text, so the model can read it and try again.
Status codes#
| Code | Meaning |
|---|---|
200 / 201 / 202 | Done / created / queued |
400 | Bad arguments, or the tool refused (the message says why) |
401 | Missing, malformed, expired or revoked token |
403 | Not allowed on your plan, or sending is paused (temp mail) |
404 | Not found (temp mail). Agent tools answer 400 with "… not found" instead |
409 | Conflict, such as a temp address that's already taken |
429 | Rate limited. Wait for retry-after seconds |
500 | Our error. Safe to retry reads |
Rate limits#
About 120 requests a minute per token and per IP address. Over the limit you get 429 with retry-after: 60. Plan limits (sends, agent drafts, temp inboxes a month) are separate and come back as errors with a clear message.
Ids and times#
Ids are UUID strings. Times are ISO 8601 in UTC (2026-11-30T09:12:00.000Z). Bodies you send are plain text or the Markdown subset (bold, italic, links, lists, quotes, code); HTML bodies are never accepted.