Pagination

How list endpoints page, and how to know you are on the last one.

List endpoints take page and limit as query parameters. page is 1-based and defaults to 1. limit defaults to 30, and its bounds differ per endpoint, so check the reference page for the one you are calling.

curl "https://api.vadio.no/api/meeting?page=2&limit=50" \
  -H "x-api-key: api_your_key_here" \
  -H "x-company-id: YOUR_COMPANY_ID"

The response

Rows come back under data, alongside the counts. Meetings carry them under pagination:

{
	"data": [{ "id": "68f0c9a1e4b0a1c2d3e4f5a6", "title": "Site visit" }],
	"pagination": { "currentPage": 2, "limit": 50, "totalCount": 128, "totalPages": 3, "hasNextPage": true }
}
FieldMeaning
totalCountRows matching the query across every page
totalPagestotalCount divided by limit, rounded up
hasNextPagetrue while a later page exists

Loop on hasNextPage rather than counting pages yourself. It is false on the last page and on an empty result, so one check covers both.

The CRM lists (contacts, companies, leads and deals) return the same counts flat on the response as page, limit, total and totalPages; the reference page of each endpoint shows the exact shape.

Sorting and filtering

Sorting parameters vary by endpoint. Contacts take sortBy and sortDirection (asc or desc); others take sort and orderBy. Most list endpoints also accept search, which matches the obvious text fields on the resource. The reference page for each endpoint lists exactly what it accepts.

Rows are not frozen while you page. A record created between your request for page 1 and your request for page 2 can shift a row across the boundary, so a job that has to see every row should expect the occasional duplicate and key on id.

On this page