Pagination and filters
Walk through listings with a cursor and filter for what matters.
The listings (GET /v1/customers, GET /v1/service-requests and GET /v1/work-orders) return one page at a time, from the newest records to the oldest.
| Parameter or field | What it does |
|---|---|
limit | Items per page, from 1 to 100. Default: 25. Outside that range, the response is 422 VALIDATION_ERROR, with the problem in details. |
cursor | The nextCursor of the previous page. Leave it out to start at the first page. |
includeTotal | With true, the response carries totalCount, the total of items matching the filters. |
items | The records of the page. |
nextCursor | The cursor of the next page. |
hasMore | true while there are more pages. |
Walking through every page
- Call the listing without
cursor. - While
hasMoreistrue, call again withcursorset to thenextCursoryou received, repeating the same filters and the samelimit. - Stop when
hasMoreisfalse.
curl "https://api.profieldx.com/v1/customers?limit=100&cursor=$NEXT_CURSOR" \
-H "Authorization: Bearer $PROFIELDX_KEY"The cursor is opaque: do not build or change it. An invalid cursor answers 400 INVALID_CURSOR; in that case, start over without cursor.
Filters
Use the filter parameter in the field__operator:value format. Repeat the parameter to combine filters: a record must match all of them.
curl -G "https://api.profieldx.com/v1/customers" \
--data-urlencode "filter=name__icontains:padaria" \
--data-urlencode "filter=createdAt__gte:2026-01-01T00:00:00Z" \
-H "Authorization: Bearer $PROFIELDX_KEY"- Each listing shows, in the reference, the fields and operators it accepts, such as
eq,ne,in,icontains,gteandbetween. - For
in, separate up to 100 values with commas. Forbetween, give exactly two values separated by a comma. - Dates and times use ISO 8601, such as
2026-01-01T00:00:00Z. - An unknown filter or a value that does not match the field answers
422 INVALID_COLLECTION_QUERY.