Skip to content

API

The Voaaro API

A JSON HTTP API served by your instance, compatible with the Resend API.

Address

Each instance serves its own API:

Texte
https://mail.example.com/api/v1

Everything 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

ResourceForPage
/emails, /emails/batchsend, schedule, track, cancel, shareSending
/emails/receivingread the emails received by a mailboxReceiving
/domainssending domains and their DNS recordsDomains
/api-keyscreate and revoke keysAuthentication
/contacts, /segments, /topics, /contact-propertiesbroadcast contactsContacts
/broadcastsbroadcastsBroadcasts
/newsletter, /forms, /newsletter-templates, /automations, /eventssettings, signup forms, templates, automationsNewsletters
/suppressions, /emails/eventssuppression list, sending event logSuppression and event log
/webhookswebhook endpoints, deliveries, replayManaging webhooks
/emails/metricsstatisticsSending
/organizationsclient organizations, with a separate operator key (mko_…), routes disabled by defaultOrganizations

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:

TopicRulePage
listslimit, after, before cursor, newest to oldest; filters by status, address or datePagination
retriesIdempotency-Key header on any POST request, kept for 24 hoursIdempotency
rate600 requests per minute per key, RateLimit-* headersLimits
errorsalways JSON {statusCode, name, message, error}, even for an unknown routeErrors
fieldsan unknown field in the request is refused (422); a response may gain fields over versions: ignore the ones you do not knowErrors
Esc