Skip to main content
List endpoints support page-number pagination. Individual endpoints may also support filters and sorting; use only the parameters shown in the API Reference for that endpoint.

Pagination

Use these query parameters on paginated endpoints:
  • page: Page number, beginning with 1.
  • page_size: Number of results per page. The default is 50, and JSON responses accept up to 100.
A paginated response contains:
Follow links.next until it is null. This avoids calculating page URLs yourself.

Filtering

Filtering and sorting options are specific to each endpoint. The endpoint’s API Reference lists every supported query parameter, its accepted format, and whether it is required. Many filters accept Peerlogic resource IDs. Use the identifiers returned by the API, especially the organization and practice IDs described in Organization, practice, and resource IDs.

Filter naming conventions

Some filter names use double underscores (__) to express a relationship or comparison: Relationships can span more than one resource, so a supported parameter can contain multiple double-underscore segments. Send the complete parameter name exactly as it appears in the API Reference. Other common conventions include:
  • Parameters ending in _after or _before define time boundaries. Check the endpoint description to determine whether each boundary is inclusive or exclusive.
  • Boolean filters accept the values documented by the endpoint.
  • search performs the endpoint’s supported text search.
  • sort or ordering selects a supported sort field. Prefix the field with - for descending order when the endpoint supports that convention.
Do not assume that a filter supported by one list endpoint is available on another. Unsupported query parameters may be ignored.