Skip to content

API

Coming from Resend

The API follows the Resend API: what is identical, and the exact list of what changes.

An existing Resend integration moves to Voaaro by changing the API address and the key, and most often nothing else.

Node / Bun

// Before: import { Resend } from "resend"; new Resend("re_…")
import { Voaaro } from "@deveryidea/voaaro"
const voaaro = new Voaaro("mlk_…", { baseUrl: "https://mail.example.com" })
await voaaro.emails.send({ from, to, subject, html }) // same calls, same {data, error}

Python

# Before: import resend; resend.api_key = "re_…"
import voaaro
voaaro.api_key = "mlk_…"
voaaro.base_url = "https://mail.example.com"
voaaro.Emails.send({"from": sender, "to": to, "subject": subject, "html": html})

cURL

# Before: https://api.resend.com/emails
curl https://mail.example.com/api/v1/emails -H "Authorization: Bearer mlk_…" …

Identical

  • Bearer authentication, sending_access / full_access keys, key creation with the token shown once.
  • POST /emails, /emails/batch (with x-batch-validation: strict | permissive), GET, PATCH, /cancel, attachments with content_id, scheduled_at including in 1 hour, tags as [{name, value}], Idempotency-Key over 24 hours.
  • last_event names, object: "email" responses, {object, has_more, data} lists with limit, after, before.
  • {statusCode, name, message} errors and their names.
  • Domains (region, capabilities, records with ttl: "Auto"), contacts, segments, audiences, topics, contact properties, broadcasts, /emails/receiving.
  • SDKs: same resources and same methods in each language.

What changes

TopicVoaaro
addresshttps://<your instance>/api/v1; mlk_… keys
unknown fieldsrefused (422) instead of being ignored; react is not supported (render the HTML yourself)
attachments[].pathrefused: send content in base64
send response200 with {id, suppressed}
message_idalways null
sending_access keyscan read their own emails and statistics
templatestemplate: {alias or id, variables} (published templates from the Voaaro editor)
statisticsno hourly granularity; UTC only
domainscustom_return_path, tracking_subdomain, tracking set to true and tls other than opportunistic refused; region ignored; tracking is set per key
received emailsmailbox IDs, not UUIDs; read with a personal key
webhooks/webhooks as with Resend (details), or the console; the secret is shown only at creation and rotation, never read back; Voaaro-Signature signature instead of Svix (details)
contactsan already known address is merged (200); CSV import processed during the request
broadcastsvariables always escaped; explicit warm-up
not yetsegments/metrics; broadcasts/{id}/clicked-links (clicks per link are in /broadcasts/{id}/links)

Extras

Personal keys and mailbox receiving, share links (POST /emails/{id}/share), /broadcasts/{id}/duplicate, recipient and event details in GET /emails/{id}, /api/v1/metrics alias, suppression list and event log, forms, dynamic segments, A/B testing, templates and automations, webhook secret rotation with a grace period and delivery replay (Managing webhooks).

Esc