Kanka logo Kanka

Pagination


All endpoint which give a list of entities are automatically paginated. For example, when asking for all Locations of a campaign, 15 locations are sent back. A links property in the response give you information about the pagination options.

{
  "data": [
      // up to 15 locations
  ],
   "links": {
        "first": "/api/1.0/campaigns/123/locations?page=1",
        "last": "/api/1.0/campaigns/123/locations?page=5",
        "prev": null,
        "next": "/api/1.0/campaigns/123/locations?page=2"
    }
}