Pagination

List endpoints return a maximum of 20 records per page by default. Use query parameters to control page size, navigate through results, and sort data.

Size Parameter

Control how many records are returned per request with the size parameter. Supported values: 10, 20, 50, 100, 200.

GET https://a.eztexting.com/v1/conversations?size=50

Page Parameter

Navigate through results using the page parameter. Pages are zero-indexed.

GET https://a.eztexting.com/v1/conversations?size=50&page=2

This returns 50 records starting from record 101.

Sort Parameter

Order results by a property name. Append ,asc or ,desc to control direction.

GET https://a.eztexting.com/v1/conversations?sort=campaignId,desc

Response Structure

Paginated responses include metadata about the result set:

{
  "content": [ ... ],
  "pageable": {
    "pageNumber": 0,
    "pageSize": 20,
    "offset": 0
  },
  "totalPages": 5,
  "totalElements": 98,
  "numberOfElements": 20,
  "first": true,
  "last": false
}
FieldDescription
contentArray of data records
totalPagesTotal number of pages available
totalElementsTotal record count across all pages
numberOfElementsNumber of records in the current page
first / lastBoolean flags indicating position