Documentation

Email

Send email from your own domain, and host mailboxes on it. Both start the same way: add the domain, publish its DNS records, verify. Sending is on Pro and Teams; mailboxes come with Teams (pricing).

1. Add a mail domain

curl -X POST $API/{slug}/mail/domains \
  -H "X-API-Key: $KEY" \
  -d '{"domain":"mycompany.com"}'

Response includes the DNS records you need to publish — MX, SPF, DKIM, DMARC.

2. Publish DNS records

Add the returned records at your DNS host (Cloudflare, Route53, Namecheap, whatever). Then verify:

curl -X POST $API/{slug}/mail/domains/mycompany.com/verify \
  -H "X-API-Key: $KEY"

Send email

Invites, notifications, password resets: send from any verified mail domain of the project. No mailbox needed, and every message is DKIM-signed.

# 202 = accepted for delivery
curl -X POST $API/{slug}/mail/send \
  -H "X-API-Key: $KEY" \
  -d '{
    "to": ["client@example.com"],
    "subject": "Your invite",
    "html": "<p>You are invited!</p>",
    "text": "You are invited!",
    "from_addr": "no-reply@mycompany.com",
    "from_name": "MyCompany",
    "reply_to": "support@mycompany.com"
  }'
# -> {"message_id": "<uuid@mycompany.com>", "accepted": 1, "refused": [], "remaining_today": 299}

# Send log: counts only, recipient addresses are not stored
curl "$API/{slug}/mail/sends?limit=50" -H "X-API-Key: $KEY"

3. Create mailboxes

curl -X POST $API/{slug}/mail/accounts \
  -H "X-API-Key: $KEY" \
  -d '{
    "email": "hello@mycompany.com",
    "password": "securepass",
    "display_name": "Hello"
  }'

Access the mailbox

List + stats

curl $API/{slug}/mail/accounts -H "X-API-Key: $KEY"
curl $API/{slug}/mail/stats    -H "X-API-Key: $KEY"

Endpoints

EndpointMethodDescription
/{slug}/mail/domainsGET POSTList / add mail domains
/{slug}/mail/domains/{domain}GET DELDetail / remove
/{slug}/mail/domains/{domain}/verifyPOSTVerify DNS
/{slug}/mail/domains/{domain}/dnsGETCheck DNS status
/{slug}/mail/accountsGET POSTList / create accounts
/{slug}/mail/accounts/{email}GET PATCH DELAccount CRUD
/{slug}/mail/sendPOSTSend from a verified domain
/{slug}/mail/sendsGETSend log (paginated)
/{slug}/mail/statsGETUsage statistics