Endpoints returning multiple resources will be paginated using the following query parameters:

  • page (integer): The page of results to fetch. Defaults to 1 if omitted.
  • per_page (integer): The number of items to show on a single page.

The pagination metadata has the following JSON schema:

  "meta": {
    "current_page" : 1,
    "last_page" : 10,
    "per_page" : 10,
    "from" : 1,
    "to" : 10,
    "total" : 100,
    "links" : {
      {
        "url": null,
        "label": "« Previous",
        "active": false
      }
      {
        "url": "https://public.api.hospitable.com/v1/reservations?page=1",
        "label": "1",
        "active": true
      }
      {
        "url": "https://public.api.hospitable.com/v1/reservations?page=2",
        "label": "2",
        "active": false
      }
      {
        "url": "https://public.api.hospitable.com/v1/reservations?page=2",
        "label": "Next »",
        "active": false
      }
    }
  }