API reference

API introduction

Base URLs, authentication, the response envelope, errors and rate limits for every BoostMails API.

APIBase URLAuth
MCP serverhttps://boostmails.com/api/mcpbm_pat_… or OAuth bm_oat_…
Agent tools (REST)https://boostmails.com/api/v1/tools/{tool}bm_pat_… or bm_oat_…
Temp mailhttps://boostmails.com/api/v1/temp-mailbmt_…
Webhooks (outgoing)Your HTTPS URLHMAC-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.

Header
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#

CodeMeaning
200 / 201 / 202Done / created / queued
400Bad arguments, or the tool refused (the message says why)
401Missing, malformed, expired or revoked token
403Not allowed on your plan, or sending is paused (temp mail)
404Not found (temp mail). Agent tools answer 400 with "… not found" instead
409Conflict, such as a temp address that's already taken
429Rate limited. Wait for retry-after seconds
500Our 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.