Cold email sending API from inboxes you own
Send an email from one of your inboxes, or reply within a thread, with file attachments when needed (a deck, a PDF: by public https url, or inline as base64). You are the sender of record: consent and unsubscribe handling are yours.
AgentMail:
all inputs ✓
✓ marks a combination proven with a real provider call. Others are wired and unit-tested; their first live run verifies them.
| Provider | Status |
|---|---|
AgentMail |
live |
Unit: per_email · unmatched results billed: no
Priced per email sent.
The exact quote is returned by /v1/inspect before every call and held with headroom on execution. The quote is the price floor: if the provider's actual cost overruns it, the run bills the overrun at the same rate, never above the hold. The unused part of every hold is released.
curl https://api.routergrowth.com/v1/run \ -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \ -d '{ "capability": "email.send", "input": { "inbox_id": "alex@getacme.com", "to": ["investor@fund.example"], "subject": "Acme deck, as promised", "text": "Hi Sam,\n\nThe deck is attached. Happy to walk you through it this week.\n\nAlex", "attachments": [{"content_type": "application/pdf", "filename": "acme-deck.pdf", "url": "https://files.getacme.com/acme-deck.pdf"}] }, "routing": {"provider": "auto"} }'
{
"properties": {
"attachments": {
"description": "Files to attach, 10 at most and 10 MB in total per message. Each carries the file one of two ways: url, a public https URL the provider downloads (a pre-signed or redirecting URL works; the way to send anything above 4 MB), or data_base64, the file inline (4 MB of file data in total per message). Works on replies too.",
"items": {
"properties": {
"content_type": {
"description": "Media type, e.g. application/pdf; guessed from the filename when omitted",
"type": "string"
},
"data_base64": {
"description": "The file\u0027s bytes as standard base64; exactly one of url or data_base64",
"type": "string"
},
"filename": {
"description": "Plain file name shown to the recipient, e.g. deck.pdf",
"type": "string"
},
"size_bytes": {
"description": "Optional with url: the file\u0027s size, counted toward the 10 MB total",
"type": "integer"
},
"url": {
"description": "Public https URL of the file; exactly one of url or data_base64",
"type": "string"
}
},
"required": [
"filename"
],
"type": "object"
},
"maxItems": 10,
"type": "array"
},
"bcc": {
"items": {
"type": "string"
},
"type": "array"
},
"cc": {
"items": {
"type": "string"
},
"type": "array"
},
"html": {
"type": "string"
},
"in_reply_to": {
"description": "message_id to reply to; keeps the thread",
"type": "string"
},
"inbox_id": {
"description": "From email.inbox or email.inboxes. The From name is the inbox\u0027s display_name; change it with email.inbox (inbox_id + display_name), there is no per-email override",
"type": "string"
},
"reply_to": {
"type": "string"
},
"subject": {
"type": "string"
},
"text": {
"type": "string"
},
"to": {
"description": "Up to 50 recipients",
"items": {
"type": "string"
},
"type": "array"
},
"unsubscribe_url": {
"description": "Adds a List-Unsubscribe header",
"type": "string"
}
},
"required": [
"inbox_id",
"to"
],
"type": "object"
}
message_id · thread_id · attachments