Reference

Pagination

Cursor-based pagination for list endpoints.

List endpoints that can return many rows use keyset (cursor) pagination, which stays consistent even as new mail arrives.

How it works#

Pass limit to control page size (default 50, max 100). When more results exist, the response includes a non-null nextCursor. Pass it back as cursor to fetch the next page. When nextCursor is null, you've reached the end.

json
{
  "data": [ { "id": "em_abc123" }, { "id": "em_def456" } ],
  "nextCursor": "MjAyNi0wNy0yMFQxMDozMDowMC4wMDBafmVtX2RlZjQ1Ng"
}

Iterating#

cURL
# First page
curl "https://inboundr.net/api/v1/emails?limit=50" \
  -H "Authorization: Bearer $INBOUNDR_API_KEY"

# Next page
curl "https://inboundr.net/api/v1/emails?limit=50&cursor=MjAyNi0w..." \
  -H "Authorization: Bearer $INBOUNDR_API_KEY"

Results are ordered newest-first by received time. An invalid cursor returns a 400 with { "error": "Invalid cursor" }.