Skip to content

API

Pagination and filters

Lists are paged by cursor, with limit, after and before, and filtered by status, address or date.

All lists have the same shape:

JSON
{ "object": "list", "has_more": true, "data": [ … ] }
ParameterMeaning
limit1 to 100 items per page
afterID of the last item received: the next page (older)
beforeID of the first item received: the previous page (newer)

after and before cannot be used together (422). Items always go from newest to oldest; has_more says whether there are more. The item named by after or before is not in the page.

Node / Bun

let after: string | undefined
do {
  const { data: page } = await voaaro.emails.list({ limit: 100, after })
  for (const email of page!.data) console.log(email.id, email.last_event)
  after = page!.has_more ? page!.data.at(-1)?.id : undefined
} while (after)

Python

after = None
while True:
    page = voaaro.Emails.list({"limit": 100, "after": after} if after else {"limit": 100})
    for email in page["data"]:
        print(email["id"], email["last_event"])
    if not page["has_more"]:
        break
    after = page["data"][-1]["id"]

cURL

curl "https://mail.example.com/api/v1/emails?limit=100" -H "Authorization: Bearer $VOAARO_API_KEY"
curl "https://mail.example.com/api/v1/emails?limit=100&after=$LAST_ID" -H "Authorization: Bearer $VOAARO_API_KEY"

The SDKs can also walk through every page for you: they ask for limit=100 and follow after as long as has_more is true (SDKs).

Paginated lists

The cursor works for every list whose items have an ID:

Exceptions, without a cursor (their items have no ID): /broadcasts/{id}/links, /broadcasts/{id}/domains, /broadcasts/{id}/timeline, /contacts/{id}/topics. They return everything at once.

Without limit

Without limit, each list keeps its original behavior: some return a page of fixed size, others return everything. For the latter, after and before only count together with limit (as with Resend).

ListWithout limit
emails, attachments, received emails, contacts, segments of a contact, imports, broadcast recipients, event log, suppression list, webhook deliveries20 per page
form signups50 per page
contacts of a segment or an audience, automation runs100 per page
keys, domains, segments, topics, properties, broadcasts, forms, templates, automations, webhookseverything, in one page (has_more is false)

For code that does not depend on these values, always pass limit.

Cursors are the object IDs (UUIDs), except for received emails (the mailbox's IDs), the sending event log (a number, as text) and broadcast recipients (opaque cursor).

Filters

ListFilters
GET /contactsemail (contains, case-insensitive), unsubscribed (true or false), created_after, created_before (ISO 8601), segment_id, q (search in the address and the name)
GET /broadcastsstatus: draft, scheduled, queued, sent, canceled
GET /formsstatus: active, disabled
GET /forms/{id}/signupsstatus: pending, confirmed
GET /automationsstatus: draft, active, paused
GET /automations/{id}/runsstatus: active, done, stopped
GET /suppressionsdomain, email (contains), reason: bounce, complaint, manual
GET /emails/eventstype, email_id, recipient, created_after, created_before
GET /webhooks/{id}/deliveriesstatus: pending, sending, delivered, failed; event_type

An invalid filter value (unknown status, unreadable date) responds 422 validation_error. Filters combine with pagination:

cURL
curl "https://mail.example.com/api/v1/contacts?unsubscribed=false&created_after=2026-11-01T00:00:00Z&limit=100" \
  -H "Authorization: Bearer $VOAARO_API_KEY"
Esc