API reference
Pagination
Page through Verilo API lists of claims and events with cursor pagination.
List endpoints return newest first, a page at a time:
{ "object": "list", "data": [ { "id": "clm_..." } ], "hasMore": true }limit: 1 to 100 objects per page, default 20.startingAfter: the id of the last object you received. The next page starts after it.
curl "https://api.verilo.app/v1/claims?limit=100" -H "Authorization: Bearer $VERILO_API_KEY"
curl "https://api.verilo.app/v1/claims?limit=100&startingAfter=clm_4c1f0e9a2b7d4e5f8a6b3c2d1e0f9a8b" -H "Authorization: Bearer $VERILO_API_KEY"Stop when hasMore is false. Cursors stay correct while new objects are created, so nothing is skipped or repeated.
async function* allClaims(key) {
let after;
for (;;) {
const url = new URL('https://api.verilo.app/v1/claims');
url.searchParams.set('limit', '100');
if (after) url.searchParams.set('startingAfter', after);
const page = await (await fetch(url, { headers: { Authorization: `Bearer ${key}` } })).json();
yield* page.data;
if (!page.hasMore) return;
after = page.data.at(-1).id;
}
}Filters combine with paging: status, reference and orderId on claims; type and claimId on events.