Skip to content

Pagination

Most GET endpoints returning lists use cursor-based pagination, providing a data array and a meta object.

To load more results:

  • Pass the next_cursor from the previous response as cursor in the next request.
  • Continue until next_cursor (or next_page_url) is empty.

By default:

  • The page limit is 15. Some responses may include fewer items.
  • Results are sorted in descending order (newest first).
json
{
  "data": [
    {
      "id": "9dc2841d-602a-4c6c-ab38-0ed907921716"
    },
    {
      "id": "9dc2841d-602a-4c6c-ab38-0ed907921716"
    }
  ],
  "meta": {
    "path": "/api/v1/me/testimonies/ongoing",
    "per_page": 15,
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyMy0wNS0xNyAwMDo1Mzo0OSIs...",
    "next_page_url": "/api/v1/me/testimonies/ongoing?cursor=eyJjcmVhdGVkX2F0IjoiMjAyMy0wNS0xNyAwMDo1Mzo0OSIs...",
    "prev_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyMy0wNS0xNyAwMTowMzowMyIs...",
    "prev_page_url": "/api/v1/me/testimonies/ongoing?cursor=eyJjcmVhdGVkX2F0IjoiMjAyMy0wNS0xNyAwMTowMzowMyIs..."
  }
}