Getting Started

Pagination

Formatting responses

To ensure responses remain manageable and performant, all index (list) endpoints are paginated by default. Each response returns a limited set of records, along with metadata indicating how many total records and pages are available.


Pagination in Responses

All paginated endpoints return pagination metadata inside the meta.pagination object.

Example

GET {base_url}/site_translations/1/posts
{
  "meta": {
    "pagination": {
      "page": 1,
      "per_page": 250,
      "total_records": 276,
      "total_pages": 2
    }
  },
  "data": [
    ...
  ]
}

Response Fields

KeyDescription
pageThe current page number returned.
per_pageNumber of records included on this page.
total_recordsTotal number of records available.
total_pagesTotal number of pages available.

Pagination in Requests

Clients can control pagination by including page and per_page parameters in the query string.

Example

GET {base_url}/site_translations/15/posts?page=3&per_page=15
{
  "meta": {
    "pagination": {
      "page": 3,
      "per_page": 15,
      "total_records": 50,
      "total_pages": 4
    }
  },
  "data": [
    ...
  ]
}

Request Parameters

ParameterDescriptionDefaultConstraints
pageThe page number to return.1Must be greater than 0.
per_pageNumber of records per page.250Must be between 1–250.

Notes

  • If the total number of records exceeds the per_page limit, additional pages will be available.
  • Always check the meta.pagination object to determine if more pages are available.

Copyright © 2025