Skip to main content
Endpoints that return lists are paginated using cursors. By default, 50 records are returned per page; however, you may request up to 200 records per page using the per_page query parameter:
Paginated responses contain the records in a data array, along with links and meta objects describing the surrounding pages:
To retrieve the next page, simply follow links.next. When links.next is null, you have reached the last page.

Cursor vs. Offset Pagination

Unlike offset pagination, a cursor marks your position relative to the last record you received instead of by page number. As a result, new records arriving while you page through results will never cause you to skip a record or receive one twice. Cursor pagination also stays fast no matter how deep into the results you are. The trade-off is that cursor pagination does not report a total record count, and you cannot jump directly to a given page.

Syncing Changes

Every list endpoint accepts an updated_since parameter. Combined with pagination, this makes it simple to keep your own copy of PolicyMate’s data current with a nightly job:
If you would rather be notified as changes happen, take a look at webhooks.