All lists have the same shape:
{ "object": "list", "has_more": true, "data": [ … ] }| Parameter | Meaning |
|---|---|
limit | 1 to 100 items per page |
after | ID of the last item received: the next page (older) |
before | ID 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:
- sent emails, attachments of a send, received emails, sending event log;
- keys (
/api-keys), domains; - contacts, contacts of a segment, segments of a contact, segments, audiences, topics, properties, imports (
/contacts/imports); - broadcasts and their recipients;
- forms and their signups, newsletter templates, automations and their runs;
- webhooks and their deliveries;
- suppression list.
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).
| List | Without limit |
|---|---|
| emails, attachments, received emails, contacts, segments of a contact, imports, broadcast recipients, event log, suppression list, webhook deliveries | 20 per page |
| form signups | 50 per page |
| contacts of a segment or an audience, automation runs | 100 per page |
| keys, domains, segments, topics, properties, broadcasts, forms, templates, automations, webhooks | everything, 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
| List | Filters |
|---|---|
GET /contacts | email (contains, case-insensitive), unsubscribed (true or false), created_after, created_before (ISO 8601), segment_id, q (search in the address and the name) |
GET /broadcasts | status: draft, scheduled, queued, sent, canceled |
GET /forms | status: active, disabled |
GET /forms/{id}/signups | status: pending, confirmed |
GET /automations | status: draft, active, paused |
GET /automations/{id}/runs | status: active, done, stopped |
GET /suppressions | domain, email (contains), reason: bounce, complaint, manual |
GET /emails/events | type, email_id, recipient, created_after, created_before |
GET /webhooks/{id}/deliveries | status: pending, sending, delivered, failed; event_type |
An invalid filter value (unknown status, unreadable date) responds 422 validation_error. Filters combine with pagination:
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"