Skip to main content
Fleetalyse
Partner API & Tracking API

Pagination

Cursor pagination for every list.

The Fleetalyse Partner Programme is running as a pilot. The API documented here is available to approved partners; you can build against test mode as soon as your partner account is open. About partnering with Fleetalyse

Every list endpoint returns the newest items first in this envelope:

JSON
{
  "object": "list",
  "data": [ … ],
  "has_more": true,
  "next_cursor": "c1.9fQ…"
}

  • limit: 1–200, default 50.
  • cursor: pass next_cursor from the previous page to continue. When has_more is false you have everything.
  • Keep the same filters while paging: a cursor is bound to the key, the endpoint and the filters it was issued for, and is refused (400 INVALID_REQUEST) anywhere else. Cursors are opaque — never build or edit them.
  • Lists only ever contain what your key may see; fleet-limited keys page through their fleets only.
PHP
$cursor = null;
do {
    $page = $api->get('/devices', ['limit' => 200, 'cursor' => $cursor]);
    foreach ($page['data'] as $device) {
        sync($device);
    }
    $cursor = $page['next_cursor'];
} while ($page['has_more']);

WhatsApp us