Email API

Transactional email from a domain you control, sent with the API key you already use for calls and texts. Billed per recipient, from your prepaid balance.

How it works

Product overview and pricing: Email API.

Three steps. Add a sending domain (the dashboard's Email page or POST /api/v1/email/domains) and CallNode gives you the DNS records to publish. Verify it once the records are live. Send with POST /api/v1/email/messages from any address on that domain; every message is signed with your domain's DKIM key and goes out on CallNode's own sending infrastructure. Delivered, delayed, bounced, complaint and failed events reach the statusWebhookUrl you give with the send, signed like the status webhooks for the calls, messages and faxes you send.

  • Not today. No SMTP relay (it is a REST API: one JSON request per message), no hosted templates or scheduled sends, no open or click tracking, no dedicated IPs, and no receiving (below). If one of these matters to you, say so through the contact page.
  • Also in the downloads. The OpenAPI document and the Postman collection on the docs home include every Email endpoint.
  • One key, one balance. The same X-Api-Key / HMAC scheme as every /api/v1 endpoint; email is a line on the same billing history as your minutes and texts.
  • Your domain, your reputation. Mail is signed for your domain and the SPF record you publish names CallNode as a permitted sender. Use a subdomain such as mail.yourcompany.com so your corporate mailbox provider is untouched.
  • Sending only, today. CallNode does not receive mail for your domain: leave your MX records as they are. Replies go to your reply_to, an address on the domain you send from (see which domain to verify).
  • Bodies are not stored. CallNode keeps the envelope (addresses, subject, size, status, events); the HTML, text and attachments are handed to the sending infrastructure and not retained by the API.

Sending domains

A domain is created pending with the records to publish. Publish them at your DNS host, then call verify (or press Check DNS on the Email page). Verification is a real DNS lookup; allow a few minutes for propagation. Statuses: pending → verifying → active or failed (with the reason). A message may only be sent from an active domain.verifying means the records did not resolve within the few seconds of the check itself; the infrastructure keeps checking for about twenty minutes and the domain becomes active by itself once they do (a send in the meantime answers 403 from_domain_not_verified with retryAfter; no second verify call is needed). Keep the records published: they are checked again before every send. If one goes missing, the domain is marked failed with the reason and the send is refused (403 from_domain_not_verified); once the record is back, a later send re-checks the domain and goes out, with no verify call needed. A failed domain is re-checked at most once a minute; sends inside that minute are refused with the stored reason and retryAfter.

POST/api/v1/email/domains
{ domain } → 201 with the records to publish. Adding a domain the account already holds replays it (200). A domain registered on another account answers 409 domain_taken.
GET/api/v1/email/domains
Every sending domain on the account: { data: [...] }.
GET/api/v1/email/domains/{id}?refresh=1
One domain. With refresh=1 the status and record statuses are re-read from the sending infrastructure first, and the answer carries newDomainLimit (see Deliverability).
POST/api/v1/email/domains/{id}/verify
Check the DNS records now. Answers the domain with its new status; a failed check carries verificationError.
DELETE/api/v1/email/domains/{id}
Remove the domain (204). Messages already sent keep their history.

Response (201):

JSON
{
  "id":                "cmh2wq1z80001s8w2d0e9f1gh",
  "domain":            "mail.acme.com",
  "status":            "pending",
  "dnsRecords": [
    { "type": "TXT", "name": "<selector>._domainkey.mail.acme.com", "value": "v=DKIM1; k=rsa; p=MIIBIjANBgkq...", "ttl": "Auto", "status": "pending" },
    { "type": "TXT", "name": "mail.acme.com",                        "value": "v=spf1 include:<spf-host> -all",  "ttl": "Auto", "status": "pending" },
    { "type": "TXT", "name": "_dmarc.mail.acme.com",                 "value": "v=DMARC1; p=reject;",             "ttl": "Auto", "status": "pending" }
  ],
  "verificationError": null,
  "verifiedAt":        null,
  "lastCheckedAt":     "2026-10-26T14:58:02.000Z",
  "createdAt":         "2026-10-26T14:58:02.000Z",
  "updatedAt":         "2026-10-26T14:58:02.000Z"
}
RecordWhat it does
TXT DKIMThe public key every message is signed with. Published at <selector>._domainkey.<domain>; the selector is in the records CallNode gives you. Required.
TXT SPFNames CallNode as a permitted sender for the domain. Required. If the domain already has an SPF record, merge the include: into it; a second SPF record invalidates both. A fresh subdomain avoids the question.
TXT DMARCRequired, on the exact domain you verify: _dmarc.mail.acme.com for mail.acme.com; a policy on the parent domain does not count. CallNode gives you one with p=reject, right for a subdomain that sends nothing else. If the domain already has a DMARC record, keep yours: any policy passes, p=none included, and two DMARC records at one name cancel each other. If you verify a main domain that also sends mail from elsewhere (an office mailbox, an invoicing tool) and it has no DMARC record yet, publish p=none instead: p=reject there would tell receivers to reject that other mail.
MX, CNAMENot given to you. Receiving and tracking are off, so verification never asks for them; keep your existing MX records as they are. The bounce address of every message is its From address (see delivery events).
Which domain to verify
Verify the exact domain you will send from: mail.acme.com lets you send as anything@mail.acme.com, not as anything@acme.com. Replies, and bounce notices that arrive after delivery, go to an address on the domain you send from: if you verify a subdomain, give it a mailbox at your own mail provider (an MX record for that subdomain), or verify the domain your mailbox already uses. Up to 10 domains per account; ours, and public mailbox providers such as gmail.com, are refused. Business verification (Dashboard → Compliance) is required before the first domain, as it is for messaging.

Sending a message

POST/api/v1/email/messages
Send one message to up to 50 recipients. Answers 202 with the message once the sending infrastructure accepted it; an X-Idempotency-Key replays the original (200) instead of sending twice.
FieldTypeDescription
fromstringRequiredName <address> or a bare address on one of your active domains.
tostring | string[]RequiredRecipient addresses. With cc and bcc, 50 at most per message.
ccstring | string[]OptionalCopied recipients; each counts as a recipient.
bccstring | string[]OptionalBlind copies; each counts as a recipient. Never returned in webhooks.
subjectstringRequired1 to 255 characters, in Latin script: a subject with a Cyrillic, Arabic, Devanagari, Chinese or Japanese kanji, Hangul or Thai character is refused (the body may use any script).
htmlstringOptionalThe HTML part, up to 512 KB. html or text is required; send both for the widest client support.
textstringOptionalThe plain-text part, up to 100 KB.
reply_tostring | string[]OptionalWhere replies go: an address on exactly the same domain as from (a subdomain counts as a different domain). A reply-to elsewhere is refused before anything is sent (400 validation_error, nothing charged); the sending infrastructure applies the same rule to every message.
headersobjectOptionalUp to 10 custom headers: names starting X- or List-, plus In-Reply-To and References for threading. The envelope headers (From, To, Subject, Message-ID, Content-Type …) are set by CallNode and refused here.
attachmentsarrayOptionalUp to 10 of { filename, content (base64), content_type? }, 10 MB decoded in all. Executables and scripts are refused.
tagsarrayOptionalUp to 10 of { name, value } (letters, digits, _ and -). Returned on the message and in every webhook. Names starting cn_ are reserved.
statusWebhookUrlstringOptionalReceives the delivery events for this message, signed with this key's secret.
metadataobjectOptionalUp to 4 KB, returned unchanged on the message and in every webhook.
JSON
{
  "from":             "Acme Billing <billing@mail.acme.com>",
  "to":               ["dana@example.com"],
  "subject":          "Your October invoice",
  "html":             "<p>Hi Dana, your invoice for October is attached.</p>",
  "text":             "Hi Dana, your invoice for October is attached.",
  "reply_to":         "accounts@mail.acme.com",
  "headers":          { "X-Acme-Invoice": "inv_2041" },
  "attachments":      [{ "filename": "invoice-2041.pdf", "content": "JVBERi0xLjQK...", "content_type": "application/pdf" }],
  "tags":             [{ "name": "campaign", "value": "invoices" }],
  "statusWebhookUrl": "https://yourapp.example.com/email/events",
  "metadata":         { "invoiceId": "inv_2041" }
}

Response (202):

JSON
{
  "id":               "cmh2x9d4k0003s8w2q1f7a2bc",
  "status":           "sent",
  "from":             "Acme Billing <billing@mail.acme.com>",
  "to":               ["dana@example.com"],
  "cc":               [],
  "bcc":              [],
  "recipientCount":   1,
  "subject":          "Your October invoice",
  "messageId":        "<9c1e0f2a-7b3d-4e5f-8a9b-0c1d2e3f4a5b@mail.acme.com>",
  "error":            null,
  "costUsd":          0.0003,
  "chargeStatus":     "charged",
  "statusWebhookUrl": "https://yourapp.example.com/email/events",
  "tags":             [{ "name": "campaign", "value": "invoices" }],
  "metadata":         { "invoiceId": "inv_2041" },
  "testMode":         false,
  "source":           "api",
  "sizeBytes":        48211,
  "createdAt":        "2026-10-26T15:04:11.000Z",
  "sentAt":           "2026-10-26T15:04:14.000Z",
  "deliveredAt":      null,
  "lastEventAt":      "2026-10-26T15:04:14.000Z",
  "estimatedCost":    0.0003,
  "billing": {
    "recipients":         1,
    "includedRecipients": 0,
    "billableRecipients": 1,
    "perRecipientUsd":    0.0003,
    "estimatedCostUsd":   0.0003,
    "includedRemaining":  0,
    "periodEndsAt":       "2026-11-01T00:00:00.000Z"
  },
  "replay":           false
}

status is queued for the moment the message is being handed over (a list can catch it there), then sent (accepted by the sending infrastructure; what the 202 answers) and moves to delivered, delayed (a transient refusal, delivery is retried), bounced (permanent refusal), complained (the recipient marked it as spam) or failed (never left the queue), as the receiving servers report. messageId is the RFC 5322 Message-ID of the message as sent; keep it if you thread replies with In-Reply-To.

GET/api/v1/email/messages?status=&limit=&cursor=
Newest first, keyset-paginated: { data: [...], nextCursor }. Test keys see test messages only.
GET/api/v1/email/messages/{id}
One message with its events: [{ type, at, detail }] in the order they occurred.

Delivery events

Five events, one envelope, to the statusWebhookUrl of the send, signed per attempt with X-Timestamp, X-Signature (hex HMAC-SHA256 of ts + "\n" + body with the sending key's secret) and X-Event-Source: callnode-outbound. Deliveries retry after 5 s, 30 s, 2 min and 10 min on anything but a 2xx. Events can arrive out of order; occurredAt is the order that matters. A message with several recipients raises one event per recipient outcome, each naming its recipient.

email.bounced is raised when the receiving server refuses the recipient while the message is being delivered, which is how most unknown-address bounces arrive. A bounce notice a receiving system sends later, after accepting the message, goes to your from address as ordinary mail, because the bounce address of every message is its From address: keep that mailbox read.

EventWhen
email.deliveredThe receiving server accepted the message for the recipient.
email.delayedA transient refusal (greylisting, a full mailbox, a server that was busy). Delivery keeps being retried; a later delivered or bounced event settles it.
email.bouncedA permanent refusal; reason carries the server's answer. Stop sending to that address.
email.complainedThe recipient reported the message as spam through their provider's feedback loop. Remove them from every list at once.
email.failedThe message could not be handed to any receiving server before it expired.

email.delivered:

JSON
{
  "event":      "email.delivered",
  "id":         "cmh2x9d4k0003s8w2q1f7a2bc",
  "status":     "delivered",
  "from":       "Acme Billing <billing@mail.acme.com>",
  "to":         ["dana@example.com"],
  "cc":         [],
  "subject":    "Your October invoice",
  "messageId":  "<9c1e0f2a-7b3d-4e5f-8a9b-0c1d2e3f4a5b@mail.acme.com>",
  "recipient":  "dana@example.com",
  "reason":     null,
  "occurredAt": "2026-10-26T15:04:19.000Z",
  "timestamp":  "2026-10-26T15:04:19.412Z",
  "metadata":   { "invoiceId": "inv_2041" },
  "tags":       [{ "name": "campaign", "value": "invoices" }]
}

email.bounced:

JSON
{
  "event":      "email.bounced",
  "id":         "cmh2x9d4k0003s8w2q1f7a2bc",
  "status":     "bounced",
  "from":       "Acme Billing <billing@mail.acme.com>",
  "to":         ["dana@example.com"],
  "cc":         [],
  "subject":    "Your October invoice",
  "messageId":  "<9c1e0f2a-7b3d-4e5f-8a9b-0c1d2e3f4a5b@mail.acme.com>",
  "recipient":  "dana@example.com",
  "reason":     "550 5.1.1 The email account that you tried to reach does not exist",
  "occurredAt": "2026-10-26T15:04:21.000Z",
  "timestamp":  "2026-10-26T15:04:21.207Z",
  "metadata":   { "invoiceId": "inv_2041" },
  "tags":       [{ "name": "campaign", "value": "invoices" }]
}

Pricing and billing

Email is priced per recipient accepted for delivery: a message to three addresses is three recipients. The rate falls with volume, counted per calendar month on pay as you go and per billing period on Pro Bundle. It starts at $0.30 per 1,000 recipients ($0.0003 each); the exact rate for your account, your volume so far and what the next recipient costs are on the Email page. There is no monthly fee and no minimum. Pro Bundle includes 3,000 recipients a billing period; past them the same volume rates apply, and the included recipients still count toward the volume tier.

Recipients in the periodPer 1,000 recipientsPer recipient
0 – 10K$0.30$0.0003
10K – 50K$0.27$0.00027
50K – 100K$0.25$0.00025
100K – 500K$0.20$0.0002
500K – 1M$0.17$0.00017
1M+$0.15$0.00015
  • A refused message costs nothing. Every gate (domain, limits, balance) runs before the message is handed over; the charge happens once the sending infrastructure accepted it. A bounce after acceptance is not refunded, which is why bounces are worth acting on.
  • Sending checks the balance first: the request needs at least the quoted cost available, or it answers 402 with the amount. Every accepted send answers with a billing block: billable and included recipients, the rate applied and the amount charged.
  • Exact tier settlement. Each message is charged the difference between the period's running total before and after it, rounded to four decimals, so a sub-cent rate such as $0.00027 settles exactly over the period rather than rounding every message up.
  • Its own line. Email appears as Email on your billing history. Pro Bundle minutes and texts are not involved; only the included recipients above are.
  • Test keys simulate. A cn_test_ key runs every gate and then simulates the send: nothing goes out and nothing touches your balance. Domains are shared between live and test keys.

Deliverability and acceptable use

Transactional and notification email from a domain you own is what this API is for. Marketing mail is acceptable only to people who asked for it, with a working unsubscribe (send List-Unsubscribe and List-Unsubscribe-Postheaders and honour them), your postal address in the footer, and no purchased or scraped lists. Complaints and bounces are reported to you so you can act on them, and CallNode watches them too, because one sender's reputation affects delivery for everyone sharing the infrastructure: an account whose spam-complaint rate over the last 24 hours reaches 0.2 % (or two complaints at low volume), or whose bounce rate reaches 4 % (or five bounces at low volume), has its sending paused and every send answers 403 sending_suspended with the figures. The pause lifts by itself as those events age out of the 24-hour window; the message events tell you which addresses to remove first. Warm a new domain up over the first weeks rather than sending its whole volume on day one, and keep reply_to pointed at a mailbox someone reads on the sending domain.

A newly registered domain sends less per day during its first month. A domain registered less than 30 days ago (the registrar date of the main domain, so mail.acme.com is aged by acme.com; an established company domain is never capped) can send a limited number of messages a day, rising over the month and resetting at 00:00 UTC. A send that would pass the day's allowance answers 429 new_domain_daily_limit with retryAfter (seconds to the reset) and resetsAt; nothing is charged. The create, verify and ?refresh=1 answers for a domain carry newDomainLimit: { ageDays, dailyCap, sentToday, remaining, resetsAt }, or nullonce the domain is not capped. The allowance counts messages, but a send needs one unit of it per recipient (to, cc and bcc together), so a message with more recipients than the day's cap cannot go out that day whatever else is sent: the answer then says when the allowance will cover it and carries splitRequired: true; split it into smaller messages, or wait for that day.

Refused before sending, nothing charged. More than three messages to the same address within 60 seconds answer 429 recipient_velocity_limit (the count is kept across the sending infrastructure, so a sign-in-code flow should not re-send on every click). A subject containing a Cyrillic, Arabic, Devanagari, Chinese or Japanese kanji, Hangul or Thai character is refused as 400 validation_error (one character is enough; the body may use any script). A from display name that names a well-known brand (payment networks, large technology companies, delivery services, tax authorities) is refused unless the sending domain itself carries that word, and so is a body that links to a link-shortener host such as bit.ly or tinyurl.com: use your own brand as the From name and full links. Both answer 400 provider_rejected with the reason. If sending is paused across the infrastructure after a rise in bounces or complaints, a send answers 503 sending_paused: it is not caused by your message, nothing is charged, and it lifts by itself within the hour (within a day, or a week, if it recurs); retryAfter carries that upper bound in seconds.

Registrar ageMessages a day
Days 0 to 120
Days 2 to 350
Days 4 to 7100
Days 8 to 14250
Days 15 to 30500
After 30 daysNo daily cap

Errors

StatusCodeMeaning
400validation_errorA field is missing or malformed, a reply_to is off the From domain, the subject has a Cyrillic, Arabic, Devanagari, Chinese or Japanese kanji, Hangul or Thai character, or a live send names a recipient on a reserved documentation domain such as example.com (a test key simulates those); errors[] lists each one.
400domain_not_allowedNot a hostname you can verify (ours, a public mailbox provider, a reserved name).
400provider_rejectedThe sending infrastructure refused the message as built (the message says why). Nothing was charged.
402insufficient_balanceBalance below recipients × rate; balance and required carry the amounts.
403account_not_verifiedComplete business verification (Dashboard → Compliance) first.
403email_not_enabledThe Email API is not priced on your plan. Contact support.
403sending_suspendedOver the last 24 hours this account reached 0.2 % spam complaints or 4 % bounces (or two complaints / five bounces at low volume); reputation carries the figures. It lifts by itself as those events age out of the window. Nothing was charged.
403from_domain_not_ownedThe from address is on a domain this account has not added.
403from_domain_not_verifiedThe domain is added but not active yet, or its records failed the check run before this send (the message and verificationError carry the reason). Publish the records; the next send re-checks the domain.
409domain_takenThat domain is registered for sending on another account.
409too_many_domainsThe account already holds 10 sending domains.
429new_domain_daily_limitThe domain was registered less than 30 days ago and has sent today's allowance, or this message has more recipients than the allowance; retryAfter and resetsAt point at the first reset (00:00 UTC) that covers it, and splitRequired is true when the recipient count is above the day's cap. Nothing was charged.
429recipient_velocity_limitMore than three messages to the same address within 60 seconds, counted across the sending infrastructure; retry after 60 seconds. Nothing was charged.
429provider_rate_limitedThe sending infrastructure is rate limiting this account; the message names the limit hit. Retry after the retryAfter hint (seconds). Nothing was charged.
429verify_rate_limitedVerification was asked for too often; wait a minute.
502provider_unavailableThe sending infrastructure did not answer; nothing was charged, the message is recorded as failed, retry.
503sending_pausedSending is paused across the infrastructure after a rise in bounces or complaints: for an hour, or a day or a week if it recurs. Not caused by your message; nothing was charged; the message is recorded as failed; retryAfter carries the upper bound in seconds.
503email_unavailableEmail sending is not configured on the platform yet.

Privacy and retention

The API stores the envelope of each message: the from address, recipients, subject, size, status, the delivery events and the tags and metadata you sent. It does not store the HTML, the text or the attachments once the message has been handed to the sending infrastructure, so there is nothing to re-download later; keep your own copy if you need one. Message records follow the account's retention (data retention). Recipient addresses are processed to deliver your mail and are not used for anything else.