SendBuzzPro API

Consoleopenapi.jsonllms.txt

Base URL: ${origin}/v1. Authenticate with Authorization: Bearer ml_… (create keys in the console). Every error looks like {"error":{"code","message","fix","docs_url"}}.

Send an email

curl ${origin}/v1/emails \
  -H "Authorization: Bearer ml_…" -H "Content-Type: application/json" -H "Idempotency-Key: order-1234" \
  -d '{"from":"Acme <hi@acme.com>","to":"ada@example.com","subject":"Your receipt","html":"<p>Thanks!</p>","tags":{"order":"1234"}}'

Each send is checked against the key’s budgets and your plan when it is accepted. Suppressed recipients (bounced, complained, unsubscribed) are dropped. Set request_approval: true to have a person approve it first. The loop guard holds a key’s 6th email with the same subject to the same person within 10 minutes.

Endpoints

POST/v1/emailsSend one email
Body: from, to, cc, bcc, reply_to, subject, html, text, headers, tags, attachments [{filename, content (base64), content_type}], scheduled_at, request_approval, topic, unsubscribe, stream (transactional | marketing). Header: Idempotency-Key. Returns the email with its status: sent, queued, scheduled, held or suppressed.
POST/v1/emails/batchSend up to 500 emails
Body: an array of email objects. Returns {data, errors}; each email is accepted or refused on its own.
GET/v1/emailsList emails
Query: status (comma separated), to, key_id, broadcast_id, stream, before, limit (≤100). Returns {data, has_more}.
GET/v1/streamsMessage streams
transactional and marketing: paused or not (and why), health, sent / delivered / bounce / complaint numbers for 7 and 30 days, settings. An unsubscribe only blocks marketing.
POST/v1/streams/{id}/pausePause a stream
Body: reason. New sends on it get 403 stream_paused, queued ones wait, the other stream keeps sending. API keys may pause (emails:send).
POST/v1/streams/{id}/resumeResume a stream
Console only (owner, admin). An automatic pause is 409 stream_auto_paused: appeal instead.
POST/v1/streams/{id}/appealAppeal an automatic pause
Console only. Body: message (10+ characters). A person reviews it.
PATCH/v1/streams/{id}Stream settings
Console only. Body: from_domain (only send this stream from that domain or its subdomains; empty clears it).
GET/v1/emails/{id}Get an email
Status, reason and event timeline.
GET/v1/emails/{id}/rawRaw message
The exact MIME message (message/rfc822).
POST/v1/emails/{id}/cancelCancel
Scheduled, queued or held emails.
POST/v1/emails/{id}/approveApprove a held email
Console only (owner, admin or approver). Body: note (optional). Who approved it and the note are kept in the timeline and the audit log.
POST/v1/emails/{id}/rejectReject a held email
Console only (owner, admin or approver). Body: note (the reason).
POST/v1/inboxesCreate an inbox
Body: username (optional; random if empty), domain (your verified domain with the receiving MX record, or empty for the shared domain), name. Use username "*" on your own domain for a catch-all.
GET/v1/inboxesList inboxes
Addresses and unread conversation counts.
GET/v1/inboxes/{id}/threadsList conversations
Query: unread=true, limit, before.
POST/v1/inboxes/{id}/sendStart a conversation
Same body as /v1/emails; sent from the inbox address so replies come back to it.
GET/v1/threads/{id}Get a conversation
Every received and sent message, oldest first.
PATCH/v1/threads/{id}Mark read / unread
Body: {"read": true}.
GET/v1/messages/{id}Get a received message
Text, HTML, attachments list, SPF/DKIM/DMARC/spam verdicts, is_auto (auto-replies, lists, bounces).
GET/v1/messages/{id}/attachments/{index}Download an attachment
POST/v1/messages/{id}/replyReply in the conversation
Body: text, html, reply_all, request_approval, attachments. Sets In-Reply-To and References. Same budgets as /v1/emails.
GET/v1/budgetRemaining budget
This key's per-minute/hour/day/month use and limits, and the account plan.
GET/v1/domainsList domains
With DNS records and per-record status.
POST/v1/domains/{id}/checkCheck DNS now
GET/v1/webhooksList webhooks
POST/v1/webhooksAdd a webhook
Body: url, events (array, or ["*"]). Returns the signing secret once.
GET/v1/webhooks/deliveriesDelivery log
Query: webhook_id, status (pending | delivered | dead).
POST/v1/webhooks/replayReplay deliveries
Body: delivery_id, or webhook_id to replay every dead delivery.
POST/v1/contactsAdd or update a contact
Body: email, first_name, last_name, data, topics {topic_id: true|false}. Only people who opted in.
GET/v1/contactsList contacts
Query: search, topic, limit, offset.
GET/v1/topicsList topics
GET/v1/broadcastsList broadcasts
GET/v1/suppressionsList suppressed addresses
Query: search, reason (bounce | complaint | unsubscribed | manual).
POST/v1/suppressionsSuppress an address
Body: email.
DELETE/v1/suppressions/{email}Remove a suppression
Console only (owner or admin); API keys get 403 console_only. URL-encode the address; confirm=true is required for a complaint.
GET/v1/approvalsRecent approval decisions
Console only. Who approved or rejected each email, their role and note.
GET/v1/membersList team members
Console only. Members, roles, pending invites and seats {used, limit}.
POST/v1/membersInvite a member
Console only (owner or admin). Body: email, role (admin | developer | approver | viewer). Emails a one-time invite link, or returns invite_url when the server has no NOTIFY_FROM.
PATCH/v1/members/{id}Change a role
Console only (owner or admin). Body: role. Applies to the member's sessions right away.
DELETE/v1/members/{id}Remove a member
Console only (owner or admin). Signs them out everywhere.
POST/v1/members/{id}/linkResend an invite / sign-in link
Console only (owner or admin). Emailed, or returned as url when the server has no NOTIFY_FROM.
POST/v1/login/emailEmail me a sign-in link
No auth. Body: email. Same answer whether or not the address is a member.
POST/v1/feedbackSend feedback
Signed in, signed out, or with an API key. Body: kind (problem | bug | idea | question), message (5–5000 characters), email (required when signed out; default: your email), page, ua, meta {viewport, theme, version}. Stored, then emailed to the SendBuzzPro team. Limits: 5 per IP an hour, 20 per workspace a day (429 feedback_rate_limited). MCP: send_feedback.
GET/v1/feedbackFeedback you sent
Console only, owner. Your workspace's submissions, newest first: {data: [{id, kind, message, page, email, status, sent_by, created_at}]}. Query: limit (≤200).
GET/v1/dashboard/layoutYour Overview layout
Console only, any role. Your own (owner or member) dashboard layout: {version: 1, range (7 | 14 | 30 | 90 days), widgets: [{id, size (1–3 columns), hidden}], customized, updated_at}. No saved layout: the default.
PUT/v1/dashboard/layoutSave your Overview layout
Console only, any role. Body: {version: 1, range, widgets: [{id, size, hidden}]}, in display order. Unknown ids are dropped, sizes snap to what the widget allows, widgets left out are added hidden. At most 40 widgets and 8 KB (400 layout_too_large).
DELETE/v1/dashboard/layoutReset your Overview layout
Console only. Back to the default layout.
GET/v1/dashboard/statsDashboard stats
Console only. Query: days (7 | 14 | 30 | 90). {contacts: {total, unsubscribed, added, series: [{day, added, total}]}, templates: [{id, alias, name, sent}] (the 5 most-sent)}.
POST/v1/login/linkUse a sign-in link
No auth. Body: token. One use, 15 minutes. Sets the session cookie.
GET/v1/configPublic settings
No auth. buyUrl, events, region, inboundDomain, and googleSignIn (true when Sign in with Google is set up; the sign-in page shows the button only then).
GET/auth/google/startSign in with Google
Browser only. Query: next (optional, a same-origin path such as /oauth/authorize?…; anything else is ignored). Redirects to Google with scope "openid email profile", PKCE S256 and a single-use state (10 minutes). 404 google_not_configured when the server has no Google client.
GET/auth/google/callbackGoogle sign-in: return
Browser only. Signs in as the person the Google account is linked to, else an active team member with that verified email (one workspace), else the license owner with that email; sets the session cookie and redirects to next. Otherwise redirects to #/login?google_error=no_account | unverified | several | state | denied | failed. Audited as auth.sign_in with method "google".
GET/v1/account/googleLinked Google account
Console only. The signed-in person's linked Google account: {linked: {email, linked_at, last_used} | null}. No Google tokens are stored.
POST/v1/account/google/connectConnect a Google account
Console only, any role. Returns {url}: open it to pick a Google account, which is then linked to you even if its email differs. A Google account can be linked to one person only (google_error=taken).
DELETE/v1/account/googleDisconnect Google
Console only, any role. Unlinks your Google account; you keep your other sign-in methods.
POST/v1/invites/acceptAccept an invite
No auth. Body: token, name. One use, 7 days. Sets the session cookie.
GET/v1/auditAudit log
Console only (owner or admin); API keys have no scopes, so they can't read it. Query: action (e.g. key or key.created), actor, q, since, until (YYYY-MM-DD), before, limit (≤200), format=csv (up to 10,000 rows).
GET/v1/templatesList templates
Query: search (name, alias or subject), status (published or draft), limit (≤200), offset. Returns {data, has_more}.
POST/v1/templatesCreate a template
Body: name, alias (unique per account; made from the name if empty), subject, html, text, from (optional default), variables [{name, default?}], publish (true to publish right away). Merge tags: {{name}} or {{name|fallback}}; values are HTML-escaped in html and left as-is in text and subject. To send with it, POST /v1/emails (or a batch, or MCP send_email) with template (id or alias), variables {…} and optionally template_version ("draft" or a number; default: the published version); from is optional when the template has one, and subject, html or text you send override the template’s. A missing variable is refused with template_missing_variables.
GET/v1/templates/{id}Get a template
By id (tpl_…) or alias. The draft, declared and detected variables, and the published version.
PATCH/v1/templates/{id}Edit the draft
Any of name, alias, subject, html, text, from, variables. Sends keep using the published version until you publish.
DELETE/v1/templates/{id}Delete a template
Deletes the draft and every version. Sends that name it are refused with template_not_found.
POST/v1/templates/{id}/publishPublish
Body: note (optional). Snapshots the draft as the next version number; sends use it from now on.
GET/v1/templates/{id}/versionsList versions
Newest first, with who published each one, the note and which one is current.
GET/v1/templates/{id}/versions/{n}Get a version
The full content of version n (or "published" / "latest").
POST/v1/templates/{id}/rollbackRoll back
Body: {"version": n}. Republishes version n as a new version number (history is never rewritten) and resets the draft to it.
GET/v1/templates/{id}/diffCompare versions
Query: from, to (version numbers or "draft"; default: the latest version against the one before it). Returns {changed, fields: [{field, changed, from, to} or {field, changed, added, removed, lines: [{op: equal|add|remove, line, old, new}]}]}.
POST/v1/templates/{id}/duplicateDuplicate
Body: name, alias (both optional). Copies the draft into a new unpublished template.
POST/v1/templates/{id}/renderRender (preview)
Body: variables {…}, version ("draft" by default, "published" or a number), strict (true: refuse when a variable is missing). Returns {subject, html, text, missing_variables}. Sends nothing.
GET/v1/contacts/{id}/propertiesGet contact properties
Returns {contact_id, email, properties}. Values keep their type (string, number, boolean, object).
PUT/v1/contacts/{id}/propertiesSet contact properties
Body: {properties: {key: value}}. Merges; a null value removes the key; replace: true drops keys you don't send. Keys: letters, numbers, _ . - (up to 64). Up to 100 per contact. Emits contact.updated.
POST/v1/contacts/properties/batchSet properties for many contacts
Body: {contacts: [{email, properties}], create_contact, consent} (up to 1,000). Unknown people are only added with create_contact and consent: true. Returns {updated, created, errors}.
POST/v1/eventsTrack a custom event
Body: name (e.g. trial.started), email, properties (≤8 KB; {{event.key}} in emails), create_contact, consent. Starts automations listening for the event. Returns {id, contact_id, automations_started, run_ids}.
GET/v1/eventsList events
Query: contact_id, name, before, limit (≤200).
GET/v1/segmentsList segments
With rules and cached member counts.
POST/v1/segmentsCreate a segment
Body: name, description, match (all | any), rules [{field, op, value, key?, days?}]. Fields: email (eq, contains, ends_with), email_domain (eq, neq), topic (subscribed, not_subscribed; value = topic id), property (eq, neq, contains, exists, not_exists, gt, lt; key), created_at (before, after, within_days), event (has, has_not; value = name, days optional), unsubscribed (is), suppressed (is).
POST/v1/segments/previewPreview rules
Body: {match, rules}. Returns {count, sample (up to 10)} without saving.
GET/v1/segments/{id}Get a segment
With a live member count.
PATCH/v1/segments/{id}Update a segment
Body: name, description, match, rules. People who now match get segment.joined; people who no longer do get segment.left.
DELETE/v1/segments/{id}Delete a segment
GET/v1/segments/{id}/contactsSegment members
Query: limit (≤200), offset. Returns {data, total, has_more}.
GET/v1/automationsList automations
Status (draft | active | paused), trigger, steps, version and run counts.
POST/v1/automationsCreate an automation
Body: name, trigger, steps. Trigger: {type: "contact.created"} | {type: "contact.subscribed", topic_id} | {type: "event", event} | {type: "segment.joined", segment_id}; reentry: true lets a contact go through again after a finished run. Steps: wait {minutes|hours|days}, send_email {from, subject, html|text, reply_to?, topic_id?} or {template_id}, condition {match, rules, yes: [steps], no: [steps]}, add_to_topic / remove_from_topic {topic_id}, set_property {key, value}, webhook {data} (emits automation.step), end. Created as a draft.
GET/v1/automations/{id}Get an automation
PATCH/v1/automations/{id}Update an automation
Body: name, description, trigger, steps. Once it has been on, a change makes a new version; running contacts finish on the version they started.
DELETE/v1/automations/{id}Delete an automation
Also deletes its runs.
POST/v1/automations/{id}/enableTurn on
Checks topics, segments and every email step (from domain verified, content). Only contacts who trigger it from now on start runs. Turned on with an API key, its emails count against that key's budgets.
POST/v1/automations/{id}/disablePause
Running contacts wait where they are until it is turned on again.
POST/v1/automations/{id}/duplicateDuplicate
A draft copy.
GET/v1/automations/{id}/runsList runs
One run per contact. Query: status (running | completed | stopped | failed), before, limit.
GET/v1/automations/{id}/runs/{run_id}Get a run
Position, next step time and the step log (done, waiting, skipped, deferred, failed) with email ids.
POST/v1/automations/{id}/stop-run/{run_id}Stop a run
GET/v1/agentsAgents fleet
Console only. One row per API key: budgets (used, limit, percent per minute/hour/day/month), rate_ceiling, last_24h {sent, held, bounced, refused {total, by_code}}, waiting_approval, loop_guard {state: clear | recent | tripped, holds_24h, last_at}, state (active | paused | killed | stopped), killed {at, by, reason}, scopes, last_used. Plus the account’s plan budgets.
GET/v1/agents/meThis key
With an API key: the same row for the key making the request, plus the account’s day and month use.
POST/v1/agents/{id}/killStop a key
Body: reason (optional). Sends with the key are refused (key_paused) and its queued or scheduled emails are held for a person. A key may stop itself (use id "me"), never another key. Audited and sent as agent.killed.
POST/v1/agents/{id}/resumeResume a key
Console only (owner or admin). A key can never resume itself. Emails held by the stop stay held until someone approves them. Audited and sent as agent.resumed.
POST/v1/agents/kill-allStop every key
Console only (owner or admin). Turns on the account kill switch (same as POST /v1/account/kill-switch). Body: reason (optional).
POST/v1/agents/resume-allResume every key
Console only (owner or admin). Turns the account kill switch off. Keys stopped one by one stay stopped.
GET/v1/keys/{id}/scopesA key’s scopes
Console only. ["full"] when no scopes were set.
PUT/v1/keys/{id}/scopesSet a key’s scopes
Console only (owner, admin or developer). Body: scopes, any of emails:send, emails:read, inboxes:read, inboxes:write, contacts:read, contacts:write, templates:read, templates:write, automations:read, automations:write, domains:read, webhooks:read, webhooks:write, or full. A key without the scope a request needs gets scope_missing. MCP tools follow the same scopes.
GET/v1/logsRequest log
API and MCP requests made with API keys: method, path, status, error_code, ms, at. Query: key_id, status (ok | error | 4xx | 429 | an error code), path (contains), method, before, limit (≤200). Returns {data, has_more, next_before}. A key sees its own requests unless it has the full scope. Kept for the plan’s history window.
GET/v1/webhooks/{id}/dead-lettersDead letters
Deliveries that used up every retry, with the payload and the last error. Replay them with POST /v1/webhooks/replay.
GET/v1/webhooks/{id}/eventsEvent history
Every event sent to this endpoint. Query: type, status (pending | delivered | dead), before, limit. Returns {data, has_more, next_before}.
POST/v1/webhooks/{id}/rotate-secretRotate the signing secret
Console only. Returns the new secret once. The next delivery is signed with it; the old secret stops working right away.
POST/v1/emails/lintLint an email
Same body as /v1/emails. Returns {ok, problems, warnings, headroom}: each item has a code, a message and a fix (missing text part or unsubscribe, spammy words, all-caps subject, too many links, image-only HTML, size, unverified domain, suppressed recipients, budget headroom). Nothing is sent or counted.
POST/v1/emails/preflightPreflight an email
Lint plus the verdict: {would: sent | scheduled | held | suppressed | simulated | refused, reason, code, fix, checks}. Runs every gate (validation, suppressions, kill switch, account health, key and plan budgets, approvals, loop guard) without sending or counting. Console callers can pass key_id to check a key’s budgets. Test mode: email to any address @test.sendbuzzpro.com (through POST /v1/emails, batch or MCP) is stored and gets real-looking events and webhooks, but never reaches SES and doesn’t count; delivered by default, bounce+…@ bounces, complaint+…@ complains. The kill switch and pauses still apply.
GET/v1/emails/{id}/explainExplain an email
A plain-language story from the email’s events, reason and hold: {headline, story [{at, type, text}], bounce_class, next_steps}.
POST/v1/emails/{id}/rescheduleReschedule
Body: {scheduled_at} (ISO 8601, within 30 days). Only scheduled emails. Fires email.rescheduled.
POST/v1/emails/bulk-cancelCancel many emails
Body: {ids: [...]} (up to 500), or {status: "scheduled" | "held"} with optional key_id. Returns {canceled, ids, not_cancelable}.
GET/v1/emails.csvExport emails as CSV
Same filters as GET /v1/emails (status, to, key_id, broadcast_id, before) plus since and limit (≤10,000). Cells that start with = + - @ are prefixed with ' so spreadsheets don’t run them.
GET/v1/why-not-sentWhy wasn’t this sent?
Query: to. The most recent refused, held, suppressed, failed or bounced email (or refusal) to that address, explained, plus its suppression entry.
GET/v1/metricsMetrics
Query: from, to (ISO, default the last 7 days, or 24 h for hours), interval (day | hour), key_id, domain. Returns {series [{start, sent, delivered, bounced, complained, opened, clicked, held, failed, rejected, suppressed, canceled, refused}], totals, rates}. Test-mode email is left out.
GET/v1/deliverabilityDeliverability by domain
For each sending domain over 7 and 30 days: sent, delivered, hard and soft bounces, complaints and rates; where it stands against the thresholds (ok, warning at 2% bounces or 0.05% complaints, at_risk at 4% or 0.08%); a daily trend; bounce types with fixes; DKIM, SPF and DMARC status (and the DMARC policy).
GET/v1/deliverability/{domain}Deliverability for one domain
The same, plus its 25 most recent bounces and complaints.
GET/v1/oauth/grantsConnected AI apps
Console only. Apps connected to the MCP server with a sign-in (OAuth): name, who connected it, last use, and the API key it acts through (its budgets apply).
DELETE/v1/oauth/grants/{client_id}Disconnect an AI app
Console only (owner or admin). Signs the app out everywhere (every token is revoked) and deletes its API key. Its past emails keep their history.
GET/.well-known/oauth-protected-resourceOAuth: resource metadata
No auth. RFC 9728 metadata for /mcp. /mcp answers 401 with WWW-Authenticate: Bearer resource_metadata="…" when there is no key or sign-in.
GET/.well-known/oauth-authorization-serverOAuth: server metadata
No auth. RFC 8414 metadata: authorize, token, register and revoke endpoints; PKCE S256; public clients only.
POST/oauth/registerOAuth: register an app
No auth. RFC 7591 dynamic client registration. Body: client_name, redirect_uris (https, http://localhost or an app scheme). Returns client_id.
GET/oauth/authorizeOAuth: consent page
Query: response_type=code, client_id, redirect_uri, code_challenge, code_challenge_method=S256, state. Signed-out people sign in first. Owners, admins and developers can approve; the app gets its own API key with default budgets.
POST/oauth/tokenOAuth: get tokens
Form or JSON. grant_type=authorization_code (code, client_id, redirect_uri, code_verifier) or grant_type=refresh_token. Access tokens (ml_oat_…) last 1 hour; refresh tokens rotate on every use and last 60 days.
POST/oauth/revokeOAuth: revoke a token
RFC 7009. Body: token (access or refresh). Always 200.
GET/v1/reportsScheduled reports
Each schedule (frequency, weekday/monthday, send_time and timezone, recipients, member_ids, sections, format, branding, enabled, next_run_at) with its last run, the section ids you can pick (the dashboard widgets) and the workspace limits.
POST/v1/reportsCreate a scheduled report
Owner, admin or developer. Body: name, frequency (daily | weekly | monthly), weekday (0–6), monthday (1–28), send_time (HH:MM), timezone (IANA), recipients (emails), member_ids, sections, format (pdf | email), branding {client_name, logo_url, accent}, enabled. Each run covers the previous period (yesterday, the 7 days before, last month) in that time zone. At most 20 schedules, 20 recipients each and 50 in total.
PATCH/v1/reports/{id}Change a report
Any of the fields above. DELETE /v1/reports/{id} deletes it and its history.
GET/v1/reports/{id}/previewPreview a report
The report as HTML for the last complete period. POST /v1/reports/preview previews an unsaved draft (same body as create).
POST/v1/reports/{id}/sendSend a report now
Body: {test: true} sends only to you (the person signed in); otherwise it goes to every recipient for the last complete period. 10 by hand per report an hour.
GET/v1/reports/{id}/runsReport history
Every run: kind (scheduled | manual | test), period, status (pending | sending | sent | failed), attempts (failed runs retry up to 3 times), how many were sent. GET /v1/reports/runs/{run_id}/download?format=pdf|html downloads it again.
POST/v1/reports/logoUpload a logo
Body: {content (base64), content_type (image/png, jpeg, gif or webp)}, under 200 KB. Returns {url} for branding.logo_url or a portal.
GET/v1/portalsClient portals
Owner or admin to change. A portal is a read-only page at /portal/{token} with chosen sections for chosen domains/tags. POST {name, logo_url, accent, scope {domains, tags ["key:value"]}, sections, password?, expires_at?} returns the link once (it is stored hashed). PATCH /v1/portals/{id}; POST …/revoke; POST …/rotate (new link); DELETE.
GET/v1/approval-linksClient approval links
Requests for a client to approve a broadcast or template draft at /portal/approve/{token} without signing in. POST {kind: broadcast | template, target_id, client_name, expires_days} returns the link once. While a request is open, sending the broadcast or publishing the template is refused (client_approval_required) until it is approved; an edit after approval needs a new approval (changed_since_approval).
POST/v1/approval-links/{id}/approveApprove for the client
Console only, approver role or above. Body: {comment}. POST …/cancel cancels the request; GET …/events lists every view and decision with IP, browser and time.
POST/v1/login/two-factorFinish a two-step sign-in
No auth. When two-step verification is on, POST /v1/login, /v1/login/link, /v1/invites/accept and the Google callback don't start a session: they return {two_factor: "verify" | "enroll", pending} (Google redirects to #/login?two_factor=…&pending=…). Body: pending, code (6 digits from the authenticator app, or a recovery code). Sets the session cookie. Pending sign-ins work once, for 10 minutes and 5 tries; 5 wrong codes per account in 10 minutes → 429 two_factor_rate_limited.
POST/v1/login/two-factor/setupSet up two-step during sign-in
No auth. Body: pending (kind "enroll": the owner requires two-step for members). Returns {secret, secret_grouped, otpauth_uri}; then POST /v1/login/two-factor with a code turns it on and returns recovery_codes.
GET/v1/account/two-factorYour two-step verification
Console only, any role. {enabled, enabled_at, recovery_codes_left, required, policy: {require_members, can_change}}.
POST/v1/account/two-factor/setupStart two-step setup
Console only. A new TOTP secret (RFC 6238, SHA-1, 6 digits, 30 s): {secret, secret_grouped, otpauth_uri}. Not on until enabled.
POST/v1/account/two-factor/enableTurn on two-step
Console only. Body: code. Returns 10 one-time recovery_codes (shown once, stored hashed). Audited as two_factor.enabled.
POST/v1/account/two-factor/disableTurn off two-step
Console only. Body: code (or a recovery code). Refused with two_factor_required while the owner requires it for members. Audited.
POST/v1/account/two-factor/recovery-codesNew recovery codes
Console only. Body: code (from the app). The old codes stop working.
GET/v1/account/two-factor/policyTeam two-step policy
Console only (owner or admin). {require_members, members: [{id, email, role, two_factor}]}.
PUT/v1/account/two-factor/policyRequire two-step for the team
Console only, owner. Body: {require_members: true|false}. Members without it set it up at their next sign-in.
GET/v1/account/sessionsYour signed-in sessions
Console only. {data: [{id, current, ip, user_agent, method, created_at, last_used, expires_at}]}.
DELETE/v1/account/sessions/{id}Sign out a session
Console only. Audited as session.revoked.
POST/v1/account/sessions/revoke-othersSign out everywhere else
Console only. Every session of yours except this one.
GET/v1/alertsAlert destinations
Console only. Slack, Discord and webhook destinations (URLs masked) and the alert types: bounce_spike, domain_failed, kill_switch, webhook_failing, quota_80, quota_100.
POST/v1/alertsAdd an alert destination
Console only (owner, admin, developer). Body: kind (slack | discord | webhook), url (https://hooks.slack.com/services/…, https://discord.com/api/webhooks/…, or any public https URL), name, events [alert types], quiet_hours {start "HH:MM", end, timezone} | null, enabled. Up to 20.
PATCH/v1/alerts/{id}Change an alert destination
Console only. Any field of POST.
DELETE/v1/alerts/{id}Remove an alert destination
Console only.
POST/v1/alerts/{id}/testSend a test alert
Console only. Body: alert (optional type). Posts right away, ignoring quiet hours; returns the delivery.
GET/v1/alerts/deliveriesAlert delivery log
Console only. The last 50: {id, destination, alert, title, status (pending | quiet | sent | failed), attempts, last_code, last_error, created_at, sent_at}. Query: destination_id. Failed posts retry 5 times over ~8 hours.
GET/statusStatus page
Public HTML: API, sending, dashboard and webhooks with their current state (from the last 15 minutes of errors, the send queue and cron runs), open incidents and 90-day uptime bars.
GET/status.jsonStatus (JSON)
Public. {status, components [{id, name, status, detail}], incidents, recent_incidents, uptime {component: {percent, days [{day, status, uptime}]}}}.
POST/admin/status/incidentsPost an incident
Instance owner: Authorization: Bearer STATUS_ADMIN_KEY. Body: title, message, status (investigating | identified | monitoring | resolved | scheduled | in_progress | completed), impact (minor | major | maintenance), components. Also GET (list), PATCH /admin/status/incidents/{id} {status, message} and DELETE.
GET/v1/templates/{id}/designVisual design of a template
Returns {template_id, mode: "visual" | "code", design | null, updated_at}. The design is the visual builder’s JSON: {version: 1, settings: {width (320–800), background, content_background, brand_color, text_color, font}, blocks: [...]}.
PUT/v1/templates/{id}/designSave a visual design
Body: design, subject (optional), publish (optional), note. Renders table-based, inline-styled HTML (Outlook-safe width, mobile stacking, light/dark meta) and a plain-text version into the template’s draft, and keeps the JSON so it can be edited again. Block types: heading {text, level}, text {html: bold/italic/underline/links only}, button {label, url, button_color, button_text_color, radius}, image {src (https URL), alt, href, width}, divider {thickness, line_color}, spacer {height}, columns {columns: 2 or 3 lists of blocks}, social {links: [{network, url}]}, footer {html; use {{unsubscribe_url}} and {{preferences_url}}}, html {html}. Every block takes style {padding [t, r, b, l], align, color, background, font (Arial, Helvetica, Georgia, Times New Roman, Verdana, Tahoma, Trebuchet MS, Courier New), font_size}. Errors: invalid_design, design_too_large.
DELETE/v1/templates/{id}/designBack to the code editor
Drops the design; the HTML stays.
POST/v1/templates/design-previewRender a design
Body: design, preview_text. Returns {html, text, react_email} without saving.
GET/v1/templates/{id}/react-emailExport as React Email
Returns {filename, code}: a .tsx file using @react-email/components. Merge tags stay as text.
POST/v1/templates/{id}/testSend a test of the draft
Body: to (1–5 addresses), from (default: the template’s), variables. Subject gets “[Test]”. Budgets and suppressions apply.
POST/v1/broadcastsCreate a broadcast
Body: name, from, reply_to, subject, html, text, topic_id, and optionally template_id (a published template: its content is used and refreshed at send time), segment_id (only contacts in that segment), preview_text, ab_test {subjects: [2–3], percent (5–50), metric (opens | clicks), hours (1–72)} or null. Returns the broadcast with audience (how many would get it) and approval_required.
PATCH/v1/broadcasts/{id}Edit a draft broadcast
Same fields; fields you leave out keep their value. Editing an approved draft needs a new approval.
POST/v1/broadcasts/{id}/sendSend or schedule a broadcast
Console only. Body: scheduled_at (optional), send_time (optional, see Send-time optimization; not with an A/B test). Every broadcast, however it was created (console, API, MCP or the Resend-compatible API), goes this way and every email gets List-Unsubscribe + List-Unsubscribe-Post (one-click, RFC 8058) and a footer linking the hosted preference center. Checks the from domain, the audience, your plan and the kill switch, then queues one email per contact (sent in batches each minute). When the team has an approver, the broadcast waits for approval instead (approval.status = pending; approvers are emailed). With an A/B test, the test group gets the subjects first (status testing) and the rest wait for the winner.
POST/v1/broadcasts/{id}/approveApprove a broadcast
Console only (owner, admin or approver). Body: note. Sends (or schedules, with the send_time asked for) it right away. Refused with client_approval_required while a client approval link for it is open.
POST/v1/broadcasts/{id}/rejectReject a broadcast
Console only (owner, admin or approver). Body: note (the reason). It stays a draft.
POST/v1/broadcasts/{id}/ab/decidePick the A/B winner now
Console only. Body: variant (optional; default: the best open or click rate so far). The rest of the audience gets that subject. The cron does this by itself after ab_test.hours.
POST/v1/broadcasts/{id}/cancelCancel a broadcast
Stops emails not sent yet, a running A/B test, or a pending approval.
POST/v1/broadcasts/{id}/testSend a test copy
Body: to (1–5 addresses). Subject gets “[Test]”.
GET/v1/broadcasts/{id}/reportBroadcast stats
Returns {sent, delivered, opened, clicked, unsubscribed, bounced, complained, failed, rates {delivery, open, click, unsubscribe, bounce, complaint} (percent), links: [{url, clicks, unique_clicks}], ab_test {metric, winner, variants: [{variant, subject, sent, opens, clicks, open_rate, click_rate}]}}.
GET/p/{token}Hosted preference center
No auth (signed link in every broadcast footer, merge tag {{preferences_url}}; {{unsubscribe_url}} opens it with ?unsubscribe=1). The recipient unsubscribes from all, picks topics, or fixes their name. Branded with your preference center settings.
POST/p/{token}/one-clickOne-click unsubscribe (RFC 8058)
No auth. Body: List-Unsubscribe=One-Click. Every broadcast email has List-Unsubscribe: <…/p/{token}/one-click> and List-Unsubscribe-Post: List-Unsubscribe=One-Click. Unsubscribes from the broadcast’s topic, or from everything when it has none. Fires contact.unsubscribed.
GET/v1/preference-centerPreference center branding
Returns {brand_name, logo_url, brand_color, footer, example_url}.
PUT/v1/preference-centerBrand the preference center
Owner, admin or developer. Body: brand_name, logo_url (https), brand_color (#RRGGBB), footer (e.g. your postal address).
POST/v1/topicsCreate a topic
Body: name, description, default_in (true: everyone gets it unless they opt out; false: only people who subscribe).
PATCH/v1/topics/{id}Edit a topic
Body: name, description, default_in.
DELETE/v1/topics/{id}Delete a topic
GET/v1/contacts/{id}/topicsA contact’s topics
Returns {contact_id, email, unsubscribed, topics: [{id, name, description, default_in, subscribed, explicit}]}.
PUT/v1/contacts/{id}/topicsSet a contact’s topics
Body: topics {topic_id: true | false}. Fires contact.topic_updated with what changed. Sends with "topic" (and broadcasts to a topic) only reach contacts subscribed to it; others are suppressed.
GET/v1/contacts/{id}/preferences-urlA contact’s preference link
Returns {url}: their signed preference center link.
GET/v1/inbound/domainsInbound domains
Receiving domains for inbound parsing, with the MX records to add (default: 10 mx.sendbuzzpro.com, SendBuzzPro’s inbound mail server; operators can change it with INBOUND_MX_HOSTS), their status and the DMARC report address dmarc@<domain>.
POST/v1/inbound/domainsAdd an inbound domain
Owner or admin (developers too). Body: name (a subdomain you control, e.g. in.example.com), webhook_url (optional default endpoint). Returns the domain with its MX records.
POST/v1/inbound/domains/{id}/checkCheck MX records
Looks the MX records up over DNS; verified once one points at us.
PATCH/v1/inbound/domains/{id}Update an inbound domain
Body: webhook_url, enabled.
DELETE/v1/inbound/domains/{id}Remove an inbound domain
Mail to it is refused from then on.
GET/v1/inbound/domains/{id}/secretInbound signing secret
Console only. Each inbound POST has ml-signature: t=<unix>,v1=<hex HMAC-SHA256 of "t.body"> with this secret, like webhooks.
GET/v1/inbound/routesRouting rules
Query: domain_id. Rules are checked in order (position), first match wins; no match → the domain’s webhook_url.
POST/v1/inbound/routesAdd a routing rule
Body: domain_id, pattern (local part or address with * wildcards: support, billing+*, *, *@in.example.com), url, position.
PATCH/v1/inbound/routes/{id}Update a routing rule
Body: pattern, url, position, enabled.
DELETE/v1/inbound/routes/{id}Delete a routing rule
GET/v1/inbound/messagesParsed inbound email
Query: domain_id, status (pending | delivered | failed | no_route | stored), before, limit. Each message: from, to, subject, attachments, is_spam, auth {spf, dkim, dmarc}, delivery status and attempts.
GET/v1/inbound/messages/{id}One parsed email
Plus payload: exactly what was POSTed (see “Inbound parsing” below).
POST/v1/inbound/messages/{id}/redeliverRedeliver
POSTs the stored payload again. Failed POSTs also retry by themselves 6 times over ~20 hours.
GET/v1/ips/poolsIP pools
Dedicated IP pools: ips, the sending domains that use them (domains) and ready (IPs assigned).
POST/v1/ips/poolsCreate an IP pool
Body: name, domains.
PATCH/v1/ips/pools/{id}Update an IP pool
Body: name, domains (your sending domains; a domain belongs to one pool). Email from those domains goes out through the pool.
GET/v1/ips/requestsDedicated IP requests
Requests and their status: requested, provisioning, active, declined.
POST/v1/ips/requestsRequest dedicated IPs
Console only, owner or admin, paid plans. Body: count (1–4), pool_name, note. SendBuzzPro leases the IPs in Amazon SES and fills the pool; a 30-day warmup starts by itself.
GET/v1/warmupWarmup plans
Each plan: target_type (pool | domain), target, curve (emails allowed per day), day, today {cap, sent, remaining, deferred, overflowed}, history and overflow.
POST/v1/warmupStart a warmup
Body: target_type, target (pool id or domain), curve (array of daily volumes, optional), or days (5–60) and target_volume for a generated ramp; overflow: queue (send the rest tomorrow) or shared (send it through the shared pool). Enforced right before SES.
PATCH/v1/warmup/{id}Change a warmup
Body: curve, overflow, status (active | paused).
DELETE/v1/warmup/{id}Stop a warmup
GET/v1/blocklistsBlocklist status
Every verified sending domain and sending IP against Spamhaus ZEN/DBL, Barracuda, SpamCop, SORBS, Mailspike, PSBL, URIBL and SURBL: state (listed | clear | error | unchecked) per list, with removal links. Checked daily; a new listing fires deliverability.blocklisted and emails the owner.
POST/v1/blocklists/checkCheck blocklists now
At most every 10 minutes.
GET/v1/dmarcDMARC reports
Query: days (1–90), domain. Returns rua {address, record}, totals, series [{day, pass, fail}], sources [{source_ip, count, spf_pass, dkim_pass, dmarc_pass, status: authorized | partly_failing | unknown}], unknown_senders and the latest reports.
GET/v1/send-timeSend-time overview
The workspace’s best hour (learned from opens and clicks in each person’s local time; 10:00 until there are enough), the hour histogram, timezone coverage and the default timezone.
GET/v1/send-time/contacts/{email}One person’s send time
timezone (contact field “timezone”, or inferred from the IP of past opens), best_hour, and when a send_time "best" email would go out.
PUT/v1/send-time/settingsDefault timezone
Body: default_timezone (IANA, e.g. Europe/London), used for people whose timezone is unknown.
POST/v1/send-time/previewPreview a send time
Body: email, send_time. Returns send_at.
GET/v1/contacts/{id}/engagementA contact’s engagement
Returns engagement (hot | warm | cold | never_engaged | new), engagement_score (0–100), last_engaged_at, last_opened_at, last_clicked_at, opens_90d, clicks_90d, received_90d, list_health {state: reengaging | sunset | null}, recent opens and clicks (machine opens flagged), interests, top_interest and scores. GET /v1/contacts and GET /v1/contacts/{id} also carry engagement, engagement_score, last_engaged_at, sunset, interests and top_interest; GET /v1/contacts takes ?engagement=hot (or sunset) and ?interest=shoes.
GET/v1/contacts/{id}/interestsA contact’s interests
Returns {interests, top_interest, scores: [{interest, score, last_at, source: click | event | manual}], half_life_days: 30}. Scores decay with a 30-day half-life.
PUT/v1/contacts/{id}/interestsSet a contact’s interests
Body: {interests: [...]} replaces the list, or {add: [...], remove: [...]}. Lower-case, up to 40 characters each. Also kept in the contact property “interests” (a JSON array) and the merge tags {{interests}} / {{top_interest}}.
GET/v1/engagement/settingsEngagement settings
Returns {ignore_machine_opens, thresholds {hot, warm, new_days}}.
PUT/v1/engagement/settingsChange engagement settings
Owner, admin or developer. Body: ignore_machine_opens (opens within 2 s of delivery or from proxy / scanner user agents are flagged “machine:” and left out of open rules, open triggers and the score), thresholds {hot, warm (1 ≤ warm < hot ≤ 100), new_days}.
GET/v1/engagement/mixEngagement mix
Subscribed contacts per level, plus sunset and reengaging counts.
GET/v1/link-rulesLink rules
URL pattern → interests. ?url=… returns the interests a click on that URL would add.
POST/v1/link-rulesAdd a link rule
Body: op (contains | eq | prefix | matches_domain), pattern, interests. Up to 200.
PATCH/v1/link-rules/{id}Edit a link rule
Body: op, pattern, interests.
DELETE/v1/link-rules/{id}Delete a link rule
PUT/v1/link-rules/by-urlInterests for one link
Body: url, interests (empty removes them). What the visual builder’s button settings use.
POST/v1/link-rules/testTest link rules
Body: url. Returns the interests a click would add.
GET/v1/list-healthList health settings
Returns {enabled, days, min_received, sunset_days, automation, last_run_at}.
PUT/v1/list-healthSet up list health
Body: enabled, days (7–730, default 90: no open, click or event for this long), min_received (default 5 emails), sunset_days (default 30), automation_id (empty: a “We miss you” flow is created and turned on — 2 emails 7 days apart with a Keep-me-subscribed button).
GET/v1/list-health/reportList health report
Engagement mix, enrolled / re-engaged / sunset in 90 days, and an estimate of the open and bounce + complaint rates without unengaged contacts.
POST/v1/list-health/runRun list health now
Console only, once a minute. It also runs every hour.
POST/v1/templates/{id}/previewPreview as a contact
Viewers too. Body: contact_id or email (a real contact), or variables (sample data; leave everything out for Ada Lovelace), version (draft | published | n). Returns the exact subject, preview_text, html and text that person gets, missing_variables, context {interests, top_interest, engagement, engagement_score}, conditions [{line, kind, expr, matched, branch}] (which {{#if}} branches matched), segments [{ref, id, name, matched}] and events [{name, happened}].
POST/v1/templates/{id}/preview-segmentsPreview segments
One render per interest (has_interest "…") and segment (in_segment "…") the template mentions, plus “Everyone else”, each with a real contact from that group when there is one (else sample data). Returns {data: [{label, kind, contact, subject, html, text, conditions}]}.
POST/v1/personalization/previewPreview unsaved content
Like the template preview, for content that isn’t saved yet. Body: subject, html, text, preview_text, or design (a visual-builder design), plus contact_id / email / variables.
POST/v1/personalization/preview-segmentsCompare unsaved content by segment
Body as above.
POST/v1/personalization/validateCheck template syntax
Body: subject, html, text, ab_subjects. Returns {ok, variables, refs} or 400 template_syntax_error with the line, column and a fix.
GET/v1/personalization/startersStarter designs
The “Picked for you” visual design: a dynamic section by interest (shoes / bags / everyone else) with three product cards each. PUT it to /v1/templates/{id}/design.

Receiving email

Create an inbox, and email sent to it fires email.received with the message id, conversation id and sender. Read the conversation with GET /v1/threads/{id} and answer with POST /v1/messages/{id}/reply. Messages marked is_auto are auto-replies, mailing lists or bounces: don’t answer them automatically.

MCP for AI agents

URL ${origin}/mcp (Streamable HTTP). Apps that support sign-in (Claude, ChatGPT, Claude Code, OpenAI Codex, Perplexity, Google Antigravity, Gemini CLI, Cursor, VS Code, OpenCode and others) find it on their own through OAuth: /mcp answers 401 with WWW-Authenticate: Bearer resource_metadata="…". The person approves the app, and it gets its own API key with its own budgets. Or send the same Bearer key as the REST API. Tools cover sending (send_email, batch_send), the email log, budgets, approvals, inboxes and replies, contacts, topics, broadcast drafts, suppressions, webhooks and domains, plus send_feedback to report a problem or idea to the SendBuzzPro team. Refusals come back as tool errors with the code and the fix. In the console, Connect AI apps shows the setup for each app.

claude mcp add --transport http sendbuzzpro ${origin}/mcp

With an API key instead: claude mcp add --transport http sendbuzzpro ${origin}/mcp --header "Authorization: Bearer <your key>". Apps that only run local servers use the open-source mcp-remote bridge (Node.js 18+): npx -y mcp-remote ${origin}/mcp (signs in with OAuth in the browser), or add --header "Authorization: Bearer <your key>". Keep keys in private config files, never in a shared repo.

Webhooks

POST with JSON {"id","type","created_at","data"} and header ml-signature: t=<unix>,v1=<hex HMAC-SHA256 of "t.body">. Failed deliveries retry 6 times over ~20 hours, then can be replayed. Events: email.queued email.scheduled email.held email.approved email.rejected email.canceled email.sent email.delivered email.delivery_delayed email.bounced email.soft_bounced email.complained email.opened email.clicked email.failed email.suppressed email.received contact.created contact.unsubscribed domain.verified domain.failed account.warned account.paused key.budget_exceeded template.created template.updated template.published template.deleted contact.updated contact.deleted contact.subscribed segment.created segment.updated segment.deleted segment.joined segment.left automation.triggered automation.completed automation.step limit.warning limit.exceeded agent.approval_requested agent.killed agent.resumed domain.created domain.deleted suppression.added suppression.removed trust.warning trust.paused trust.restored webhook.disabled email.rescheduled contact.topic_updated broadcast.approval_requested broadcast.approved broadcast.rejected broadcast.ab_decided inbound.received deliverability.blocklisted deliverability.delisted ip.request_updated warmup.completed contact.engagement_changed contact.sunset validation.completed placement.completed

Teams, roles and the audit log

People sign in to the console; apps and agents use API keys, which belong to the workspace. The license key holder is the owner. Others are invited by email and sign in with one-time emailed links. Roles: admin (everything except billing), developer (keys, budgets, webhooks, domains, inboxes, sending), approver (approve or reject held emails, read the log and inbox), viewer (read-only). Every sign-in and change to keys, budgets, the kill switch, domains, webhooks, the team, approvals, suppressions and inboxes goes in an append-only audit log, with the person, IP and browser.

Integrations

Zapier: the app in integrations/zapier (Zapier Platform CLI; zapier push). Triggers are REST hooks on SendBuzzPro webhooks (new email event, bounce or complaint, email received, new or unsubscribed contact): turning a Zap on calls POST /v1/webhooks with Zapier's URL, turning it off calls DELETE /v1/webhooks/{id}; each trigger has a polling fallback for samples. Actions: send email, create or update contact, suppress an address. Searches: find contact, find email.

n8n: the community node package n8n-nodes-sendbuzzpro (integrations/n8n): a SendBuzzPro node (send, get or cancel email; create, search or delete contacts; suppress) and a SendBuzzPro Trigger that creates a webhook when the workflow is activated, removes it when deactivated, and checks every delivery's ml-signature.

Both sign in with an API key (ml_…), so the key's budgets, scopes, approvals and the kill switch apply. Triggers need webhooks:write.

Alerts, two-step verification and status

Settings → Alerts posts to Slack (blocks), Discord (embeds) or any https endpoint when the bounce or complaint rate spikes, a domain fails verification, the kill switch or an agent kill is triggered, a webhook endpoint keeps failing, or a quota reaches 80% or 100%, with quiet hours and a delivery log. Settings → Security has TOTP two-step verification (any authenticator app), 10 recovery codes, an owner switch to require it for the team, and your signed-in sessions. /status shows the service's own health.

Email statuses

scheduled queued held sending sent delivered delivery_delayed opened clicked bounced complained failed suppressed rejected canceled

Inbound parsing

Add a receiving subdomain with POST /v1/inbound/domains and point its MX records at the hosts it lists. Every message is parsed and POSTed to the first matching routing rule’s URL (or the domain’s webhook_url) as {"id","type":"inbound.email","created_at","data"}, signed with ml-signature like webhooks. data has from, to, cc, reply_to, envelope, subject, message_id, in_reply_to, references, date, text, html, headers [{name, value}], attachments [{filename, content_type, size, content_id, inline, url}], spam {is_spam, verdict, score, reasons}, auth {spf, dkim, dmarc}, route_id, size. Attachment URLs are signed and expire after 7 days (up to 10 MB each). Mail to one of your inbox addresses also lands in the Inbox; mail to dmarc@<inbound domain> is read as DMARC reports. Your endpoint should answer 2xx within 15 seconds; failures retry 6 times over ~20 hours.

Dedicated IPs and warmup

Warmup caps each day’s volume for a dedicated IP pool or a sending domain (a standard 30-day ramp from 50 to 110,000 a day, or your own curve). The cap is checked right before an email goes to SES. Over it, overflow: "queue" schedules the email for the next day (with the reason in its timeline); overflow: "shared" sends it through the shared pool instead (for a domain that isn’t on a dedicated pool, that means it goes out anyway). A finished plan fires warmup.completed.

DMARC reports

Add rua=mailto:dmarc@<your inbound domain> (shown by GET /v1/dmarc) to your DMARC record. Reports (XML, gzip or zip) are matched to the sending domain they cover. A source is unknown when it passed neither SPF nor DKIM and isn’t one of your or SendBuzzPro’s IPs: a tool you forgot to set up, or someone spoofing you.

Send-time optimization

Add send_time to POST /v1/emails, POST /v1/broadcasts/{id}/send or an automation’s send_email step: {"mode": "best"} sends at each person’s best hour within 24 hours (learned from their opens and clicks in their timezone; else your audience’s best hour; else 10:00), {"mode": "local", "time": "09:00"} at that time in each person’s timezone. Timezones come from a contact’s timezone field (e.g. "data": {"timezone": "Europe/London"}), else from the IP of past opens. Broadcast emails are bucketed by timezone and hour and queued per bucket.

Resend-compatible API

Point a Resend SDK at ${origin}/resend (Node: RESEND_BASE_URL=${origin}/resend then new Resend('ml_…'); other SDKs have a base-URL setting; or the root of the operator’s RESEND_HOST) and authenticate with a SendBuzzPro key. Budgets, scopes, suppressions, approvals and the kill switch apply as usual. Errors look like Resend’s: {"name","message","statusCode"} (validation_error, missing_required_field, invalid_from_address, missing_api_key 401, invalid_api_Key 403, restricted_api_key, not_found, rate_limit_exceeded, daily_quota_exceeded, monthly_quota_exceeded, invalid_idempotent_request, application_error).

ResendSendBuzzProNotes
POST /emailsPOST /v1/emailsfrom, to, cc, bcc, reply_to, subject, html, text, headers, attachments (base64 or Buffer; path is refused), tags [{name, value}], scheduled_at (ISO or “in 1 hour”). Idempotency-Key works. Returns {id}.
POST /emails/batchPOST /v1/emails/batchUp to 100. Strict by default (one invalid email → 422 and nothing is sent); x-batch-validation: permissive returns {data, errors}.
GET /emailsGET /v1/emails{object: "list", has_more, data}; limit, after, before.
GET /emails/{id}GET /v1/emails/{id}Resend email object; last_event is our status (sending/held show as queued).
PATCH /emails/{id}POST /v1/emails/{id}/rescheduleBody: scheduled_at.
POST /emails/{id}/cancelPOST /v1/emails/{id}/cancel
GET /domainsGET /v1/domainsrecords use Resend labels (DKIM, SPF, DMARC, Receiving).
POST /domains · DELETE /domains/{id}console onlyAnswers 403 restricted_api_key: a person adds and removes sending domains in the console, as with /v1.
GET /domains/{id}GET /v1/domainsid or name. PATCH (tracking settings) is accepted and ignored.
POST /domains/{id}/verifyPOST /v1/domains/{id}/check
GET /api-keysGET /v1/keysNeeds a key with the full scope. {object: "list", data: [{id, name, created_at}]}.
POST /api-keys · DELETE /api-keys/{id}console onlyAnswers 403 restricted_api_key: keys are created and revoked by a person in the console, as with /v1.
GET · POST · DELETE /audiences[/{id}]/v1/topicsAn audience is a topic.
/audiences/{id}/contacts[/{id or email}]/v1/contacts (subscribed to the topic)GET, POST, PATCH, DELETE (removes from the audience). unsubscribed: true is honoured; an API can’t re-subscribe someone.
/contacts[/{id or email}]/v1/contactsAll contacts. DELETE deletes the contact.
GET · POST · PATCH · DELETE /broadcasts[/{id}]/v1/broadcastsaudience_id = topic. Drafts only: POST /broadcasts/{id}/send (or send: true) answers 403, a person sends broadcasts from the console.

Engagement targeting

Opens and clicks come from SES. Clicks are the reliable signal: Apple Mail Privacy Protection and security scanners open emails by themselves. Opens within 2 seconds of delivery or from known proxy user agents are stored as machine: …; turn on ignore_machine_opens (Settings → Engagement) to leave them out. Clicked URLs are stored with tracking parameters (utm_*, fbclid, gclid, mc_eid …) removed.

Segment rules (segments, automation conditions): opened / clicked / received (has | has_not), opened_count / clicked_count (gt | lt, value), last_opened / last_clicked (within_days | before | never), clicked_link (contains | eq | matches_domain, value), interest (has | has_not | score_gt; key = the interest), engagement (is | is_not a level, score_gt | score_lt). Most take days (in the last N days) and scope: broadcast:<id>, automation:<id> or template:<id or alias>. “Opened broadcast X but didn’t click” is match: "all" with {"field":"opened","op":"has","scope":"broadcast:bc_…"} and {"field":"clicked","op":"has_not","scope":"broadcast:bc_…"}.

Interests: tag a link with <a href="…" data-sbp-interest="shoes,sale"> (the attribute is removed before sending and remembered with the link), add link rules, or send events with {"properties": {"interest": "shoes"}}. A click adds 1 to each interest’s score, which halves every 30 days. Merge tags: {{interests}}, {{top_interest}}, {{engagement}}, {{engagement_score}}.

Automation triggers: {"type": "email.clicked", "link_contains": "/pricing", "broadcast_id", "automation_id", "template", "interest"}, {"type": "email.opened", "broadcast_id", "automation_id", "template"}, {"type": "email.not_opened", "broadcast_id", "days": 3} (people who didn’t open a broadcast N days after it was delivered). Once per contact unless reentry. {{event.link}} is the clicked URL.

Engagement score: 0–100 from opens (1) and clicks (3) in the last 90 days, each worth half as much every 30 days; hot ≥ 60, warm ≥ 25 (editable), cold below, never_engaged without any open or click, new for contacts younger than 14 days. Changes fire contact.engagement_changed. Broadcasts take engagement_levels: ["hot", "warm"] (“Only send to”) and include_sunset.

List health: contacts with no open, click or event for N days who got at least M emails are enrolled in the re-engagement automation; still not engaged sunset_days after it ends, they become sunset (contact.sunset): kept, left out of broadcasts unless include_sunset, and back automatically after any open, click or event.

Errors

CodeHTTPMeaningFix
agent_budget_exceeded429The API key went over one of its own budgets (minute, hour, day or month). The error says which window, the limit and what is used.Wait for the window to pass, or ask the account owner to raise the budget in the console. A key can’t raise its own budget.
plan_daily_limit429The Free plan’s 100 emails a day are used.Wait until midnight UTC or upgrade.
plan_monthly_limit429The plan’s monthly emails are used. There are no overage charges.Sending resumes on the 1st (UTC), or upgrade.
lifetime_pool_used429All emails in a lifetime plan are used.Buy a larger tier or switch to a monthly plan.
sending_paused403The account owner turned on the kill switch.The owner resumes sending on the console Overview page.
key_paused403This API key is paused.Resume it under API keys.
account_paused403Sending is paused because bounces or spam complaints were too high (4% / 0.08% over 30 days).Remove bad addresses and appeal from the console. A person reviews every appeal.
domain_not_added422The from address uses a domain that isn’t on this account.Add it under Domains.
domain_not_verified422The domain’s DNS records aren’t verified yet.Add the records under Domains and press Check now.
invalid_from422The from address is missing or invalid.Use "Name <you@your-domain.com>".
invalid_recipient422One address in to, cc, bcc or reply_to is invalid. The error names the field.Fix or remove it.
missing_recipient422There is no “to”.Add at least one address.
too_many_recipients422More than 50 recipients in one email, or more than 20 on a scheduled report.Use /v1/emails/batch to send one email per person; split a report’s recipients into a second report.
missing_subject422The subject is empty.
subject_too_long422The subject is over 998 characters.
missing_content422There is no html or text.Send html, text or both.
invalid_header422A custom header is reserved, malformed or has a line break.Use the dedicated field (from, to, reply_to…) instead.
invalid_attachment422An attachment has no filename or isn’t base64.
message_too_large422The email is over 10 MB.Link to large files instead.
invalid_scheduled_at422scheduled_at isn’t an ISO 8601 time within 30 days.
invalid_batch422The batch body isn’t a JSON array.
batch_too_large422More than 500 emails in one batch.Split it.
idempotency_conflict409This Idempotency-Key was used for a different request in the last 24 hours.Use a new key for a new email. Retrying the same request with the same key is always safe.
invalid_idempotency_key400The Idempotency-Key is over 200 characters.
invalid_api_key401The key is missing, malformed or deleted.Send “Authorization: Bearer ml_…”.
unauthorized401Not signed in.
console_only403Keys, budgets, approvals, the kill switch, the team and the audit log are only for people signed in to the console.
role_forbidden403Your role can’t do this (e.g. a viewer creating a key, or a developer approving an email).Ask an owner or admin to change your role under Settings → Team.
seat_limit403Your plan’s seats are used (owner and pending invites count).Remove a member or invite, or upgrade.
member_exists409That person is already on the team.
member_not_found404
owner_protected403The owner can’t be changed or removed; ownership follows the license key.
invalid_role422Role must be admin, developer, approver or viewer.
invite_invalid400The invite link was used, replaced or is over 7 days old.Ask the owner to resend it.
feedback_email_required400Signed out: add an email so the team can reply.
feedback_too_short400Feedback needs at least 5 characters.
feedback_too_long400Feedback is limited to 5,000 characters.Shorten it or send two.
invalid_feedback400kind must be problem, bug, idea or question.
invalid_layout400A dashboard layout must be {version: 1, range, widgets: [{id, size, hidden}]}.
layout_too_large400A dashboard layout has at most 40 widgets and 8 KB.Send each widget once.
feedback_rate_limited429Too much feedback in a short time (5 per IP an hour, 20 per workspace a day).Try again later.
invalid_email422Not a valid email address.
bad_origin403A cross-site request to the console API was blocked.
not_held409The email isn’t waiting for approval.
not_cancelable409Only scheduled, queued or held emails can be canceled.
email_not_found404No email with that id (old emails are removed after the plan’s history window).
provider_error502Amazon SES refused the request.Retry with the same Idempotency-Key.
invalid_domain400Not a valid domain name.
domain_taken409The domain is on another SendBuzzPro account.Contact support if it is yours.
domain_limit403Your plan’s domain limit is reached.
domain_not_found404
invalid_webhook_url400Webhook URLs must be public https addresses.
invalid_events400Unknown webhook event types.
invalid_contact_email422
empty_audience422Nobody would receive the broadcast.
broadcast_locked409Only draft broadcasts can be edited or sent.
complaint_suppression409That person marked your email as spam.Only remove it with confirm=true if they asked to be emailed again.
inbox_limit403Your plan’s inbox limit is reached.Delete an inbox or upgrade.
address_taken409That inbox address is taken.Pick another username.
username_reserved422Names like support, admin or billing are reserved on the shared domain.Use a more specific name, or your own domain.
invalid_username422Usernames use letters, numbers, dots, dashes and underscores.
no_inbound_domain400Receiving isn’t set up for that domain.Use your own domain with the receiving MX record.
catch_all_shared422Catch-all inboxes only work on your own domain.
thread_not_found404
message_not_found404
inbox_not_found404
attachment_not_found404
invalid_json400The body isn’t valid JSON.
not_found404Unknown endpoint.
server_error500Something failed on our side.Retry with the same Idempotency-Key.
template_not_found404No template with that id or alias.List templates with GET /v1/templates.
template_not_published422The template has never been published, so there is nothing to send.Publish it, or send with template_version: "draft".
template_missing_variables422The template uses a variable that has no value, no default and no {{name|fallback}}. The error lists missing_variables.Pass the values in "variables", or give the variable a default in the template.
template_version_not_found404That version number doesn’t exist.List versions with GET /v1/templates/{id}/versions.
template_alias_taken409Another template already uses that alias.Pick another alias; they are unique per account.
invalid_template_alias422Aliases use 1–64 lower-case letters, numbers, dashes or underscores and can’t start with tpl_.
missing_template_name422A template needs a name.
invalid_template_variables422variables must be a list of {name, default?} (on a template) or an object (on a send).
invalid_template422template must be a template id or alias.
invalid_template_version422Use "draft", "published" or a version number.
template_invalid422A template needs a subject and HTML or text before it can be published.
template_unchanged409The draft is the same as the published version (or that version is already published).Edit the draft first.
template_too_large422HTML over 500 KB or text over 200 KB.Host images instead of inlining them.
template_publish_conflict409Two people published at the same moment.Reload and try again.
invalid_properties422“properties” isn’t an object.Send {"properties": {"plan": "pro"}}.
invalid_property422A property name or value isn’t allowed. The error names the key.Keys: letters, numbers, _ . -; values up to 2,000 characters.
too_many_properties422More than 100 properties.Remove some by sending them as null.
unknown_contact422That email isn’t one of your contacts.Add them first, or send create_contact: true with consent: true if they opted in.
contact_suppressed422The address is suppressed (bounced, complained or unsubscribed), so it can’t be added.
contact_not_found404No contact with that id.
invalid_event_name422Event names are 1–64 letters, numbers, _ . : or -.
event_too_large422Event properties are over 8 KB.
invalid_segment_rule422A segment or condition rule is wrong. The error names the rule.See POST /v1/segments for fields and operators.
segment_not_found404
segment_limit403Up to 100 segments per account.
invalid_automation422The trigger or a step is wrong, or a step can’t run (e.g. its from domain isn’t verified). The error names the step; cause has the underlying code.
automation_not_found404
automation_limit403Up to 100 automations per account.
run_not_found404
run_not_running409The run already finished.
templates_unavailable422A step uses template_id but templates aren’t available on this server.Put the subject and html/text in the step.
template_not_found422The step’s template doesn’t exist.
key_revoked422The API key that turned the automation on was deleted, so its emails can’t be sent.Turn the automation on again in the console.
missing_name422A name is required.
scope_missing403The API key doesn’t have the scope this request needs (for example emails:send to send). The error names the scope.Add the scope to the key in the console (Agents → Scopes), or use a key that has it.
invalid_scopes422Scopes must be a non-empty array of known scopes.Use emails:send, emails:read, inboxes:read, inboxes:write, contacts:read, contacts:write, templates:read, templates:write, automations:read, automations:write, domains:read, webhooks:read, webhooks:write or full.
not_own_key403An API key tried to stop a different key.A key can only stop itself (POST /v1/agents/me/kill). Stop other keys from the console.
not_a_key400GET /v1/agents/me needs an API key.In the console, use GET /v1/agents.
key_not_found404No API key with that id.
mixed_test_recipients422Test-mode addresses (@test.sendbuzzpro.com) were mixed with real ones.Send test-mode emails on their own.
not_scheduled409Only scheduled emails can be rescheduled.Check the email’s status; send a new one if it already went out.
invalid_bulk_cancel422Bulk cancel needs ids (1–500) or status "scheduled" or "held".Example: {"status":"scheduled"}.
invalid_interval400Metrics interval must be day or hour.
invalid_range400Metrics from/to aren’t valid dates, or from is after to.Use ISO 8601 dates.
range_too_large400Too many buckets: up to 31 days by hour or 400 days by day.Narrow the range or use interval=day.
key_not_found404The key_id in a lint or preflight request isn’t one of your keys.Use an id from GET /v1/keys.
google_not_configured404Sign in with Google isn’t set up on this server.The operator sets GOOGLE_SIGNIN_CLIENT_ID and GOOGLE_SIGNIN_CLIENT_SECRET.
google_not_linked404No Google account is connected to you.Connect one under Settings → Sign-in methods.
oauth_token_invalid401The AI app’s sign-in expired, was disconnected, its API key was deleted, or the person who connected it left the team.The app refreshes or signs in again on its own; if it can’t, remove the connection in the app and add it again.
grant_not_found404That app isn’t connected to this workspace.
missing_argument422An MCP tool was called without a required argument. The message names it.
invalid_report422A report schedule field is missing or not valid. The message says which.Fix that field and send it again.
invalid_timezone422The time zone isn’t an IANA name.Use a name such as Europe/Berlin or America/New_York.
report_recipient_limit403All reports in the workspace together go to at most 50 recipients.Remove recipients from other reports first.
report_limit403A workspace has at most 20 report schedules.Delete one you no longer need.
report_rate_limited429A report can be sent by hand 10 times an hour.Wait, or use Preview.
email_not_configured503The server has no NOTIFY_FROM address, so reports can’t be emailed.The operator sets NOTIFY_FROM to a verified SES identity.
client_approval_required409The broadcast or template has an open client approval request that isn’t approved yet.Wait for the client, have an approver approve it on the Reports page, or cancel the request.
changed_since_approval409The draft changed after the client approved it.Request a new approval for the edited version.
two_factor_invalid_code400The two-step code (or recovery code) is wrong or was already used.Enter the code your authenticator app shows now; each code works once.
two_factor_expired400The pending sign-in is used, expired (10 minutes) or had 5 wrong codes.Sign in again.
two_factor_rate_limited4295 wrong codes for this account in 10 minutes.Wait 10 minutes.
two_factor_required403The owner requires two-step verification for team members.Keep it on, or ask the owner.
two_factor_setup_first400Two-step setup hasn't started.Call the setup endpoint first.
invalid_alert_url422Not a Slack incoming webhook, Discord webhook or public https URL.Copy the webhook URL from Slack or Discord.
invalid_alert_events422No valid alert types.Use bounce_spike, domain_failed, kill_switch, webhook_failing, quota_80, quota_100.
invalid_quiet_hours422Quiet hours need HH:MM start and end and a known time zone.e.g. {"start":"22:00","end":"07:00","timezone":"Europe/London"}
session_not_found404No session of yours with that id.List them with GET /v1/account/sessions.
invalid_incident422The incident is missing a title or has an unknown status, impact or component.See POST /admin/status/incidents.
invalid_design422The visual design isn’t valid. The message says which part.See PUT /v1/templates/{id}/design for the block types.
design_too_large422The design is too large.Use fewer blocks; host images instead of pasting them.
no_design409The template was written in code, so there’s no design to export.Save it once in the Visual editor.
invalid_test_recipients422A test goes to 1–5 valid addresses.
invalid_ab_test422The A/B test settings aren’t valid.2–3 different subjects, 5–50%, 1–72 hours, metric opens or clicks.
broadcast_template_unusable422The broadcast’s template can’t be used (deleted or never published).Publish the template, or pick another one.
approval_pending409The broadcast is already waiting for approval.An owner, admin or approver approves it.
not_pending409The broadcast isn’t waiting for approval.
not_testing409The broadcast isn’t running an A/B test (or the winner was already picked).
unknown_topic422There’s no topic with that id.List topics with GET /v1/topics.
invalid_logo_url422The logo must be an https:// image URL.
invalid_brand_color422The brand color must look like #0E7490.
invalid_send_time422“send_time” isn’t {"mode": "best"} or {"mode": "local", "time": "HH:MM"}.Example: {"mode": "local", "time": "09:00"}.
send_time_conflict422Both scheduled_at and send_time were given.Use one of them.
inbound_domain_not_found404No inbound domain with that id.List them with GET /v1/inbound/domains.
invalid_pattern422A routing rule pattern is a local part or address with * wildcards.Examples: support, billing+*, *.
no_route409The message matched no rule and its domain has no webhook URL.Add a URL, then redeliver.
plan_required403Dedicated IPs are a paid add-on.Upgrade first.
invalid_curve422A warmup curve is 1 to 60 whole daily volumes.Leave it out for the standard 30-day ramp.
warmup_exists409That pool or domain already has a warmup plan.Edit or delete it.
checked_recently429Blocklists were checked less than 10 minutes ago.Try again later.
invalid_thresholds422Engagement thresholds need 1 ≤ warm < hot ≤ 100 and new_days 0–90.Example: {"thresholds": {"hot": 60, "warm": 25}}.
invalid_interests422“interests” isn’t a list.Send {"interests": ["shoes"]} or {"add": [...], "remove": [...]}.
invalid_engagement_levels422A broadcast’s engagement_levels are hot, warm, cold, never_engaged or new.Example: {"engagement_levels": ["hot", "warm"]}.
invalid_engagement422?engagement= isn’t a level or sunset.
invalid_list_health422A list-health number is out of range.days 7–730, min_received 1–100, sunset_days 1–365.
template_syntax_error400A {{…}} tag in the subject, HTML, text or preview text has a mistake. The message names the part and the line; error.line and error.column point at it.Read “fix”: usually a missing {{/if}}, a stray }} or = instead of ==.
template_render_limit400The template does too much work for one email (nested loops, huge output).Loops stop at 100 items; nest fewer loops.
contact_not_found404No contact with that id or email to preview as.Search with GET /v1/contacts?search=…, or preview with variables.
no_provider503The server has no sending provider set up, so domains can’t be added.The operator sets MAIL_PROVIDERS and the provider keys.
provider_unsupported409That feature needs Amazon SES, which this server doesn’t send through (e.g. dedicated IPs).Email goes out on the provider’s shared IPs.
invalid_stream422“stream” is not transactional or marketing.Leave it out for transactional email; use "marketing" for newsletters and promotions.
stream_mismatch422A send to a topic is marketing, so it can’t use the transactional stream.Use "stream": "marketing", or leave out topic.
stream_paused403The email’s stream (transactional or marketing) is paused, by a person or automatically for its bounce or complaint rate.Resume it under Streams (a pause by a person), or appeal (an automatic pause). The other stream keeps sending.
stream_from_domain422This stream may only send from its own domain (Streams → Advanced).Send from that domain, or change the setting.
stream_auto_paused409The stream was paused automatically; it can’t simply be resumed.Clean the list, then POST /v1/streams/{id}/appeal. A person reviews it.
not_auto_paused409Only a stream paused automatically needs an appeal.Resume it yourself if a person paused it.
appeal_too_short422The appeal message is shorter than 10 characters.Say what you changed.
stream_not_found404There is no stream with that id.Streams are transactional and marketing.

Inbound parsing

Add a receiving subdomain with POST /v1/inbound/domains and point its MX records at the hosts it lists. Every message is parsed and POSTed to the first matching routing rule’s URL (or the domain’s webhook_url) as {"id","type":"inbound.email","created_at","data"}, signed with ml-signature like webhooks. data has from, to, cc, reply_to, envelope, subject, message_id, in_reply_to, references, date, text, html, headers [{name, value}], attachments [{filename, content_type, size, content_id, inline, url}], spam {is_spam, verdict, score, reasons}, auth {spf, dkim, dmarc}, route_id, size. Attachment URLs are signed and expire after 7 days (up to 10 MB each). Mail to one of your inbox addresses also lands in the Inbox; mail to dmarc@<inbound domain> is read as DMARC reports. Your endpoint should answer 2xx within 15 seconds; failures retry 6 times over ~20 hours.

Dedicated IPs and warmup

Warmup caps each day’s volume for a dedicated IP pool or a sending domain (a standard 30-day ramp from 50 to 110,000 a day, or your own curve). The cap is checked right before an email goes to SES. Over it, overflow: "queue" schedules the email for the next day (with the reason in its timeline); overflow: "shared" sends it through the shared pool instead (for a domain that isn’t on a dedicated pool, that means it goes out anyway). A finished plan fires warmup.completed.

DMARC reports

Add rua=mailto:dmarc@<your inbound domain> (shown by GET /v1/dmarc) to your DMARC record. Reports (XML, gzip or zip) are matched to the sending domain they cover. A source is unknown when it passed neither SPF nor DKIM and isn’t one of your or SendBuzzPro’s IPs: a tool you forgot to set up, or someone spoofing you.

Send-time optimization

Add send_time to POST /v1/emails, POST /v1/broadcasts/{id}/send or an automation’s send_email step: {"mode": "best"} sends at each person’s best hour within 24 hours (learned from their opens and clicks in their timezone; else your audience’s best hour; else 10:00), {"mode": "local", "time": "09:00"} at that time in each person’s timezone. Timezones come from a contact’s timezone field (e.g. "data": {"timezone": "Europe/London"}), else from the IP of past opens. Broadcast emails are bucketed by timezone and hour and queued per bucket.

Resend-compatible API

Point a Resend SDK at ${origin}/resend (Node: RESEND_BASE_URL=${origin}/resend then new Resend('ml_…'); other SDKs have a base-URL setting; or the root of the operator’s RESEND_HOST) and authenticate with a SendBuzzPro key. Budgets, scopes, suppressions, approvals and the kill switch apply as usual. Errors look like Resend’s: {"name","message","statusCode"} (validation_error, missing_required_field, invalid_from_address, missing_api_key 401, invalid_api_Key 403, restricted_api_key, not_found, rate_limit_exceeded, daily_quota_exceeded, monthly_quota_exceeded, invalid_idempotent_request, application_error).

ResendSendBuzzProNotes
POST /emailsPOST /v1/emailsfrom, to, cc, bcc, reply_to, subject, html, text, headers, attachments (base64 or Buffer; path is refused), tags [{name, value}], scheduled_at (ISO or “in 1 hour”). Idempotency-Key works. Returns {id}.
POST /emails/batchPOST /v1/emails/batchUp to 100. Strict by default (one invalid email → 422 and nothing is sent); x-batch-validation: permissive returns {data, errors}.
GET /emailsGET /v1/emails{object: "list", has_more, data}; limit, after, before.
GET /emails/{id}GET /v1/emails/{id}Resend email object; last_event is our status (sending/held show as queued).
PATCH /emails/{id}POST /v1/emails/{id}/rescheduleBody: scheduled_at.
POST /emails/{id}/cancelPOST /v1/emails/{id}/cancel
GET /domainsGET /v1/domainsrecords use Resend labels (DKIM, SPF, DMARC, Receiving).
POST /domains · DELETE /domains/{id}console onlyAnswers 403 restricted_api_key: a person adds and removes sending domains in the console, as with /v1.
GET /domains/{id}GET /v1/domainsid or name. PATCH (tracking settings) is accepted and ignored.
POST /domains/{id}/verifyPOST /v1/domains/{id}/check
GET /api-keysGET /v1/keysNeeds a key with the full scope. {object: "list", data: [{id, name, created_at}]}.
POST /api-keys · DELETE /api-keys/{id}console onlyAnswers 403 restricted_api_key: keys are created and revoked by a person in the console, as with /v1.
GET · POST · DELETE /audiences[/{id}]/v1/topicsAn audience is a topic.
/audiences/{id}/contacts[/{id or email}]/v1/contacts (subscribed to the topic)GET, POST, PATCH, DELETE (removes from the audience). unsubscribed: true is honoured; an API can’t re-subscribe someone.
/contacts[/{id or email}]/v1/contactsAll contacts. DELETE deletes the contact.
GET · POST · PATCH · DELETE /broadcasts[/{id}]/v1/broadcastsaudience_id = topic. Drafts only: POST /broadcasts/{id}/send (or send: true) answers 403, a person sends broadcasts from the console.

Personalization

Subjects, HTML, text and preview text are small templates, rendered per person when a broadcast, automation or template send goes out. Nothing in them runs code. The old {{first_name}} and {{first_name|there}} tags work as before.

{{first_name}} {{order.total}} {{properties["fav-color"]}} {{items[0].name}}A value. HTML parts escape it; {{{raw_html}}} (three braces) doesn’t.
{{first_name|there}}A fallback when the value is empty. A pipe followed by a filter name is a filter; anything else after the pipe is fallback text.
{{#if expr}}…{{else if expr}}…{{else}}…{{/if}} {{#unless expr}}…{{/unless}}Conditions. expr: == != > < >= <=, contains, in, and, or, not, parentheses, "text", numbers, true false null, dotted paths. Text compares ignore case; numbers compare as numbers. Empty values, 0, false and empty lists are false.
has_interest "shoes" in_segment "VIP" has_event "purchased" engagement == "hot"Helpers. in_segment takes a segment name or id and checks its rules for this person at send time; has_event checks their events.
{{#each order.items as item}}{{@index}} {{item.name}}{{/each}} {{#each interests}}{{this}}{{/each}}Loops, with @index @number @first @last @length and {{else}} for an empty list. At most 100 items.
{{! note }}A comment, never sent.

Filters (chain them with more pipes): capitalize upcase downcase default: "x" truncate: 40 (or truncate: 40, "...") date: "MMM d, yyyy" (tokens yyyy yy MMMM MMM MM M dd d EEEE EEE HH H hh h mm ss a z, 'quoted text', or strftime %b %e %Y; a second argument is the time zone, e.g. date: "HH:mm", "Europe/Paris"; default: the contact’s timezone property, else UTC) money: "USD" (or money: "EUR", "de-DE") number number: 2 round: 2 url_encode escape join: ", " first last size.

What a template can read: email first_name last_name name, every contact property (also under properties.), imported fields, interests (a list), top_interest, engagement (hot / warm / cold), engagement_score, contact.*, broadcast.id/name, workspace.name, unsubscribe_url, preferences_url, and the variables of a template send. Missing values are empty.

{{#if has_interest "shoes"}}New running shoes for you, {{first_name | capitalize}}.
{{else if engagement == "hot"}}You’ll like this week’s drop.
{{else}}Our best sellers.{{/if}}
{{#each order.items as item}}{{item.qty}} × {{item.name}}: {{item.price | money: "USD"}}
{{/each}}Ordered {{order.date | date: "MMM d, yyyy"}}

Visual builder: every block has “Show to” (everyone, or only if: has interest, in segment, engagement is, property equals, or a custom condition) and “Repeat for each” (a list variable). A Dynamic section holds variants (condition → blocks, first match wins) plus a default; it renders as an {{#if}}…{{else if}}…{{else}} chain in both the HTML and the text. Columns work inside a dynamic section.

Checking and limits: saving a template or broadcast with a mistake returns 400 template_syntax_error with the part, line and a fix; so does sending one. A saved template's HTML is at most 500 KB and its text 200 KB (template_too_large), loops stop at 100 items, and a render has a step and output budget (template_render_limit). Preview anyone with POST /v1/templates/{id}/preview (contact_id, or variables), and compare groups with …/preview-segments. The MCP tools preview_template_as_contact, preview_template_segments and preview_template_syntax do the same for agents.

Errors

CodeHTTPMeaningFix
agent_budget_exceeded429The API key went over one of its own budgets (minute, hour, day or month). The error says which window, the limit and what is used.Wait for the window to pass, or ask the account owner to raise the budget in the console. A key can’t raise its own budget.
plan_daily_limit429The Free plan’s 100 emails a day are used.Wait until midnight UTC or upgrade.
plan_monthly_limit429The plan’s monthly emails are used. There are no overage charges.Sending resumes on the 1st (UTC), or upgrade.
lifetime_pool_used429All emails in a lifetime plan are used.Buy a larger tier or switch to a monthly plan.
sending_paused403The account owner turned on the kill switch.The owner resumes sending on the console Overview page.
key_paused403This API key is paused.Resume it under API keys.
account_paused403Sending is paused because bounces or spam complaints were too high (4% / 0.08% over 30 days).Remove bad addresses and appeal from the console. A person reviews every appeal.
domain_not_added422The from address uses a domain that isn’t on this account.Add it under Domains.
domain_not_verified422The domain’s DNS records aren’t verified yet.Add the records under Domains and press Check now.
invalid_from422The from address is missing or invalid.Use "Name <you@your-domain.com>".
invalid_recipient422One address in to, cc, bcc or reply_to is invalid. The error names the field.Fix or remove it.
missing_recipient422There is no “to”.Add at least one address.
too_many_recipients422More than 50 recipients in one email, or more than 20 on a scheduled report.Use /v1/emails/batch to send one email per person; split a report’s recipients into a second report.
missing_subject422The subject is empty.
subject_too_long422The subject is over 998 characters.
missing_content422There is no html or text.Send html, text or both.
invalid_header422A custom header is reserved, malformed or has a line break.Use the dedicated field (from, to, reply_to…) instead.
invalid_attachment422An attachment has no filename or isn’t base64.
message_too_large422The email is over 10 MB.Link to large files instead.
invalid_scheduled_at422scheduled_at isn’t an ISO 8601 time within 30 days.
invalid_batch422The batch body isn’t a JSON array.
batch_too_large422More than 500 emails in one batch.Split it.
idempotency_conflict409This Idempotency-Key was used for a different request in the last 24 hours.Use a new key for a new email. Retrying the same request with the same key is always safe.
invalid_idempotency_key400The Idempotency-Key is over 200 characters.
invalid_api_key401The key is missing, malformed or deleted.Send “Authorization: Bearer ml_…”.
unauthorized401Not signed in.
console_only403Keys, budgets, approvals, the kill switch, the team and the audit log are only for people signed in to the console.
role_forbidden403Your role can’t do this (e.g. a viewer creating a key, or a developer approving an email).Ask an owner or admin to change your role under Settings → Team.
seat_limit403Your plan’s seats are used (owner and pending invites count).Remove a member or invite, or upgrade.
member_exists409That person is already on the team.
member_not_found404
owner_protected403The owner can’t be changed or removed; ownership follows the license key.
invalid_role422Role must be admin, developer, approver or viewer.
invite_invalid400The invite link was used, replaced or is over 7 days old.Ask the owner to resend it.
feedback_email_required400Signed out: add an email so the team can reply.
feedback_too_short400Feedback needs at least 5 characters.
feedback_too_long400Feedback is limited to 5,000 characters.Shorten it or send two.
invalid_feedback400kind must be problem, bug, idea or question.
invalid_layout400A dashboard layout must be {version: 1, range, widgets: [{id, size, hidden}]}.
layout_too_large400A dashboard layout has at most 40 widgets and 8 KB.Send each widget once.
feedback_rate_limited429Too much feedback in a short time (5 per IP an hour, 20 per workspace a day).Try again later.
invalid_email422Not a valid email address.
bad_origin403A cross-site request to the console API was blocked.
not_held409The email isn’t waiting for approval.
not_cancelable409Only scheduled, queued or held emails can be canceled.
email_not_found404No email with that id (old emails are removed after the plan’s history window).
provider_error502Amazon SES refused the request.Retry with the same Idempotency-Key.
invalid_domain400Not a valid domain name.
domain_taken409The domain is on another SendBuzzPro account.Contact support if it is yours.
domain_limit403Your plan’s domain limit is reached.
domain_not_found404
invalid_webhook_url400Webhook URLs must be public https addresses.
invalid_events400Unknown webhook event types.
invalid_contact_email422
empty_audience422Nobody would receive the broadcast.
broadcast_locked409Only draft broadcasts can be edited or sent.
complaint_suppression409That person marked your email as spam.Only remove it with confirm=true if they asked to be emailed again.
inbox_limit403Your plan’s inbox limit is reached.Delete an inbox or upgrade.
address_taken409That inbox address is taken.Pick another username.
username_reserved422Names like support, admin or billing are reserved on the shared domain.Use a more specific name, or your own domain.
invalid_username422Usernames use letters, numbers, dots, dashes and underscores.
no_inbound_domain400Receiving isn’t set up for that domain.Use your own domain with the receiving MX record.
catch_all_shared422Catch-all inboxes only work on your own domain.
thread_not_found404
message_not_found404
inbox_not_found404
attachment_not_found404
invalid_json400The body isn’t valid JSON.
not_found404Unknown endpoint.
server_error500Something failed on our side.Retry with the same Idempotency-Key.
template_not_found404No template with that id or alias.List templates with GET /v1/templates.
template_not_published422The template has never been published, so there is nothing to send.Publish it, or send with template_version: "draft".
template_missing_variables422The template uses a variable that has no value, no default and no {{name|fallback}}. The error lists missing_variables.Pass the values in "variables", or give the variable a default in the template.
template_version_not_found404That version number doesn’t exist.List versions with GET /v1/templates/{id}/versions.
template_alias_taken409Another template already uses that alias.Pick another alias; they are unique per account.
invalid_template_alias422Aliases use 1–64 lower-case letters, numbers, dashes or underscores and can’t start with tpl_.
missing_template_name422A template needs a name.
invalid_template_variables422variables must be a list of {name, default?} (on a template) or an object (on a send).
invalid_template422template must be a template id or alias.
invalid_template_version422Use "draft", "published" or a version number.
template_invalid422A template needs a subject and HTML or text before it can be published.
template_unchanged409The draft is the same as the published version (or that version is already published).Edit the draft first.
template_too_large422HTML over 500 KB or text over 200 KB.Host images instead of inlining them.
template_publish_conflict409Two people published at the same moment.Reload and try again.
invalid_properties422“properties” isn’t an object.Send {"properties": {"plan": "pro"}}.
invalid_property422A property name or value isn’t allowed. The error names the key.Keys: letters, numbers, _ . -; values up to 2,000 characters.
too_many_properties422More than 100 properties.Remove some by sending them as null.
unknown_contact422That email isn’t one of your contacts.Add them first, or send create_contact: true with consent: true if they opted in.
contact_suppressed422The address is suppressed (bounced, complained or unsubscribed), so it can’t be added.
contact_not_found404No contact with that id.
invalid_event_name422Event names are 1–64 letters, numbers, _ . : or -.
event_too_large422Event properties are over 8 KB.
invalid_segment_rule422A segment or condition rule is wrong. The error names the rule.See POST /v1/segments for fields and operators.
segment_not_found404
segment_limit403Up to 100 segments per account.
invalid_automation422The trigger or a step is wrong, or a step can’t run (e.g. its from domain isn’t verified). The error names the step; cause has the underlying code.
automation_not_found404
automation_limit403Up to 100 automations per account.
run_not_found404
run_not_running409The run already finished.
templates_unavailable422A step uses template_id but templates aren’t available on this server.Put the subject and html/text in the step.
template_not_found422The step’s template doesn’t exist.
key_revoked422The API key that turned the automation on was deleted, so its emails can’t be sent.Turn the automation on again in the console.
missing_name422A name is required.
scope_missing403The API key doesn’t have the scope this request needs (for example emails:send to send). The error names the scope.Add the scope to the key in the console (Agents → Scopes), or use a key that has it.
invalid_scopes422Scopes must be a non-empty array of known scopes.Use emails:send, emails:read, inboxes:read, inboxes:write, contacts:read, contacts:write, templates:read, templates:write, automations:read, automations:write, domains:read, webhooks:read, webhooks:write or full.
not_own_key403An API key tried to stop a different key.A key can only stop itself (POST /v1/agents/me/kill). Stop other keys from the console.
not_a_key400GET /v1/agents/me needs an API key.In the console, use GET /v1/agents.
key_not_found404No API key with that id.
mixed_test_recipients422Test-mode addresses (@test.sendbuzzpro.com) were mixed with real ones.Send test-mode emails on their own.
not_scheduled409Only scheduled emails can be rescheduled.Check the email’s status; send a new one if it already went out.
invalid_bulk_cancel422Bulk cancel needs ids (1–500) or status "scheduled" or "held".Example: {"status":"scheduled"}.
invalid_interval400Metrics interval must be day or hour.
invalid_range400Metrics from/to aren’t valid dates, or from is after to.Use ISO 8601 dates.
range_too_large400Too many buckets: up to 31 days by hour or 400 days by day.Narrow the range or use interval=day.
key_not_found404The key_id in a lint or preflight request isn’t one of your keys.Use an id from GET /v1/keys.
google_not_configured404Sign in with Google isn’t set up on this server.The operator sets GOOGLE_SIGNIN_CLIENT_ID and GOOGLE_SIGNIN_CLIENT_SECRET.
google_not_linked404No Google account is connected to you.Connect one under Settings → Sign-in methods.
oauth_token_invalid401The AI app’s sign-in expired, was disconnected, its API key was deleted, or the person who connected it left the team.The app refreshes or signs in again on its own; if it can’t, remove the connection in the app and add it again.
grant_not_found404That app isn’t connected to this workspace.
missing_argument422An MCP tool was called without a required argument. The message names it.
invalid_report422A report schedule field is missing or not valid. The message says which.Fix that field and send it again.
invalid_timezone422The time zone isn’t an IANA name.Use a name such as Europe/Berlin or America/New_York.
report_recipient_limit403All reports in the workspace together go to at most 50 recipients.Remove recipients from other reports first.
report_limit403A workspace has at most 20 report schedules.Delete one you no longer need.
report_rate_limited429A report can be sent by hand 10 times an hour.Wait, or use Preview.
email_not_configured503The server has no NOTIFY_FROM address, so reports can’t be emailed.The operator sets NOTIFY_FROM to a verified SES identity.
client_approval_required409The broadcast or template has an open client approval request that isn’t approved yet.Wait for the client, have an approver approve it on the Reports page, or cancel the request.
changed_since_approval409The draft changed after the client approved it.Request a new approval for the edited version.
two_factor_invalid_code400The two-step code (or recovery code) is wrong or was already used.Enter the code your authenticator app shows now; each code works once.
two_factor_expired400The pending sign-in is used, expired (10 minutes) or had 5 wrong codes.Sign in again.
two_factor_rate_limited4295 wrong codes for this account in 10 minutes.Wait 10 minutes.
two_factor_required403The owner requires two-step verification for team members.Keep it on, or ask the owner.
two_factor_setup_first400Two-step setup hasn't started.Call the setup endpoint first.
invalid_alert_url422Not a Slack incoming webhook, Discord webhook or public https URL.Copy the webhook URL from Slack or Discord.
invalid_alert_events422No valid alert types.Use bounce_spike, domain_failed, kill_switch, webhook_failing, quota_80, quota_100.
invalid_quiet_hours422Quiet hours need HH:MM start and end and a known time zone.e.g. {"start":"22:00","end":"07:00","timezone":"Europe/London"}
session_not_found404No session of yours with that id.List them with GET /v1/account/sessions.
invalid_incident422The incident is missing a title or has an unknown status, impact or component.See POST /admin/status/incidents.
invalid_design422The visual design isn’t valid. The message says which part.See PUT /v1/templates/{id}/design for the block types.
design_too_large422The design is too large.Use fewer blocks; host images instead of pasting them.
no_design409The template was written in code, so there’s no design to export.Save it once in the Visual editor.
invalid_test_recipients422A test goes to 1–5 valid addresses.
invalid_ab_test422The A/B test settings aren’t valid.2–3 different subjects, 5–50%, 1–72 hours, metric opens or clicks.
broadcast_template_unusable422The broadcast’s template can’t be used (deleted or never published).Publish the template, or pick another one.
approval_pending409The broadcast is already waiting for approval.An owner, admin or approver approves it.
not_pending409The broadcast isn’t waiting for approval.
not_testing409The broadcast isn’t running an A/B test (or the winner was already picked).
unknown_topic422There’s no topic with that id.List topics with GET /v1/topics.
invalid_logo_url422The logo must be an https:// image URL.
invalid_brand_color422The brand color must look like #0E7490.
invalid_send_time422“send_time” isn’t {"mode": "best"} or {"mode": "local", "time": "HH:MM"}.Example: {"mode": "local", "time": "09:00"}.
send_time_conflict422Both scheduled_at and send_time were given.Use one of them.
inbound_domain_not_found404No inbound domain with that id.List them with GET /v1/inbound/domains.
invalid_pattern422A routing rule pattern is a local part or address with * wildcards.Examples: support, billing+*, *.
no_route409The message matched no rule and its domain has no webhook URL.Add a URL, then redeliver.
plan_required403Dedicated IPs are a paid add-on.Upgrade first.
invalid_curve422A warmup curve is 1 to 60 whole daily volumes.Leave it out for the standard 30-day ramp.
warmup_exists409That pool or domain already has a warmup plan.Edit or delete it.
checked_recently429Blocklists were checked less than 10 minutes ago.Try again later.
invalid_thresholds422Engagement thresholds need 1 ≤ warm < hot ≤ 100 and new_days 0–90.Example: {"thresholds": {"hot": 60, "warm": 25}}.
invalid_interests422“interests” isn’t a list.Send {"interests": ["shoes"]} or {"add": [...], "remove": [...]}.
invalid_engagement_levels422A broadcast’s engagement_levels are hot, warm, cold, never_engaged or new.Example: {"engagement_levels": ["hot", "warm"]}.
invalid_engagement422?engagement= isn’t a level or sunset.
invalid_list_health422A list-health number is out of range.days 7–730, min_received 1–100, sunset_days 1–365.
template_syntax_error400A {{…}} tag in the subject, HTML, text or preview text has a mistake. The message names the part and the line; error.line and error.column point at it.Read “fix”: usually a missing {{/if}}, a stray }} or = instead of ==.
template_render_limit400The template does too much work for one email (nested loops, huge output).Loops stop at 100 items; nest fewer loops.
contact_not_found404No contact with that id or email to preview as.Search with GET /v1/contacts?search=…, or preview with variables.
no_provider503The server has no sending provider set up, so domains can’t be added.The operator sets MAIL_PROVIDERS and the provider keys.
provider_unsupported409That feature needs Amazon SES, which this server doesn’t send through (e.g. dedicated IPs).Email goes out on the provider’s shared IPs.
invalid_stream422“stream” is not transactional or marketing.Leave it out for transactional email; use "marketing" for newsletters and promotions.
stream_mismatch422A send to a topic is marketing, so it can’t use the transactional stream.Use "stream": "marketing", or leave out topic.
stream_paused403The email’s stream (transactional or marketing) is paused, by a person or automatically for its bounce or complaint rate.Resume it under Streams (a pause by a person), or appeal (an automatic pause). The other stream keeps sending.
stream_from_domain422This stream may only send from its own domain (Streams → Advanced).Send from that domain, or change the setting.
stream_auto_paused409The stream was paused automatically; it can’t simply be resumed.Clean the list, then POST /v1/streams/{id}/appeal. A person reviews it.
not_auto_paused409Only a stream paused automatically needs an appeal.Resume it yourself if a person paused it.
appeal_too_short422The appeal message is shorter than 10 characters.Say what you changed.
stream_not_found404There is no stream with that id.Streams are transactional and marketing.

What you can send

Transactional email and email to people who opted in. Cold email, bought or scraped lists are not allowed.