Skip to content
ProFieldX

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 fieldWhat it does
limitItems per page, from 1 to 100. Default: 25. Outside that range, the response is 422 VALIDATION_ERROR, with the problem in details.
cursorThe nextCursor of the previous page. Leave it out to start at the first page.
includeTotalWith true, the response carries totalCount, the total of items matching the filters.
itemsThe records of the page.
nextCursorThe cursor of the next page.
hasMoretrue while there are more pages.

Walking through every page

  1. Call the listing without cursor.
  2. While hasMore is true, call again with cursor set to the nextCursor you received, repeating the same filters and the same limit.
  3. Stop when hasMore is false.
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, gte and between.
  • For in, separate up to 100 values with commas. For between, 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.