Pagination

Pagination

Cursor-based lists, filters and date ranges.

Every list endpoint returns the same envelope, newest first:

{
  "object": "list",
  "data": [ { "id": "ses_…", "object": "session" } ],
  "has_more": true,
  "next_cursor": "eyJ…"
}
ParameterDefault
limit251 to 100
cursornext_cursor from the previous page
created_gteOnly objects created at or after this time
created_ltOnly objects created before this time

To walk everything, keep requesting with cursor=<next_cursor> until has_more is false. Keep the other filters the same between pages. Cursors are stable: objects created while you page do not shift or repeat the results.

curl "https://api.interviewer.heizen.tech/api/v1/sessions?status=completed&limit=100&cursor=eyJ…" \
  -H "Authorization: Bearer $HEIZEN_API_KEY"

An invalid or tampered cursor returns 400 parameter_invalid with param: "cursor".

For large one-off pulls, an export is faster than paging.