Pagination
List endpoints return one page at a time. Fetch the following pages to build a complete list; the first page is not the total.
Cursor pages
Opening and applicant lists return:
{
"data": [],
"pagination": {
"next_cursor": null,
"has_more": false
}
}
Send the returned pagination.next_cursor as the next cursor.
Copy the cursor exactly as returned. Do not build or decode it yourself.
For example, after listing openings, copy pagination.next_cursor into NEXT_CURSOR and request the next page:
curl --get https://api.torre.ai/v1/openings \
-H "Authorization: Bearer $TORRE_API_KEY" \
--data-urlencode "limit=25" \
--data-urlencode "cursor=$NEXT_CURSOR"
Stop when pagination.has_more is false. Keep the same filters on every page.
For opening and applicant lists, limit accepts values from 1 through 100 and defaults to 25. Limits differ by operation; do not reuse those values for every endpoint.
Opening changes can move results between cursor pages.
An item can appear again if data changes while you browse. Update the item you already stored instead of counting it twice.
Candidate search pages
Torre candidate searches (external.included: false) use the returned nextCursor:
GET https://api.torre.ai/v1/candidate-searches/{searchId}?cursor={nextCursor}
Continue while hasMore is true, including empty pages that still have a cursor. nextCursor: null ends the results. Keep the initial search's size; omit page and pageSize. GET without a cursor reads the first page again.
External searches (external.included: true) use page numbers:
GET https://api.torre.ai/v1/candidate-searches/{searchId}?page=2&pageSize=25
page starts at 1. pageSize accepts values from 1 through 100 and defaults to 25. Do not mix cursor with numbered pagination.
See Search candidates for errors and recovery.
Candidate job matches
GET /v1/candidates/me/job-matches and POST /v1/jobs/search use pagination.next_cursor and pagination.has_more, with limit from 1 through 20, default 10. POST sends the cursor and limit in its JSON body, not the query string. Preserve onlyRemote, torreOnly and includeClosed across pages and never reuse a cursor with different filters. Results are search-index summaries, not full job details. See Find jobs.
Safe loop
- Store each returned item by its stable identifier.
- Read the next cursor or page number.
- When the response reports no next page, stop.
- Treat repeated identifiers as updates, not new people.