Offset paging for lists
Browse a page of records at a time with page and per_page. Newest first, with a total.
Owner, Admin · Last checked 25 November 2026 · 1 min read
Every list endpoint (GET /customers, /contacts, /jobs, /visits, /invoices, /estimates, /payments, /credit-notes) pages in offset mode unless you ask for sync mode. Use it to show or browse records.
GET /api/v1/invoices?status=paid&page=2&per_page=50
{ "data": [ … ], "meta": { "page": 2, "per_page": 50, "total": 137 } }
The rules
page counts from 1. per_page is 1 to 100 (default 25). A value outside that is clamped, not refused.
- Newest first.
meta.total is the number of records, so you can show "page 2 of 3" and know when to stop.
- Filters work too.
job_id, customer_id, invoice_id and status (depending on the resource) combine with paging. A status that isn't valid, or an id that isn't a ULID, is 422 validation_failed.
- Unknown query parameters are ignored.
- Archived records are left out of most lists. See Are archived records included in lists?.
Read every page
let page = 1, total = Infinity;
const all = [];
while (all.length < total) {
const res = await call(`/jobs?page=${page}&per_page=100`);
all.push(...res.data);
total = res.meta.total;
if (res.data.length === 0) break;
page++;
}
When not to use it
If records are created while you page, a later page can repeat or skip a record. That doesn't matter for a screen someone is looking at. For a copy of the data that has to be exact, use sync mode: it follows changes in order and never misses one. See Keep your system in sync.
Reading many pages in a loop uses your rate limit: take 100 at a time.
Paging and incremental sync
Page through lists newest first, or use sync mode with updated_since and a cursor to keep your own copy of the data up to date.
Owner, Admin · Last checked 25 November 2026 · 3 min read
Every list (/customers, /contacts, /jobs, /visits, /invoices, /estimates, /payments, /credit-notes) has two modes.
| Compare | Offset mode (default) | Sync mode |
|---|
| Use it to | Show or browse a page of records | Keep a copy of the data up to date |
| Turned on by | no updated_since and no cursor | updated_since or cursor |
| Order | newest first | oldest change first |
| Paging | page and per_page | cursor |
meta | page, per_page, total | per_page, has_more, next_cursor |
per_page is 1 to 100 (25 by default). Filters such as job_id, customer_id, invoice_id and status work in both modes.
Page through records in offset mode
GET /api/v1/invoices?status=paid&page=2&per_page=50
If records are created while you page, a later page can repeat or skip one. That's what sync mode is for.
Incremental sync: what's updated since a date
For an incremental sync of only what changed, use sync mode: call a list with updated_since.
GET /api/v1/invoices?updated_since=2026-11-01T00:00:00Z
updated_since is an ISO 8601 date or timestamp. A bare date means midnight UTC.
- Rows come oldest change first.
- Pass
meta.next_cursor back as cursor to carry on after the last row. Don't build or change a cursor yourself.
has_more: false means you're caught up.
Keep polling with the cursor
- First run: call with
updated_since (use 1970-01-01 for everything) and page with cursor until has_more is false. Store the last next_cursor.
- Later: call with
cursor=<stored>. You get only what changed since. If nothing did, data is empty and you get the same cursor back.
let cursor = await loadCursor(); // null the first time
for (;;) {
const qs = cursor ? `cursor=${cursor}` : "updated_since=1970-01-01";
const res = await api(`/invoices?${qs}&per_page=100`);
for (const invoice of res.data) await upsert(invoice); // idempotent by id
cursor = res.meta.next_cursor ?? cursor;
await saveCursor(cursor);
if (!res.meta.has_more) break;
}
A change appears in sync mode a few seconds after it's saved: rows are listed once they're at least 5 seconds old. Upsert by id, because a row can come back again if it changes again.
Conditional requests
Every GET that returns 200 carries an ETag header (and Cache-Control: private, no-cache). Keep the tag with the copy you saved, and send it back as If-None-Match the next time you ask for the same thing:
- If nothing changed, you get
304 Not Modified with no body. Keep using your copy.
- If anything changed, you get a normal
200 with the new body and a new ETag.
GET /api/v1/job-lookups
Authorization: Bearer <token>
If-None-Match: "1c1f0c9d6f4b2a8e9d3c7b5a4e2f1d0c"
HTTP/1.1 304 Not Modified
ETag: "1c1f0c9d6f4b2a8e9d3c7b5a4e2f1d0c"
- A tag belongs to one URL and query string: another page, filter or
cursor is a different response with its own tag. Tags are also per organisation.
- A
304 counts towards the rate limits like any request. It saves the download, not the call.
- Only reads are tagged. Writes, errors and the token endpoint never carry an
ETag, and If-None-Match has no effect on them.
Which records are listed
- Customers, contacts, jobs, visits, invoices and estimates: archived records are left out.
- Payments: voided payments are included, with
voided_at set.
- Credit notes: archived credit notes are included, with
archived_at set, because their credit still applies.
Keep your system in sync with sync mode and cursors
Read everything once, then poll a cursor to pick up only what changed.
Owner, Admin · Last checked 24 November 2026 · 2 min read
Sync mode returns records oldest change first, so you can follow changes without missing any. It's turned on by updated_since or cursor. In the examples, $SKEDULER_API is your Skeduler API address. Contact Skeduler support if you don't have it.
Who can do this: Owners and Admins with the Manage Developer Tools permission.
1. First run
Call with updated_since set to where you want to start. Use an early date to get everything.
curl -s "$SKEDULER_API/api/v1/invoices?updated_since=1970-01-01&per_page=100" \
-H "Authorization: Bearer $ACCESS_TOKEN"
{ "data": [ … ], "meta": { "per_page": 100, "has_more": true, "next_cursor": "WyIyMDI2LTEx…" } }
2. Page with the cursor
While has_more is true, call again with cursor=<meta.next_cursor>. Don't build or change a cursor: it's opaque, and one the API didn't issue is 422 validation_failed. When has_more is false you're caught up.
3. Poll
Store the last next_cursor. Later, call with cursor=<stored> to get only what changed after it. If nothing changed, data is empty and next_cursor is the same cursor back, so keep storing it.
let cursor = await loadCursor(); // null the first time
for (;;) {
const qs = cursor ? `cursor=${cursor}` : "updated_since=1970-01-01";
const res = await api(`/invoices?${qs}&per_page=100`);
for (const invoice of res.data) await upsert(invoice); // by id
cursor = res.meta.next_cursor ?? cursor;
await saveCursor(cursor);
if (!res.meta.has_more) break;
}
Things to know
- Upsert by
id. A record can come back again if it changes again, and a retry re-reads the same page.
- A short delay. A record is listed once it's at least 5 seconds old, so a change shows up a few seconds after it's saved.
updated_since is an ISO 8601 date or timestamp (2026-11-01, 2026-11-01T09:30:00Z). A bare date means midnight UTC, and a date that doesn't exist (2026-02-30) is 422 validation_failed.
- Archived records are left out of most lists. See Are archived records included in lists?.
- One fresh re-sync after two changes. A jobs copy synced before 23 November 2026 needs one (no
cursor) to pick up each job's classification fields. A technicians copy synced before 22 November 2026 needs one with include_inactive=true to correct technicians deactivated earlier.
- Keep under the limits. Use
per_page=100. See Rate limits. For instant updates use webhooks.
Are archived records included in lists?
Mostly no. Payments and credit notes are the exceptions, so you can reconcile. Technicians have an opt-in for the deactivated.
Owner, Admin · Last checked 24 November 2026 · 1 min read
| Records | In lists? |
|---|
| Customers, contacts, jobs, visits, invoices and estimates | Archived ones are left out. |
| Technicians | Removed (archived) and deactivated technicians are left out, so a deactivation is never listed as active: false. Send include_inactive=true to list deactivated technicians too, with active: false. Removed ones are never listed. |
| Payments | Voided payments are included, with voided_at set, so you can reconcile. Payments aren't archived any more (only voiding takes one back), so archived_at is always null. |
| Credit notes | Archived credit notes are included, with archived_at set. An archived note lists no allocations. |
An archived record asked for by id is 404 not_found, the same as one in another business. A deactivated technician asked for by id is still returned, so older visits' technicians still resolve.
If you keep a copy of the data, two copies made before a change need one fresh re-sync (no cursor):
- A jobs copy synced before 23 November 2026, to pick up each job's classification fields.
- A technicians copy synced before 22 November 2026: re-sync with
include_inactive=true to correct technicians deactivated earlier. Continuing an existing cursor won't reach them.
If you keep a copy of the data, a record that vanishes from a list was archived. See Keep your system in sync.