Send between inboxes
Test reply flows between your own org's inboxes.
The API is receive-only for the outside world — there is no SMTP, and nothing it does ever delivers to a real inbox you don't control. The one exception: an inbox may send to another inbox in the same organization, so you can exercise a reply or verification flow end to end without standing up an SMTP server of your own.
POST /v1/inboxes/{inbox_id}/sendcurl -s https://devapi.temp-mail.lol/v1/inboxes/inb_fromThis/send \
-H "Authorization: Bearer tm_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{"to": ["[email protected]"], "subject": "Welcome", "text": "Hi there"}'const KEY = "tm_test_YOUR_KEY";
const base = "https://devapi.temp-mail.lol/v1";
const send = await fetch(`${base}/inboxes/inb_fromThis/send`, {
method: "POST",
headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ to: ["[email protected]"], subject: "Welcome", text: "Hi there" }),
}).then((r) => r.json());
console.log(send.delivered, send.dropped); // [{ inbox_id, message_id }], [inbox_id, ...]import requests
KEY = "tm_test_YOUR_KEY"
BASE = "https://devapi.temp-mail.lol/v1"
headers = {"Authorization": f"Bearer {KEY}"}
send = requests.post(f"{BASE}/inboxes/inb_fromThis/send", headers=headers, json={
"to": ["[email protected]"], "subject": "Welcome", "text": "Hi there",
}).json()
print(send["delivered"], send["dropped"]) # [{"inbox_id": ..., "message_id": ...}], [inbox_id, ...]The rules
| Field | Notes |
|---|---|
| to | 1–10 addresses, deduped. Each must be an ACTIVE inbox of your own org, in the same mode (live/test) as your key |
| subject | Up to 998 characters. Omitted with in_reply_to set → "Re: " + the original subject |
| text / html | At least one, combined under your plan's message size cap (today 10 MB). The entire JSON request body is also capped at 64 KB like every /v1 POST — go over that and you get 413 payload_too_large before the message-size check ever runs |
| in_reply_to | A message id from this org/mode — sets In-Reply-To/References so threading looks real |
Any address that isn't one of your own org's ACTIVE inboxes — whether it doesn't exist at all, belongs to someone else, or is in the other livemode — gets the same 422 recipient_not_allowed: we never reveal which case it was.
Capped at 60 delivered copies per hour per organization (live and test tracked separately), on top of the normal per-key rate limit and your monthly request quota — a send to 10 recipients uses 10 of those at once, and a send that would need more than you have left is refused whole rather than partially delivered.
In live mode, each delivered copy also counts toward your emails_month quota exactly like a received e-mail — it fires the normal message.received webhook event too, so your existing handler sees it the same way. (Test mode has no e-mail quota.) If a send would put you over emails_month, the copies that fit are still delivered and the rest are listed in dropped alongside the normal delivered array; if none of them fit, you get 429 quota_exceeded instead of a 201 with an empty delivered.