Skip to content
OnCharge.io
OnCharge Messaging · Email APIEarly access

Transactional email, built for high-risk commerce.

Receipts, shipping notices and login codes from your own domain, through a REST API or SMTP. One account with your OnCharge payments, a compliance check on every message, and a person to talk to instead of a sudden ban.

3,000 emails a month free · No daily cap · $0.30 per 1,000 after that · Early-access pricing

POST https://app.oncharge.io/api/v1/emails

curl -X POST https://app.oncharge.io/api/v1/emails \
  -H "Authorization: Bearer $ONCHARGE_MESSAGING_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1001-receipt" \
  -d '{
    "from": "Example Store <orders@example.com>",
    "to": ["shopper@example.net"],
    "subject": "Your order #1001 is confirmed",
    "html": "<p>Thanks for your order. We will email you when it ships.</p>",
    "tags": [{ "name": "type", "value": "receipt" }]
  }'

# → { "id": "0b6f2c1e-7d4a-4e8b-9f3c-2a1d5e6b7c80" }

The SDKs are in early access and not yet published; the HTTP request works with any client. Base URL https://app.oncharge.io/api/v1.

The API

Everything you expect from an email API

Send one email or a thousand, over REST or SMTP, and know what happened to every one of them.

REST API

One JSON request per email, with the field names most email APIs use, so moving is a new key and a new URL.

SMTP relay

smtp.oncharge.io on ports 465 (TLS) and 587 (STARTTLS), for plugins, help desks and apps that already speak SMTP.

SDKs for Node.js and PHP

Typed helpers for sending, batches, templates and the log, plus plain HTTP examples for every other language.

Signed webhooks

Sent, delivered, delayed, bounced, complained, opened, clicked, failed and suppressed, signed like every OnCharge webhook, with replay.

Inbound email

Receive replies on your own subdomain, parsed into JSON with attachments, and posted to your webhook.

Idempotency keys

Retry safely: the same key returns the first response for 24 hours instead of sending twice.

Scheduled send

Send up to 30 days ahead, in ISO time or plain words like “in 1 hour”, then move or cancel it.

Batches of 1,000

Send a whole run of receipts or notices in one request, with strict or permissive validation.

90-day logs

Every email and its events, searchable in the dashboard and the API for 90 days.

Templates

Hosted, versioned templates with variables and fallbacks, shared with the marketing editor.

MCP server for AI agents

Let an agent or coding assistant send email, manage templates and read the log through the OnCharge MCP server.

Tags and test keys

Label every email for search and routing, and run the whole pipeline with test keys that never deliver.

How it works

From key to delivered in four steps

  1. Create a key

    In Email & SMS → API keys. Keys start with oc_msg_live_ and can be limited to sending from one domain.

  2. Verify your domain

    Add the DNS records OnCharge shows you. Every one points at an OnCharge name.

  3. Send

    POST app.oncharge.io/api/v1/emails, or connect over SMTP.

  4. Listen

    Webhooks tell your server when each email is delivered, bounces, is opened or is clicked.

email.delivered · webhook to your server
{
  "id": "evt_7a1e3c5b-9d2f-4b8a-a6c4-3e5f7a9b1d20",
  "type": "email.delivered",
  "created": 1767225600,
  "livemode": true,
  "data": {
    "email_id": "0b6f2c1e-7d4a-4e8b-9f3c-2a1d5e6b7c80",
    "to": ["shopper@example.net"],
    "subject": "Your order #1001 is confirmed",
    "tags": [{ "name": "type", "value": "receipt" }]
  }
}

Signed with the same OnCharge-Signature header as payment webhooks. Every event type.

Deliverability

Your domain, your reputation, protected

Mail is authenticated as you, cleaned of bad addresses and kept within the bulk-sender rules of the large mailbox providers from your first send.

Authenticated on your domain

DKIM signs as your domain and bounces return to your subdomain, so SPF, DKIM and DMARC all align. OnCharge rotates keys behind the records.

Suppression built in

Hard bounces, spam complaints and unsubscribes are suppressed automatically, per account and per stream, so you stop mailing dead or unwilling addresses.

One-click unsubscribe

Marketing mail carries the one-click unsubscribe headers mailbox providers require, honoured at once, plus a link in the body.

Separate streams

Transactional and marketing mail travel apart. A paused campaign never holds up a receipt or a login code.

Automatic pause, not a ban

If bounces or complaints spike, the marketing stream pauses before it harms your domain, and we tell you why.

Coming later

