Reden Mail API
Base URL: https://mail.reden.cc. All request and response bodies are JSON (UTF-8). All timestamps in responses are ISO 8601 UTC, for example 2026-10-19T08:30:00.000Z.
Contents: authentication, sending (POST /emails, POST /emails/batch, POST /send), reading (GET /emails, GET /emails/:id, GET /emails/:id/events), campaigns (GET /campaigns), inbox (GET /inbox/threads, GET /inbox/threads/:id, POST /inbox/messages/:id/reply, GET /inbox/counts), statuses, events, webhooks, unsubscribe, suppressions, SMTP, errors, limits.
Authentication
Every API request needs a tenant API key:
Authorization: Bearer rsk_...
Create keys in the dashboard under API keys. An admin's key acts for the whole account. A member can create up to 5 keys of their own: each acts as that person, reading only the mailboxes they can read and sending only from the addresses they can send from, checked on every request, so a member who loses access to a mailbox, or leaves the team, takes it from their keys too (a removed member's keys answer 401). Only a hash is stored; a key is shown once. A key acts only for its own tenant: another tenant's message is a 404, never a 403. Revoking a key takes effect on the next request.
Every key can send and read its sending log. To read received mail and reply through the Inbox endpoints, tick Inbox access when creating the key, and choose its mailboxes: all of them, or only some (for example a support bot that reads only support@). A key limited to mailboxes lists, reads, searches, counts, acts on, drafts and sends only within them: anything else is 404 not_found, and it replies and forwards from the mailbox the mail is in. New mail from its drafts goes out from one of its mailboxes on the draft's domain, or is refused with 403 mailbox_not_allowed. It sends with POST /emails, POST /emails/batch and POST /send only from its mailboxes' addresses too (see POST /emails). Inbox keys made before mailboxes keep all mailboxes, and sending-only keys send from any address, as before. It is off by default, so a leaked sending key cannot read your mail. A key without it gets 403 forbidden on /inbox/*. Keys that existed before inbox access was added are send-only. The deprecated global key never has inbox access.
The same key is the SMTP password (see SMTP).
Sending
POST /emails
One message to up to 50 recipients (to + cc + bcc). Each recipient becomes its own tracked delivery with its own status and events; the message as a whole has one id.
| Field | Type | Notes |
|---|---|---|
from | address | Optional. Must be on one of your verified domains, else 422. Default: the domain's sender (for example info@yourdomain.com) and display name. A key limited to mailboxes sends only from its mailboxes' addresses, else 403 mailbox_not_allowed; without from it sends from its mailbox on that domain instead of the domain's sender. |
to, cc, bcc | address or list | At least one recipient. Bcc addresses never appear in any header. |
reply_to | address or list | Optional. |
subject | string | One line. Required unless a template supplies it. |
html | string | Sent exactly as given. |
text | string | Plain-text part. If you send only html, a text part is derived from it. |
template, vars | string, object | Instead of html/text: a stored template (see Templates). |
domain | string | Picks the default sender when from is omitted. |
idempotency_key | string | Optional, up to 200 characters. A retry with the same key returns the original message ("status": "duplicate") and sends nothing. |
transactional | boolean | true for receipts, codes and password resets: never gets automatic List-Unsubscribe. |
unsubscribe_url | string | Your own one-click unsubscribe URL (http/https). Adds List-Unsubscribe and List-Unsubscribe-Post: List-Unsubscribe=One-Click headers only; the body is never changed. Your URL must unsubscribe on a plain POST with no confirmation step. |
campaign | string | Optional campaign name, up to 100 characters on one line. Every send with the same name from your account is one campaign, ignoring case and repeated spaces; see Campaigns. Cannot be combined with transactional: true (400). Campaign mail always gets a one-click unsubscribe. |
save_to_sent | boolean | true also saves a full copy (body, To and Cc; never Bcc) in your inbox's Sent folder, so it shows in the conversation when the recipient replies. Counts toward inbox storage. Default false. |
An address is any of: "a@example.com", "Name <a@example.com>", {"email": "a@example.com", "name": "Name"}, or a list mixing them. Names in any script (Arabic included) are RFC 2047 encoded for you. A string may hold several comma-separated addresses; quote a name that contains a comma: "\"Doe, Jane\" <jane@example.com>".
curl -X POST https://mail.reden.cc/emails \
-H "Authorization: Bearer $REDEN_KEY" -H 'content-type: application/json' \
-d '{
"from": {"email": "info@lokify-eg.com", "name": "Lokify"},
"to": ["Sara <sara@example.com>"],
"bcc": "audit@lokify-eg.com",
"reply_to": "support@lokify-eg.com",
"subject": "Your booking is confirmed",
"html": "<p>See you on Friday.</p>",
"text": "See you on Friday.",
"transactional": true,
"idempotency_key": "booking-8812"
}'
Response 202:
{
"id": "5d0c1f3e-...",
"object": "email",
"status": "queued",
"message_id": "5d0c1f3e-...@lokify-eg.com",
"from": "info@lokify-eg.com",
"subject": "Your booking is confirmed",
"created_at": "2026-10-19T08:30:00.000Z",
"recipients": [
{"id": "9b1e...", "email": "sara@example.com", "type": "to", "status": "queued"},
{"id": "77aa...", "email": "audit@lokify-eg.com", "type": "bcc", "status": "queued"}
]
}
status is queued (every recipient queued), partial (some suppressed or refused), suppressed (none sent), or duplicate. Per recipient: queued, suppressed (on your suppression list; not an error), refused (a limit was reached mid-message), or duplicate.
Replies thread. Every message that goes out to at least one recipient keeps a small record of its message_id, sender, To, Cc and subject for 180 days, with no body. When someone replies, their reply joins one conversation in your inbox. With save_to_sent: true the response also has sent_copy_id (the copy in Sent) and thread_id (its conversation, for GET /inbox/threads/:id). If the record or copy could not be saved after the mail was queued, the response has "post_send_persist_failed": true; the mail is still sent. Replies to mail sent with POST /send (v1) or over SMTP do not thread this way.
Node:
const res = await fetch('https://mail.reden.cc/emails', {
method: 'POST',
headers: { authorization: `Bearer ${process.env.REDEN_KEY}`, 'content-type': 'application/json' },
body: JSON.stringify({
to: { email: 'sara@example.com', name: 'سارة' },
subject: 'مرحبا',
html: '<p>أهلا بك</p>',
idempotency_key: `welcome-${userId}`,
}),
});
if (!res.ok) throw new Error(`Reden ${res.status}: ${(await res.json()).message}`);
const email = await res.json(); // email.id, email.recipients
POST /emails/batch
Up to 100 messages in one request, as a JSON array or {"emails": [...]}. Each message has the same fields as POST /emails, is validated on its own, and succeeds or fails on its own. In the object form, {"campaign": "November newsletter", "emails": [...]} tags every message that does not name its own campaign.
curl -X POST https://mail.reden.cc/emails/batch \
-H "Authorization: Bearer $REDEN_KEY" -H 'content-type: application/json' \
-d '[{"to":"a@example.com","subject":"Hi A","text":"..."},
{"to":"not-an-address","subject":"Hi B","text":"..."}]'
Response: 202 when all succeeded, 207 when some failed, 400 when none did.
{
"object": "batch", "total": 2, "succeeded": 1, "failed": 1,
"data": [
{"index": 0, "id": "…", "status": "queued", "recipients": [ … ]},
{"index": 1, "id": null, "status": "error",
"error": {"status": 400, "error": "invalid_address", "message": "to: \"not-an-address\" is not an email address"}}
]
}
Limits are enforced per recipient inside the database write itself, so concurrent batches can never overshoot your monthly or daily limit. A message that cannot fit is refused whole (402 in its item) and later messages are still attempted.
POST /send (v1)
The original single-recipient endpoint. Unchanged; existing integrations keep working. It always sends from the domain's sender, so a key limited to mailboxes can use it only when that address is one of its mailboxes; otherwise 403 with {"error": "mailbox_not_allowed", "message": "…"}.
{"to": "a@example.com", "subject": "…", "html": "…", "text": "…",
"domain": "lokify-eg.com", "replyTo": "support@lokify-eg.com",
"idempotencyKey": "…", "unsubscribe_url": "https://…", "transactional": false}
or with a template: {"to": "…", "template": "broadcast", "vars": {…}}. Response 202 {"id": "…", "status": "queued" | "suppressed" | "duplicate"}. New integrations should use POST /emails.
Templates
template names a stored template and vars fills its {{ placeholders }} (HTML-escaped in HTML, raw in text). Available:
base:subject,preview,heading,body,cta_label,cta_url,footer.broadcast: newsletters and notices.subject,preview,heading,body(blank line = new paragraph,[label](https://url)= link),cta_label+cta_url,footer,unsubscribe_url,variant(marketingcard layout, orserviceplain white).
No Reden branding is ever added to your mail.
Reading
GET /emails
Lists recipient rows, newest first.
| Query | Notes |
|---|---|
status | One status or a comma list: bounced,complained. |
from, until | ISO 8601 date or datetime (unix seconds also accepted). from is inclusive, until exclusive. |
recipient | Exact address. |
campaign | A campaign id: only its recipients. |
limit | 1 to 200, default 50. |
cursor | next_cursor from the previous page. |
curl "https://mail.reden.cc/emails?status=bounced&from=2026-10-01&limit=100" -H "Authorization: Bearer $REDEN_KEY"
{"object": "list", "has_more": true, "next_cursor": "MTc2…",
"data": [{"object": "email_recipient", "id": "…", "group_id": "…", "recipient": "a@example.com",
"recipient_type": "to", "subject": "…", "status": "bounced", "error": null,
"transactional": false, "created_at": "…", "sent_at": "…", "updated_at": "…"}]}
GET /emails?id=<recipient id> (v1) still returns that one row.
GET /emails/:id
With a message id (from POST /emails): the message and all its recipients. With a recipient id: that row.
GET /emails/:id/events
The full history, oldest first, for a message (all recipients) or one recipient.
{"object": "list", "email_id": "…", "data": [
{"id": "…", "email_id": "…", "recipient": "a@example.com", "type": "queued", "ses_type": "Queued", "at": "…", "detail": null},
{"id": "…", "type": "sent", "ses_type": "Sent", "at": "…"},
{"id": "…", "type": "delivered", "ses_type": "Delivery", "at": "…", "detail": "250 2.0.0 OK", "mta": "…", "ip": "…"}
]}
Legacy timestamps
For one release, add ?legacy_ts=1 to any GET to also receive each time as unix seconds under <field>_unix (for example created_at_unix). It will be removed in the next release.
Campaigns
Tracking for bulk sends; Reden does not build or schedule them. Tag each message of a send with the same campaign name (POST /emails, POST /emails/batch, or the X-Reden-Campaign header over SMTP), and Reden groups them into one campaign: delivery, opens, clicks, bounces, complaints and unsubscribes, per recipient and in total, with the content as sent. Everyone on your account sees campaigns in the dashboard under Campaigns.
curl -X POST https://mail.reden.cc/emails/batch \
-H "Authorization: Bearer $REDEN_KEY" -H 'content-type: application/json' \
-d '{"campaign": "November newsletter", "emails": [
{"from": "news@yourdomain.com", "to": "a@example.com", "subject": "November news", "html": "<p>…</p>"},
{"from": "news@yourdomain.com", "to": "b@example.com", "subject": "November news", "html": "<p>…</p>"}]}'
- Grouping. The same name from the same account is one campaign, whenever it is sent, so name each send uniquely ("November newsletter", not "Newsletter"). Case and repeated spaces don't matter; the campaign keeps the spelling it was first sent with.
- Not transactional. Campaign mail is bulk mail:
campaignwithtransactional: trueis refused with400. - Unsubscribe. Every campaign email carries a one-click
List-Unsubscribe, even when automatic unsubscribe is off for your account: Reden's link, unless you pass your ownunsubscribe_url(or, over SMTP, your ownList-Unsubscribeheader). An unsubscribe through Reden's link adds the address to your suppression list and counts toward the campaign. Unsubscribes through your own link reach you, not us, so the report says they are not counted. - Content. Reden keeps each distinct version of the content (From, subject, HTML, text) once, not once per recipient, up to 10 versions per campaign. If you personalise the body per recipient, the first 10 versions are kept and the rest are counted. Over SMTP, attachments are listed by name; their files are not kept.
- Opens are an upper bound. Apple Mail Privacy Protection loads the images of every email it receives, and some security scanners open mail on arrival. Opens that look automatic (Apple's bare
Mozilla/5.0user agent, a scanner's user agent, no user agent, or an open within 10 seconds of sending) are counted apart asautomatic_opens; others can't be told apart. Gmail and Yahoo image proxies count as people. - Automatic pause. To protect deliverability, a campaign pauses when its hard bounces go over 5% of sent (once 100 have been sent) or its complaints over 0.1% (once 1,000 have been sent). Your admins are emailed, new sends tagged with it are refused with
409 campaign_paused, and its queued mail is held for up to three days. An admin resumes it, or cancels the held mail, from the campaign's report; after a resume the limits count sends made since. - Retention. Per-recipient data (who opened, clicked, bounced or unsubscribed, and the open and click events with their IP addresses and user agents) is deleted 13 months after the send, along with versions that went to a single recipient. The campaign's totals, links, timeline and other versions stay.
Reading campaigns
All GET, with any key. A key limited to mailboxes sees only campaigns sent entirely from its mailboxes' addresses; any other campaign is 404, like another account's.
| Endpoint | Returns |
|---|---|
GET /campaigns | Your campaigns, most recently sent first. Query: q (name contains), limit (1 to 200), cursor. |
GET /campaigns/:id | Counts, rates, pause state, held mail and the From addresses. |
GET /campaigns/:id/recipients | One row per recipient: status, sent, delivered, bounced (hard or soft), first and last opened, opens, automatic_opens, clicks, links_clicked. Query: filter (opened, clicked, bounced, unsubscribed, not_opened), q (address contains), limit, cursor. |
GET /campaigns/:id/recipients.csv | The same rows and filters as CSV. |
GET /campaigns/:id/links | Each link clicked: clicks, unique_clicks, unique_click_rate. Past 200 distinct links, the rest are counted together under url: null. |
GET /campaigns/:id/timeline | Opens (and automatic opens) and clicks per hour. |
GET /campaigns/:id/versions | The distinct contents sent, with how many recipients got each. |
GET /campaigns/:id/versions/:vid | One version with its html, text and SMTP attachments (names only). |
Rates are percentages, null while their base is zero: delivered, bounced and complained are out of sent; opened, clicked and unsubscribed out of delivered.
{"object": "campaign", "id": "cmp_9f1c…", "name": "November newsletter", "status": "active",
"first_sent_at": "2026-11-03T09:00:12.000Z", "last_sent_at": "2026-11-03T09:14:40.000Z",
"recipients": 4200, "sent": 4180, "suppressed": 20, "failed": 0, "cancelled": 0, "held": 0,
"delivered": 4105, "bounced": 41, "soft_bounced": 34, "complained": 2, "unsubscribed": 19,
"opened": 2240, "opened_excluding_automatic": 1302, "clicked": 388,
"opens": 3920, "automatic_opens": 1210, "clicks": 512,
"rates": {"delivered": 98.21, "bounced": 0.98, "complained": 0.05, "opened": 54.57,
"opened_excluding_automatic": 31.72, "clicked": 9.45, "unsubscribed": 0.46},
"paused": null, "resumed": null, "external_unsubscribe": false, "unstored_version_recipients": 0,
"recipient_data_purged_before": null,
"senders": [{"address": "news@yourdomain.com", "recipients": 4200}]}
Inbox
Received mail, for keys with Inbox access (see Authentication). Conversations are threads (thr_…) of messages (msg_…). Folders: inbox, sent, spam, archive, trash.
Mailboxes. An account can have separate mailboxes: one per person's own address, and shared ones such as info@. Threads and messages carry mailbox_id (null until the account's mail is in mailboxes). Once separate mailboxes are on, an email delivered to two mailboxes is two messages, one in each, each with its own read, starred and folder state; a key with all mailboxes sees both.
GET /inbox/threads
Conversations in a folder, newest first, each shown by its latest message there. With q, it returns matching messages instead (each with its id thread), across every folder except trash unless folder is given.
| Query | Notes |
|---|---|
folder | Default inbox. |
q | Words to find in the sender, subject or body. Up to 200 characters. |
unread | true: only conversations (or, with q, messages) with unread mail. |
replied | true: only conversations that were answered; false: only those that were not (see replied_at). Leave it out for both. |
limit | 1 to 100, default 25. |
cursor | next_cursor from the previous page. |
curl "https://mail.reden.cc/inbox/threads?unread=true&limit=10" -H "Authorization: Bearer $REDEN_KEY"
{"object": "list", "has_more": false, "next_cursor": null, "data": [
{"object": "thread", "id": "thr_…", "latest_message_id": "msg_…", "folder": "inbox",
"subject": "Where is order 1042?", "snippet": "Hi, my order 1042 has not arrived…",
"from": {"email": "sara@example.com", "name": "Sara"}, "to": [{"email": "support@lokify-eg.com", "name": null}],
"message_count": 2, "unread": true, "unread_count": 1, "starred": false, "has_attachments": false,
"quarantined": false, "last_message_at": "2026-10-27T09:00:00.000Z", "replied_at": null}]}
replied_at (ISO UTC, or null) is when the conversation's latest received message was answered, from the API or the dashboard. If they write again after your reply, it is null again until you answer that. To work through mail that still needs an answer, filter with replied=false rather than unread=true alone: a conversation can be unread again after it was answered.
GET /inbox/threads/:id
The whole conversation, oldest first: up to the latest 100 messages (truncated is true when there are more), each with its plain-text body in text. HTML bodies and attachment contents are not returned. Reading does not mark anything read. Trash is not included.
{"object": "thread", "id": "thr_…", "subject": "Where is order 1042?", "message_count": 2, "truncated": false,
"replied_at": null,
"messages": [{"object": "message", "id": "msg_…", "direction": "inbound", "folder": "inbox",
"from": {"email": "sara@example.com", "name": "Sara"}, "to": […], "cc": [], "subject": "Where is order 1042?",
"received_at": "…", "unread": true, "starred": false, "replied_at": null, "text": "Hi, my order 1042 has not arrived…",
"quarantined": false, "storage_skipped": false, "spam_verdict": "PASS",
"authentication": {"spf": "PASS", "dkim": "PASS", "dmarc": "PASS"},
"attachments": [{"id": "att_…", "filename": "receipt.pdf", "content_type": "application/pdf", "size_bytes": 20480}]}]}
text is null for a quarantined message (a virus was found; nothing was kept) or one received while the mailbox was over its storage limit (storage_skipped). Each message also has thread_id.
GET /inbox/messages/:id
One message, in the same shape as a message in GET /inbox/threads/:id, wherever it is filed (Trash included). Add ?headers=true for its raw headers too, in order, with folded lines joined and values as sent (encoded words are not decoded):
{"object": "message", "id": "msg_…", "thread_id": "thr_…", "folder": "inbox", "…": "…",
"headers": [{"name": "Received", "value": "from mx.example.com by inbound-smtp.eu-west-1.amazonaws.com …"},
{"name": "Authentication-Results", "value": "amazonses.com; spf=pass …"}]}
headers is null when no raw copy of the message is kept (for example a quarantined message). Headers are read from the first 64 KB of the message.
POST /inbox/messages/:id/reply
Replies to one message inside its conversation. The reply goes to every address in the original's Reply-To header, or to its sender when it has none (for a message you sent, to its recipients again). It is sent from the address the message was sent to, with In-Reply-To and References set so it threads in their mail client, and with the original quoted below. In-Reply-To is the original's Message-ID; References is the original's References plus its Message-ID, with the oldest entries dropped if the header would be over 998 characters. The subject gets Re: in front unless it already starts with Re:, Aw: or رد: (any case, any spacing). It is filed in Sent, in the same thread, the conversation is marked read, and the message gets replied_at. Those three are saved together, after the mail is handed over for sending.
| Field | Type | Notes |
|---|---|---|
text | string | Required. The reply, plain text, up to 500,000 characters. |
cc | address or list | Optional. |
max_recipients | integer | Optional, 1 to 50. If the reply would go to more people than this (the Reply-To or sender, plus cc, without duplicates), nothing is sent: 409 confirmation_required with recipient_count and recipients. Use it to confirm a large reply with a person first. |
reply_all | boolean | Optional. true also copies everyone else on the original: every address in its To and Cc, except the reply's To, your own domains (and their subdomains) and mail-server addresses (postmaster, mailer-daemon), then your cc. max_recipients counts them all. The same Idempotency-Key can't be reused between a reply and a reply-all. |
Response 202: {"object": "reply", "id": "msg_…", "thread_id": "thr_…", "in_reply_to": "msg_…", "message_id": "…", "status": "queued" | "partial" | "not_sent", "recipients": [{"email", "status"}]}. If the reply was sent but saving the Sent copy, read and replied_at failed, the response is still 202, with "post_send_persist_failed": true and "id": null: the mail went out, so do not send it again, even though the conversation may still look unanswered. Replies count against your sending limits like any other send. Quarantined messages cannot be replied to (400).
Replies that are refused. To prevent mail loops and replies to bounces, a reply is not sent, and the response is 422 reply_not_allowed with a reason, when:
reason | The original message |
|---|---|
auto_submitted | Has an Auto-Submitted header other than no (auto-replies, out-of-office, notifications). |
bulk | Has Precedence: bulk, list or junk. |
bounce_address | Is from, or asks for replies to, a postmaster or mailer-daemon address. |
own_domain | Would be answered at an address on one of your own domains (or a subdomain of one). |
no_address | Has no usable address to reply to. |
Retrying safely. Send an Idempotency-Key header (1 to 128 printable ASCII characters, for example a UUID) and reuse it when you retry the same reply:
curl -X POST "https://mail.reden.cc/inbox/messages/msg_…/reply" -H "Authorization: Bearer $REDEN_KEY" -H "Content-Type: application/json" -H "Idempotency-Key: 6f1c2e0a-7a4b-4d55-9f0e-3b8f1d2c4a91" -d '{"text": "Your order shipped yesterday."}'
- A repeat with the same key, within 24 hours, gets the first request's status and body back (with the header
Idempotent-Replayed: true) and sends nothing. - A repeat while the first request is still sending gets
409 idempotency_pendingwith aRetry-Afterheader (seconds). Retry after that to get the result. - The same key with a different body, or on a different message, gets
422 idempotency_key_reused. Use a new key for each reply. - Keys are per account: another account's keys never clash with yours.
- Simultaneous requests with the same key send once: one sends, the others get
409 idempotency_pendingor the result. - If the request fails before anything is sent (for example
404or400), the key is released, so a retry with it can go through.
Without the header, every request sends, as before: on a timeout, read the thread before retrying.
POST /inbox/messages/:id/forward
Forwards one message, with its attachments, to new people, from the address it was sent to. The subject gets Fwd: unless it already shows it was forwarded. The original's sender, date and subject head the forwarded text, under your optional note.
| Field | Type | Notes |
|---|---|---|
to | address or list | Required. |
cc | address or list | Optional. |
text | string | Optional note above the forwarded message, plain text. |
max_recipients | integer | Optional, as for a reply: above it nothing is sent, 409 confirmation_required. |
{"object": "forward", "id": "msg_…", "thread_id": "thr_…", "forward_of": "msg_…", "message_id": "…@lokify-eg.com",
"attachments": ["invoice.pdf"], "status": "queued", "recipients": [{"email": "accounts@partner.example", "status": "queued"}]}
Automatic and bulk mail can be forwarded: you choose who gets it. An address on one of your own domains (or a subdomain) is refused with 422 forward_not_allowed (reason: "own_domain"), since it would come straight back into this inbox. The copy in Sent carries References (not In-Reply-To) and is filed in the original's conversation. Idempotency-Key works as for replies, and a key used for a reply can't be reused for a forward, or the other way round.
Drafts
Drafts are kept in Reden Mail, plain text, up to 500 per account, so an email can be written now, checked, changed and sent later. The API sees only drafts made over the API: drafts people are writing in the dashboard are never listed, and their ids are a 404 for every key. Drafts made over the API do show in the dashboard, for the account's people to finish and send.
| Route | |
|---|---|
POST /inbox/drafts | Create one. 201 with the draft. |
GET /inbox/drafts | List, most recently changed first. limit 1 to 100, default 50. |
GET /inbox/drafts/:id | One draft. |
PATCH /inbox/drafts/:id | Change it: only the fields you send change. kind and message_id can't change. |
DELETE /inbox/drafts/:id | Delete it without sending. |
POST /inbox/drafts/:id/send | Send it (below). |
| Field | Notes |
|---|---|
kind | new (default without message_id), reply (default with one), reply_all or forward. |
message_id | For reply, reply_all and forward: the message answered or forwarded. |
to | new and forward only. A reply goes to the original's Reply-To or sender, worked out when it is sent. |
cc | Any kind. |
subject | new only; replies and forwards take theirs from the original. |
text | Plain text, up to 200,000 characters. For a forward, the note above it. |
domain | new only: which of your domains to send from. Needed when you have more than one verified domain. |
{"object": "draft", "id": "drf_…", "kind": "reply", "message_id": "msg_…", "to": [], "cc": [],
"subject": null, "text": "Thanks, it ships Friday.", "domain": null, "created_at": "…", "updated_at": "…"}
Sending goes through the same path as the kind on its own: a reply draft is sent as POST /inbox/messages/:id/reply would send it, reply_all as a reply with reply_all: true, forward as POST /inbox/messages/:id/forward, and new as a new message from the draft's domain. So the same refusals (422), the same max_recipients hold (409 confirmation_required; send {"max_recipients": n} in the body), the same threading and the same copy in Sent apply. The answer is that send's answer with "object": "sent_draft", draft_id and kind. Once anything is handed over for sending, the draft is deleted. If nothing was sent, for example after a refusal, it is kept to fix and send again.
A draft is claimed before it is sent, so two simultaneous sends of one draft send once (the other gets 409 draft_sending, or 404 once it is gone). Idempotency-Key works as for replies, and a repeat with the same key gets the first answer even after the draft is gone.
Actions on mail
Each action is a POST to a conversation, /inbox/threads/:id/<action>, or to one message, /inbox/messages/:id/<action>, with an optional JSON body. An action that finds nothing to change (marking read what is already read) succeeds with changed: 0, so retrying is always safe. A conversation or message your account doesn't have is a 404.
{"object": "mail_action", "action": "read", "thread_id": "thr_…", "changed": 3}
changed counts messages.
| Action | On a conversation | On a message |
|---|---|---|
read, unread | Every message, Trash included. | That message. |
star, unstar | Every message. A conversation shows as starred when any of its messages is. | That message. |
archive | Its messages in Inbox move to Archive. Sent replies stay in Sent. | That message, if it is in Inbox. |
unarchive | Its messages in Archive move back to Inbox (sent ones to Sent). | That message, if it is in Archive. |
move | Body {"to": <folder>, "from": <folder>}, where to is inbox, archive, spam or trash. Without from, its received mail moves (whatever is in Inbox, Archive or Spam); Sent and Trash stay put. With from, only what is in that folder. | That message, wherever it is (or only if it is in from). |
trash | Every message, Sent included, moves to Trash. | That message. |
untrash | Its messages in Trash move back: received mail to Inbox, sent mail to Sent. | That message, if it is in Trash. |
delete | Refused: 403 delete_forever_disabled (see below). | Refused, the same. |
spam | Its received mail (Inbox, Archive) moves to Spam, and its senders are blocked (see below). | That message, wherever it is; its sender is blocked. |
not_spam | Its messages in Spam move to Inbox, and their senders are unblocked. | That message, if it is in Spam. |
Deleting forever is not available over the API: delete always answers 403 delete_forever_disabled and deletes nothing, for every key. Deleting forever cannot be undone, so only an admin can do it, in the dashboard (Trash). Mail in Trash is also deleted automatically 30 days after it was trashed, and trash and untrash work as before.
POST /inbox/bulk
One action on up to 50 conversations or messages: {"action": "archive", "thread_ids": ["thr_…", …]}, or message_ids instead. action is read, unread, star, unstar, archive, unarchive, trash, untrash, spam or not_spam; each item is changed as its single-item action would change it. Ids your account doesn't have are reported as not_found and skipped:
{"object": "bulk_result", "action": "archive", "thread_ids": ["thr_a…", "thr_b…"], "changed": 3, "not_found": 1,
"results": [{"id": "thr_a…", "status": "ok", "changed": 3}, {"id": "thr_b…", "status": "not_found", "changed": 0}]}
trash needs "confirm": true. Without it nothing moves, and the answer is 409 confirmation_required with count (items with something to move) and up to 10 items (id, subject, from, received_at, messages). Repeat with "confirm": true, "expected_count": <count>; if the count no longer matches, nothing moves and you get the new preview. Items with nothing left to trash need no confirmation.
GET /inbox/threads/:id?include_trash=true shows a conversation's messages in Trash too; without it, a conversation that is all in Trash is a 404.
Blocked senders. Marking received mail as spam blocks its sender: their future mail to your account goes straight to Spam. Only that exact address is blocked, never a whole domain, and never an address on one of your own domains (or a subdomain of one). Moving received mail out of Spam to Inbox or Archive, with not_spam or move, unblocks its sender; moving it to Trash leaves the list as it is. The responses name the senders this changed in blocked or unblocked (also on move and bulk). Your outgoing suppression list is a separate list and is never changed by this.
GET /inbox/blocked_senders:{"object": "list", "data": [{"address": "deals@promo.example", "blocked_at": "…"}]}DELETE /inbox/blocked_senders/:address(URL-encoded): unblocks one;404if it was not blocked. Mail already in Spam stays there.
The dashboard lists them in Spam under Blocked senders, each with a Remove button.
Mail is filed in Sent only by sending it, so sent is never a to. A sent message moved to Inbox goes back to Sent. Moving to Trash starts its 30 days before it is deleted forever; moving out of Trash stops that. The move response also has to and from (filed or any when you left it out).
GET /inbox/counts
{"object": "inbox_counts", "unread": 3, "folders": [{"folder": "inbox", "total": 12, "unread": 3}, …]}
unread is the Inbox's unread count.
Statuses
A recipient's status only moves forward:
| Status | Meaning |
|---|---|
queued | Accepted, waiting to send. |
sending | Being handed to the provider. |
sent | Accepted by Amazon SES. |
delivered | The recipient's server accepted it. |
opened | Opened (tracking pixel; not for transactional inbox mail). |
clicked | A tracked link was clicked. |
bounced | Rejected by the recipient's server. Hard bounces are suppressed automatically. |
complained | Marked as spam. The address is suppressed automatically. |
failed | Could not be sent after retries. |
suppressed | Not sent: the address is on your suppression list. |
Events
| Event | When |
|---|---|
sent | SES accepted the message. |
delivered | The receiving server accepted it. |
delayed | Delivery is being retried by SES (temporary failure at the receiver). |
bounced | Bounce; data.bounce.type is Permanent or Transient. |
complained | Spam complaint. |
opened | Open. |
clicked | Click; data.click.link. |
rejected | SES refused the message (for example, a virus). |
suppressed | Not sent because the address is suppressed. |
Webhooks
Add endpoints in the dashboard under Advanced → Webhooks (admins only): add, send a test, disable, delete, and see recent deliveries with their response codes. Each endpoint can receive all events or a subset. The signing secret (whsec_…) is shown once, when the endpoint is added.
Every delivery is a POST with a JSON body:
{
"id": "6c1f…",
"type": "delivered",
"created_at": "2026-10-19T08:30:04.000Z",
"data": {
"email_id": "9b1e…", "group_id": "5d0c…", "to": "sara@example.com", "recipient_type": "to",
"subject": "Your booking is confirmed", "status": "delivered", "domain": "lokify-eg.com"
}
}
Campaign mail adds data.campaign, the campaign's name. Bounces add data.bounce {type, sub_type, diagnostic}, complaints data.complaint {feedback_type}, clicks data.click {link}, delays data.delay {type}, rejects data.reject {reason}. id is unique per event; use it to drop duplicates.
Verifying signatures
Headers: X-Reden-Timestamp (unix seconds) and X-Reden-Signature: sha256=<hex>, where the hex is HMAC-SHA256 of <timestamp>.<raw body> keyed with your secret. Verify against the raw body, before parsing, and reject timestamps older than 5 minutes.
import crypto from 'node:crypto';
export function verifyReden(rawBody, headers, secret) {
const ts = headers['x-reden-timestamp'];
const sig = headers['x-reden-signature'] ?? '';
if (!ts || Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex');
return sig.length === expected.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
}
Retries
Return any 2xx within 10 seconds. Anything else (including a timeout or redirect) is retried with exponential backoff: 30 s, 1 min, 2 min, 4 min, ... capped at 2 hours between attempts, until 24 hours after the event. After that the delivery is marked failed. Deliveries can arrive out of order and more than once.
Unsubscribe
Two options, which can be combined per message:
- Your own URL: pass
unsubscribe_urlon a send. Reden adds theList-UnsubscribeandList-Unsubscribe-Postheaders and nothing else. - Automatic (off by default): turn it on in the dashboard under Advanced → Unsubscribe. Every API and SMTP send that is not
transactionalgets a one-click link hosted by Reden, and an unsubscribe adds the address to your suppression list. Over SMTP, mark transactional mail with the headerX-Reden-Transactional: true(removed before sending).
Campaign mail always gets Reden's link unless it has your own, whether or not automatic unsubscribe is on.
Suppressions
GET /suppressions?address=a@example.com -> {"address", "suppressed", "reason", "created_at"}
POST /suppressions {"address": "a@example.com", "reason": "manual"}
DELETE /suppressions?address=a@example.com
Hard bounces, complaints and unsubscribes are added automatically. Suppression lists are per tenant.
SMTP
For tools that only speak SMTP (Supabase Auth, WordPress, Laravel, Django, n8n).
| Setting | Value |
|---|---|
| Host | smtp.reden.cc |
| Port | 587 with STARTTLS, or 465 with TLS |
| Username | reden |
| Password | your API key (rsk_…) |
| Encryption | required; plain connections are refused |
The From address must be on one of your verified domains. With a key limited to some mailboxes, it must be one of those mailboxes' addresses, as with POST /emails; any other From is refused with 550 5.7.1. Up to 50 recipients and 10 MB per message. Your message is sent as-is, except that Bcc and X-Reden-* headers are removed. Tag a message with a campaign with X-Reden-Campaign: November newsletter. Every SMTP message shows up in the log, events and webhooks like an API send.
SMTP replies: 250 accepted; 535 bad username or key; 550 5.7.1 From not allowed, domain not verified or account suspended; 552 too large; 452 4.3.1 sending limit reached (retry after the reset); 451 4.7.1 the message's campaign is paused (your server retries, and the mail goes once an admin resumes it); 421 4.3.0 temporary problem (retry). Repeated failed logins from one IP lock it out for 15 minutes.
Supabase Auth
Project → Authentication → Emails → SMTP Settings → enable custom SMTP:
- Sender email:
info@yourdomain.com; sender name: your brand - Host
smtp.reden.cc, port465, usernamereden, password yourrsk_key
WordPress (WP Mail SMTP)
Mailer Other SMTP; host smtp.reden.cc; encryption TLS with port 587 (or SSL with 465); authentication on; username reden; password your key. Set *From Email* to an address on your verified domain and tick *Force From Email*.
Laravel
MAIL_MAILER=smtp
MAIL_HOST=smtp.reden.cc
MAIL_PORT=587
MAIL_USERNAME=reden
MAIL_PASSWORD=rsk_...
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=info@yourdomain.com
MAIL_FROM_NAME="${APP_NAME}"
Django
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "smtp.reden.cc"
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_HOST_USER = "reden"
EMAIL_HOST_PASSWORD = os.environ["REDEN_KEY"]
DEFAULT_FROM_EMAIL = "Your Brand <info@yourdomain.com>"
n8n
Credentials → SMTP: user reden, password your key, host smtp.reden.cc, port 465, SSL/TLS on. Then use the Send Email node with a From address on your verified domain.
Claude (MCP)
Connect Claude to Reden Mail and it can send email, check delivery, and read and answer the mail you receive, with your account's domains and limits. The connector URL is:
https://reden-mail-mcp.redenai.workers.dev/mcp
- Get an API key. In the dashboard, open API keys, create a key named Claude and tick Inbox access. Copy it when it is shown: it is shown only once. A member's key reads only the mailboxes they can read, and sends only from their addresses.
- Claude on the web or desktop. Open Customize, then Connectors, and choose Add custom connector. On Team and Enterprise plans, an Owner adds it under Organization settings, then Connectors. Name it Reden Mail, use the URL above and choose No sign-in. Under Request headers, add
authorizationwith the valueBearerfollowed by a space and your key. Save, then turn Reden Mail on from the tools menu in a chat. No Request headers option? Your organization doesn't have it yet: use Claude Code. - Claude Code. Run this, with your key in place of
rsk_your_key_here:
claude mcp add --transport http reden-mail https://reden-mail-mcp.redenai.workers.dev/mcp --header "Authorization: Bearer rsk_your_key_here"
Then try "How many unread emails do I have?" or "Reply to any unread order questions." Claude asks before sending to more than 10 people.
Errors
Errors are JSON: {"error": "<code>", "message": "<human readable>"}, plus extra fields where noted.
| HTTP | error | Meaning |
|---|---|---|
| 400 | invalid_request, invalid_json, invalid_address, unknown_template, too_many_recipients, too_many_messages | Fix the request; retrying will not help. |
| 401 | unauthorized | Missing, wrong or revoked key. |
| 402 | quota_exceeded | Monthly or daily limit reached. Has limit (monthly or daily), resets_at (ISO) and upgrade_url. Retry after resets_at. |
| 402 | tenant_suspended | The account cannot send. Contact Reden. |
| 402 | trial_ended | The free trial has ended, so sending has stopped. Choose a plan (Talk to us in the dashboard). |
| 403 | account_paused | Sending is paused because too many messages bounced or were marked as spam. Reden support resumes it. Nothing was sent. |
| 403 | bulk_not_enabled | Campaigns and bulk sends are not on for this account yet: a campaign tag, a broadcast template, more than 10 recipients in one message or more than 10 messages in one batch. They turn on with a good sending record on a paid plan, or when Reden approves. Nothing was sent. |
| 403 | forbidden | The key has no inbox access (/inbox/* only). |
| 403 | delete_forever_disabled | delete is not available over the API; an admin deletes forever in the dashboard. Nothing was deleted. |
| 403 | mailbox_not_allowed | The key is limited to mailboxes and the email would go out from an address that isn't one of them. Nothing was sent. |
| 404 | not_found | No such message for this key's tenant, or no such campaign this key can see. |
| 405 | method_not_allowed | Campaigns are read-only over the API. |
| 409 | confirmation_required | The reply would go to more people than max_recipients. Has recipient_count and recipients. Nothing was sent. |
| 409 | draft_sending | The draft is already being sent. Check Sent before trying again. |
| 409 | too_many_drafts | 500 drafts already. Send or delete some first. |
| 409 | campaign_paused | The message's campaign is paused for its bounce or complaint rate. Has campaign {id, name}, paused_at and reason (bounce_rate or complaint_rate); message gives the numbers. Nothing was sent. An admin resumes it in the dashboard. |
| 409 | idempotency_pending | A reply with this Idempotency-Key is still being sent. Retry after Retry-After seconds. |
| 413 | too_large | html + text over 1 MB. |
| 422 | invalid_from, domain_not_verified | from is not on one of your verified domains. |
| 422 | forward_not_allowed | A forward to one of your own domains. Has reason. |
| 422 | reply_not_allowed | The message is automatic, bulk, a bounce, or the reply would loop to your own domain. Has reason; see POST /inbox/messages/:id/reply. |
| 422 | idempotency_key_reused | This Idempotency-Key was already used for a different reply (another body or another message). |
| 5xx | internal_error | Retry with backoff, using the same idempotency_key. |
v1 POST /send errors keep their original shape ({"error": "<message>"}).
Limits
| Limit | Value |
|---|---|
| Monthly sends | Per plan (default 25,000), resets on your billing day. Counted per recipient; suppressed and failed mail does not count. |
| Daily sends | Per plan (default 5,000), resets 00:00 UTC. |
| Recipients per message | 50 (to + cc + bcc). |
| Messages per batch | 100. |
| Content per message | 1 MB html + text (API), 10 MB whole message (SMTP). |
| SMTP | 10 concurrent connections and 120 messages per minute per key. |
| Rate | No per-second API limit; Reden queues and paces delivery to SES itself. For bulk sends use batches with a concurrency of 5 to 10 requests. |
| Webhook endpoints | 10 per account. |
Sign-in codes and password resets sent by Reden itself never count against your limits.