Email API

The email API, done properly.

One POST sends an email. Everything you would otherwise build around it, retries, idempotency, scheduling, rate-limit headers and a searchable log, is already there.

Short answer

Mailcandor is a REST email API. You send JSON to POST /v1/emails with an API key and get an id back at once; delivery runs through Amazon SES. Batches of up to 100, scheduled sends up to 30 days ahead and Idempotency-Key headers are built in, and every email has a full event history.

Send

One call, any language

Plain HTTPS and JSON, so it works from Node, Python, PHP, Go, Ruby or curl without an SDK. Errors always come back as {"error": {"type", "message", "field"}}.

curl https://api.mailcandor.com/v1/emails \
  -H "Authorization: Bearer $MAILCANDOR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"Acme <hello@acme.com>","to":"sam@example.com",
       "subject":"Your login code","html":"<p>481 203</p>"}'
Batch

A hundred emails in one request

POST /v1/emails/batch takes up to 100 sends and returns an id for each. Good for digests and notifications that fan out.

Idempotency

Send twice, deliver once

Add an Idempotency-Key header and a retried request returns the first response instead of sending a second email.

Scheduling

Send later, cancel any time

Set scheduled_at to an ISO date or text like "in 2 hours", up to 30 days ahead. Change or cancel it until it goes.

Attachments

Files and inline images

Base64 attachments up to 40 MB per email, with content ids for inline images in your HTML.

Limits you can read

Rate limits in every response

Per-team limits of 5, 10 or 50 requests a second by plan, with ratelimit-limit, ratelimit-remaining and ratelimit-reset headers.

Questions

Which programming languages does the Mailcandor API support?

Any language that can make an HTTPS request. The API takes and returns JSON, and the docs show examples for curl, Node.js, Python and PHP.

Is the API compatible with Resend, SendGrid or Postmark?

Yes for sending. POST /v1/emails takes the same shape as Resend, POST /v3/mail/send takes SendGrid's v3 body and POST /email takes Postmark's. See switching guides.

Who actually delivers the email?

Amazon SES in us-east-1. Mailcandor adds the API, the log, webhooks, the review process, the coach and billing on top.

How many emails can I send a second?

API requests are limited per team: 5 a second on Starter, 10 on Pay as you go and 50 on Team. Each batch request can carry 100 emails.

Keep reading

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.