Transactional email API for developers
Receipts, one-time codes, password resets and order updates from your verified domain. Test safely, send to one person or fifty, and inspect every request and delivery event in the console.
Free: a test key at signup, then 200 live emails a month once you verify a domain (no credit card)Then: US$2 per 1,000, prepaidTaiwan accounts: 100 free, then NT$0.30 per email
curl -X POST https://edm.cresclab.com/api/email/send \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"to": "user@example.com",
"subject": "Your code: 483291",
"html": "<p>Code <b>483291</b></p>"
}'
Returns 202 { "id": "...", "status": "queued" }. Full spec: openapi.yaml.
Two key modes, told apart by the prefix. A key beginning sk_test_ records the message and returns 202 with "test_mode": true and "delivery": "skipped_test_mode" — it never hands anything to the mail provider, so nothing arrives and nothing is charged. Every new account starts with a test key. When you want mail to land, create an sk_live_ key on the Developers page and swap it in. Live keys are issued once the account has a verified sending domain, credit or a paid plan; until then creating one returns 403 live_key_needs_verification.
Verify your sending domain once with SPF, DKIM and a return-path MX. API mail then uses that domain, and the from field can choose the address — receipts@, billing@ or any other address on one of your verified domains sends from exactly that address. If from names a domain you have not verified, the message goes out from your default verified domain's address, keeping your display name and reply_to. Only an account with no verified domain sends from the shared no-reply@mail.maacgoemail.com, still with your display name.
Pass one address or an array of up to 50 in to; each person gets a separate message, suppression check, charge and message ID. To copy people on one shared message instead, add cc or bcc. Addresses can be written as Ada Lovelace <ada@example.com>.
Sending the same email more than once? Store it once and send with an id — the bytes are identical every time, and {{variables}} (same syntax as campaign emails, {{name|fallback}} included) carry the per-message parts.
# once
curl -X POST https://edm.cresclab.com/api/templates \
-H "Authorization: Bearer sk_live_..." -H "Content-Type: application/json" \
-d '{"name":"order-confirmation","subject":"Order {{order_id}} confirmed",
"html":"<p>Hi {{first_name|there}}, order {{order_id}} is on its way.</p>"}'
# → 201 { "id": "7", "variables": ["order_id","first_name"], ... }
# every time
curl -X POST https://edm.cresclab.com/api/email/send \
-H "Authorization: Bearer sk_live_..." -H "Content-Type: application/json" \
-d '{"to":"user@example.com","template_id":"7","variables":{"order_id":"1042","first_name":"Ada"}}'
Same for agents: the MCP server has create_template / list_templates, and send_email takes template_id.
The Developers console has two separate views. Email log shows each API or MCP message, its delivery timeline, content and deliverability insights; message bodies are retained for 30 days. API logs records every API-key request for 15 days. Delivery events — sent, delivered, opened, clicked, bounced and complained — can also be pushed to your endpoint, HMAC-signed in X-MAACGO-Signature and retried with backoff.
Endpoints on private networks are refused. If you are testing locally, use a public tunnel rather than localhost.
Create up to 20 topics such as Product updates, Weekly digest or Promotions. Add topic_id to an API or MCP send and the recipient's preference-center choice is checked before any money moves. Turning off one topic does not unsubscribe the person from everything; a global unsubscribe, hard bounce or complaint still blocks every send path.
There is an MCP server at https://edm.cresclab.com/api/mcp, so Claude Code, Cursor, VS Code, Windsurf, Claude Desktop and Codex can send mail, add contacts, run a campaign someone already wrote, and read the report back — 31 tools on the same key. In Claude Code it is one line:
claude mcp add --transport http maacgo-email https://edm.cresclab.com/api/mcp --header "Authorization: Bearer sk_test_..."
Cursor, VS Code and Windsurf take the same URL and header in their config file, with nothing to install; Claude Desktop and Codex reach it through the mcp-remote bridge (Node.js 18+). Snippets for every client → Scopes are deliberately tight: an agent can send, but cannot create a campaign, issue a key or add credit.
The same meter as campaigns: API messages count against your plan's included emails, and beyond that cost US$2 per 1,000 from a prepaid balance (Taiwan accounts: per email in NT$). One balance across both product lines. If we accept a message and the provider refuses it, the charge is returned automatically. See pricing.
/api/email/send returns 403 for that address. This is deliberate: on a shared sending domain, an API that bypassed unsubscribes would be an evasion channel paid for by everyone else's deliverability.sk_live_ key needs a verified sending domain, credit or a paid plan. A verified domain lifts the cap to at least 5,000 a day, or the paid plan's allowance. Paid accounts that continue on the shared domain ramp from 1,000 to 2,500 to 5,000 and then 10,000 a day as the account ages.sk_test_ never deliver and are never charged.from address on any of your verified domains, such as receipts@ or billing@, sends from exactly that address. When from names a domain you have not verified, the message goes out from your default verified domain's address with your display name. Only without a verified domain does MAAC Go Email send from no-reply@mail.maacgoemail.com, keeping your display name. reply_to can point wherever you choose.sk_test_. The call returns 202 with test_mode set to true and delivery set to skipped_test_mode, and the message is recorded but never handed to the mail provider, so nothing arrives and nothing is charged. Every new account starts with a test key. When you want mail to land, create an sk_live_ key on the Developers page: it is issued once the account has a verified sending domain, credit or a paid plan. A verified domain can also be used as the From domain for API mail; otherwise live mail uses the shared address.https://edm.cresclab.com/api/mcp takes your key as a Bearer token. Claude Code, Cursor, VS Code and Windsurf connect to it directly with nothing to install; Claude Desktop and Codex connect through the mcp-remote bridge, which needs Node.js 18 or later. Its 31 tools cover sending, templates, message status, contacts, campaigns and reports, and the balance. An agent can send, but cannot create a campaign, issue a key or add credit. Setup for each client is at https://edm.cresclab.com/mcp.suppressed. Unsubscribes, hard bounces and complaints from your campaigns bind the API too, so one suppression list covers both. A test key (sk_test_) skips the suppression check, because it never delivers: the call is recorded as if it went through.X-MAACGO-Signature and retried with backoff. You can also look a message up with GET /api/email/{id}.