Dedicated IP option

Your own sending IP for $24.95 a month, for senders with steady volume. Shared pools are included.

example.com · DNS recordsExample records
Example DNS records for a sending domain
RecordTypeNamePoints at
DKIMCNAMEoc1._domainkey‹your key host›.m.oncharge.io
Return pathCNAMEsendrp.m.oncharge.io
TrackingCNAMElinkst.m.oncharge.io
InboundMX 10inboundinbound.m.oncharge.io

Every record points at an OnCharge name, so keys rotate and infrastructure moves without another DNS change.

No one can promise the inbox: each mailbox provider decides. These are the controls that make it likely, and they are on for every account.

Built for high-risk merchants

Email for the stores mainstream tools turn away

OnCharge already serves high-risk categories for payments and advertising. The email API is built on the same review and the same rules.

  • What you can send follows your store’s category under OnCharge’s own rules, not a blanket ban on your industry.
  • A compliance check reads every message, from the API, SMTP or a flow, using the same claims rules as OnCharge advertising.
  • Transactional mail has its own stream, so receipts, shipping notices and login codes keep flowing if marketing is paused.
  • Problems are paused and explained, with a person to talk to, instead of an account closed without warning.
  • Every merchant’s sending is kept apart from other senders’ reputations.
  • Payments and email in one account: order, refund and shipping events come from OnCharge, with no sync to build.

Which categories and channels are open to your store is confirmed when you join early access. See our acceptable use policy.

Compared with other email APIs

Fewer limits, fewer surprises

The things developers run into on typical email APIs, handled from the start.

  • 3,000 emails a month free, with no daily cap.
  • Logs kept 90 days on every account.
  • Batches of up to 1,000 emails in one request.
  • One price per email, with no plan tiers to climb.
  • Every DNS record points at OnCharge names, so keys rotate with no DNS changes.
  • A dedicated IP is an add-on, not a reason to change plans.
Early-access pricing

Pay per email, starting free

3,000 emails every month at no cost, then one simple rate. No plans to outgrow.

3,000

emails a month free

Every month, with no daily cap.

$0.30

per 1,000 emails

After the free 3,000, up to 1M a month.

$0.25

per 1,000 emails

For every email above 1M in a month.

$24.95

Coming later

a month, dedicated IP

Your own sending IP address, for senders with steady volume. Shared pools are included at no charge.

Early-access pricing: prices can change before general availability.

FAQ

Questions, answered

Is the email API available now?

It is in early access. We are bringing merchants on in stages: request access below and we will tell you when your account can send. The API can still change before general availability, and the docs say so on every page.

Can I move from another email API?

Yes. Requests use the field names most email APIs use (from, to, cc, bcc, reply_to, subject, html, text, attachments, tags, headers and scheduled_at), so moving is mostly a new API key and a new URL. Add your domain, add OnCharge’s DNS records, and switch.

Which businesses can send?

Stores in the categories OnCharge accepts, within the rules for each category. Transactional email is open the most widely; marketing email, SMS and push have stricter rules for some categories. Your channels are confirmed when you join early access. Categories OnCharge does not accept cannot send.

What happens if my bounces or complaints rise?

OnCharge pauses your marketing stream before it harms your domain and tells you why, while transactional mail keeps going. We help you find the cause, and sending resumes once it is fixed.

Can you guarantee my email reaches the inbox?

No one can: each mailbox provider decides. What we give you is what makes the inbox likely: authenticated sending on your own domain, automatic suppression, one-click unsubscribe, separate streams and monitoring of your bounces and complaints.

How much does it cost?

3,000 emails a month free with no daily cap, then $0.30 per 1,000 emails, and $0.25 per 1,000 above 1M a month. Dedicated IP $24.95 a month. Early-access pricing: prices can change before general availability.

Is there an SMTP relay?

Yes: smtp.oncharge.io, ports 465 (TLS) and 587 (STARTTLS), username “oncharge” and an API key as the password. It has the same checks, logs and webhooks as the API.

Do I need an OnCharge account?

Yes. If you also take payments through OnCharge, order, refund and shipping events are available to your email with no extra setup.

Early access

Get early access to the email API

Tell us about your store and what you send today. We are bringing merchants on in stages and will reach out when your account is ready.

  • 3,000 emails a month free while you build
  • Help moving your domain and templates
  • A direct line to the team building it

Sending through OnCharge is covered by our acceptable use policy, merchant terms and privacy policy. Which categories and channels are open to your store is confirmed when you join early access.