Send Mailbox Email
Send a one-off email from a connected mailbox to a lead (manual follow-ups and replies). Enforced in code, exactly like the sequence runner's sends: the lead's email must not be on the suppression list and `can_contact(email, purpose)` must allow it (409 `Sending is not allowed: <reasons>`), the mailbox must be connected, not paused by the deliverability guard and under its daily cap (409). A marketing send held back by the contact-pressure rules (a manual touch: exempt while the lead is in a conversation with us) or a resource rate limit is a 409 with `code` `contact_deferred`, the `reasons` and `next_allowed_at`. A `marketing` email (the default) gets one-click `List-Unsubscribe` headers (RFC 8058) and the CAN-SPAM footer with the workspace's postal address (409 `missing_postal_address` without one). The send is logged and appended to the lead's timeline (`email_sent`, by the caller). `reply_to_message_id` threads the email under a provider message (e.g. the lead's reply).
API key access
mailboxes:write scope with an API key (ro_pat_...). A signed-in session uses the caller's role./api/v1/mailboxes/{mailbox_id}/sendAccess token from /api/v1/auth/login, or an API key (ro_pat_..., RO-176) from /api/v1/workspaces/current/api-keys: the key implies its workspace and needs the route's scope. MCP connectors (/api/v1/mcp only) may use an OAuth access token (ro_oat_..., RO-284).
In: header
Path Parameters
uuidHeader Parameters
Id of the workspace to act on (must be a member).
The recipient: a live lead of the workspace (sent to its email).
uuidOne line (no line breaks), stripped.
1 <= length <= 998HTML or plain text; not blank.
1 <= length <= 100000"marketing"Provider id of the message this answers (threads the email).
1 <= length <= 255Response Body
curl -X POST "http://localhost:8000/api/v1/mailboxes/497f6eca-6276-4993-bfeb-53cbbbba6f08/send" \ -H "X-Workspace-Id: string" \ -H "Content-Type: application/json" \ -d '{ "lead_id": "9bddab70-98e6-43a9-8f32-c9788b9de0c0", "subject": "string", "body": "string" }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"mailbox_id": "4d23d1af-2eef-4598-a5e0-1f19ae0b0c14",
"lead_id": "9bddab70-98e6-43a9-8f32-c9788b9de0c0",
"provider_message_id": "string",
"sent_at": "2019-08-24T14:15:22Z"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Resume Mailboxes
Admin+: resume the named mailboxes (`mailbox_ids`) or every mailbox of a sending domain (`domain`), whoever paused them (an admin or the deliverability guard); the guard's window restarts now.
Update Fleet Mailbox
Admin+: a mailbox's rotation weight (0-100; 0 starts no new conversations) and its own warmup schedule (`warmup_days` 0-365, 0 = no ramp; `warmup_start_per_day`; `null` = the server's default; `restart_warmup` starts the ramp again today). 422 with the reason when invalid. Answers the mailbox's fleet entry.