Pagination

Zakya provides APIs to retrieve lists of contacts, plans and other resources - paginated to 200 items by default. The pagination information will be included in the list API response under the node name page_context.

  • By default first page will be listed. For navigating through pages, use the page parameter.
  • The per_page parameter can be used to set the number of records that you want to receive in response.
Request ExampleCopy
curl https://api.zakya.com/v1/contacts?page=2&per_page=25
Response ExampleCopy
{
    "code": 0,
    "message": "success",
    "contacts": [
            {...},
            {...}
    ],
    "page_context": {
        "page": 2,
        "per_page": 25,
        "has_more_page": false
    }
}