- Offset pagination with
page/limitand the{ data, meta }envelope, on every paginated list endpoint - Cursor pagination with
?cursor=andmeta.next_cursor, onGET /v2/candidatesandGET /v2/applications - Delta sync with
?updated_since=so you fetch only what changed, onGET /v2/jobs,GET /v2/candidates,GET /v2/applicationsandGET /v2/jobs/{id}/applications - External-ID lookup with
?external_id=so you can find a job by your identifier, onGET /v2/jobsonly
GET /v2/jobs. Authenticate with your API key in the X-API-KEY header (see Migration from v1).
The list envelope
Every paginated endpoint returns adata array plus a meta object:
meta.total is an estimate, not a guarantee. On large collections the count comes from database statistics rather than a full scan, so it can drift slightly from the true row count; for small result sets it is exact. Use it for progress bars and page-count hints — but terminate pagination on a short page (fewer than limit items), never on reaching meta.total.meta.total is the filtered total, so an approximate page count is:
Offset pagination
Two query parameters control paging:GET /v2/jobs results are ordered by updated_at descending (most recently changed first; jobs with no updated_at sort last).
Iterating every page
Walk from page 1 until you receive a short page (fewer items thanlimit) — don’t stop on meta.total, which is an estimate on large collections:
listAll() iterators use exactly this short-page rule.
Results are ordered by
updated_at descending. If jobs are being edited while you page through a large list, offset paging can shift rows between pages. For a stable snapshot, page through quickly, or use updated_since (below) to scope to a narrow, mostly-static window and dedupe by job_id.Cursor pagination
GET /v2/candidates and GET /v2/applications also take an opaque cursor. Offset pages shift when rows are written while you read, so a record can be skipped or seen twice; a cursor doesn’t shift. Prefer the cursor for full syncs of candidates and applications.
Both endpoints return
meta.next_cursor on every response, including the first page, so you can start a cursor walk without a cursor. It is null on the last page. Stop when it is null; don’t page until you reach meta.total, which is an estimate.
400 validation_error. A cursor combines with the other filters, including updated_since, so long as you send the same filters on every page.
Incremental sync with updated_since
Pass ?updated_since=<ISO 8601> to return only jobs whose updated_at is greater than or equal to that timestamp. This is the delta-sync filter — instead of re-pulling every job on each run, you fetch just what moved since your last sync.
meta.total is the count of jobs in the window, so you page through exactly as you would an unfiltered list.
The comparison is inclusive (
>=). If you pass the exact updated_at of the last record you saw, that record comes back again on the next run. This is intentional — it guarantees you never miss a job that changed in the same instant as your cursor. Make your write side idempotent (upsert keyed on job_id) and the boundary overlap is harmless.Choosing your cursor
After each sync, store the maximumupdated_at you observed in the page, not the wall-clock time you ran the job. Using the data’s own timestamp avoids clock-skew gaps:
Candidates: changed_at, not updated_at
GET /v2/candidates?updated_since= works the same way, with one difference that matters: it filters on changed_at, not updated_at.
Interview results, transcripts, tags and evaluations land on the call, often without touching the candidate record. A cursor keyed on
updated_at never sees them: the candidate keeps an older updated_at, so it is either skipped or re-fetched forever. Use changed_at to detect change.
updated_at”) is safe for jobs because that list is ordered by updated_at: a row that changes mid-poll moves to the front, ahead of where you are reading, so you see it. Candidates are ordered by created_at, which is why the rule differs.
What the candidate cursor cannot express:
- Deletions. A removed candidate simply stops appearing; there is no tombstone. Reconcile with a periodic full walk if you need to expire records.
- Job-field edits.
job_titleon a candidate does not move the candidate cursor; a title edit would otherwise re-emit every candidate on the job. Track jobs with their ownupdated_since.
Applications: the same pre-poll watermark
GET /v2/applications?updated_since= is the endpoint for syncing a pipeline across every job. Like candidates, it is ordered by created_at, not by the time the application changed, so the same rule applies: advance your watermark to a timestamp captured before the poll started, minus 5 minutes. Never store the maximum updated_at you received. An application that changes mid-poll can land on a page you’ve already read; a pre-poll watermark returns it next cycle instead of losing it.
Walk each poll with cursor rather than page, and upsert keyed on the application id so the overlap from the safety lag is harmless:
GET /v2/jobs/{id}/applications takes updated_since too, with the same rule, but has no cursor — use it for one job, and GET /v2/applications?job_id= when you want a cursor.
Looking up a job by your internal ID
When you create or update a job you can attach your own identifier viaexternal_id (see the external_id field on POST /v2/jobs). It’s stored as-is and is independent of any ATS sync ID. To find that job later without holding onto the Classet job_id, filter the list by ?external_id=. Only GET /v2/jobs accepts this filter:
data. external_id and updated_since can be combined, e.g. “did this job change since my last sync?”
external_id is your identifier (e.g. CC-REQ-48217). It is distinct from the ATS remote ID, which is surfaced separately as remote_job_id and only for ats_sync organizations.Pattern: full resync vs. incremental sync
A robust integration does a full resync the first time (or when rebuilding state), then incremental runs keyed on the last cursor. Both use the same list call — the only difference is whetherupdated_since is present.
Read consistency
GET requests may be served from a read replica with sub-second replication lag. In rare cases, a GET issued immediately after a write can briefly return the prior state — a job you just PATCHed shows the old title, or a candidate you just created is missing from the list for a moment.
- Most write responses return identifiers, not the resource. A
POST/PATCHusually answers with the id it created or changed insidedata—{ "id": ... },{ "job_id": ... },{ "script_id": ... }or{ "candidate_id": ... }(with the interview links), depending on the endpoint. To read the new state,GETthe resource by that id. The exceptions return the resource itself:POST /v2/message-automationsandPOST /v2/message-automations/{id}/duplicatereturn the full automation,PATCH /v2/message-automations/{id}returns the automation summary, andPATCH /v2/agent-settingsandPUT /v2/webhooksreturn the updated settings. - Retry that
GETbriefly on a miss. A404, or the old values, right after a write usually means the replica hasn’t caught up yet; wait a few hundred milliseconds and try again before treating it as an error. - Don’t build read-after-write assertions into your integration (e.g. “create, then immediately list and expect to see it”).
- Delta syncs are unaffected in practice: the inclusive
updated_sinceboundary plus your periodic full resync absorb any sub-second lag.
Quick reference
Paginated v2 list endpoints take
page / limit and return the { data, meta: { page, limit, total } } envelope. limit defaults to 20 with a maximum of 50, except GET /v2/candidates/{id}/messages, which defaults to 50 with a maximum of 100. These list endpoints are not paginated and return every row in { data }: GET /v2/scripts, GET /v2/message-automations, GET /v2/tags and GET /v2/webhooks. GET /v2/jobs/{id}/stages is also unpaginated; its meta carries only source. cursor is accepted only by GET /v2/candidates and GET /v2/applications; updated_since by GET /v2/jobs, GET /v2/candidates, GET /v2/applications and GET /v2/jobs/{id}/applications; and external_id by GET /v2/jobs only.