Address
Each instance serves its own API:
https://mail.example.com/api/v1Everything goes over HTTPS, in JSON (UTF-8), with a key in the Authorization header. Dates are in ISO 8601, in UTC.
What the API does
| Resource | For | Page |
|---|---|---|
/emails, /emails/batch | send, schedule, track, cancel, share | Sending |
/emails/receiving | read the emails received by a mailbox | Receiving |
/domains | sending domains and their DNS records | Domains |
/api-keys | create and revoke keys | Authentication |
/contacts, /segments, /topics, /contact-properties | broadcast contacts | Contacts |
/broadcasts | broadcasts | Broadcasts |
/newsletter, /forms, /newsletter-templates, /automations, /events | settings, signup forms, templates, automations | Newsletters |
/suppressions, /emails/events | suppression list, sending event log | Suppression and event log |
/webhooks | webhook endpoints, deliveries, replay | Managing webhooks |
/emails/metrics | statistics | Sending |
/organizations | client organizations, with a separate operator key (mko_…), routes disabled by default | Organizations |
The reference describes every route; it is generated from the API's OpenAPI 3.1 file, which is automatically checked against the service's routes.
A first call
cURL
curl https://mail.example.com/api/v1/emails \
-H "Authorization: Bearer $VOAARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"from": "Acme <notifications@example.com>", "to": "client@example.org", "subject": "Hello", "text": "First email."}'Node / Bun
const { data, error } = await voaaro.emails.send({
from: "Acme <notifications@example.com>",
to: "client@example.org",
subject: "Hello",
text: "First email.",
})Python
email = voaaro.Emails.send({
"from": "Acme <notifications@example.com>",
"to": "client@example.org",
"subject": "Hello",
"text": "First email.",
})PHP
$email = $voaaro->emails->send([
'from' => 'Acme <notifications@example.com>',
'to' => 'client@example.org',
'subject' => 'Hello',
'text' => 'First email.',
]);Go
sent, err := client.Emails.Send(&voaaro.SendEmailRequest{
From: "Acme <notifications@example.com>",
To: []string{"client@example.org"},
Subject: "Hello",
Text: "First email.",
})Conventions
The same rules apply to every route:
| Topic | Rule | Page |
|---|---|---|
| lists | limit, after, before cursor, newest to oldest; filters by status, address or date | Pagination |
| retries | Idempotency-Key header on any POST request, kept for 24 hours | Idempotency |
| rate | 600 requests per minute per key, RateLimit-* headers | Limits |
| errors | always JSON {statusCode, name, message, error}, even for an unknown route | Errors |
| fields | an unknown field in the request is refused (422); a response may gain fields over versions: ignore the ones you do not know | Errors |
Read next
- Authentication: application keys and personal keys.
- Errors and limits.
- Coming from Resend: what changes.