Postonus
API

Pagination

List responses vary by operation — check the shape before you assume one.

Last updated on

There is no one pagination scheme across the whole API. Check the reference for the operation you are calling. Two shapes exist:

Keyset cursor, for time-ordered lists

schedules.list (the calendar view) pages by a compound cursor of (scheduledAt, id), because a bare id cursor against a time-ordered list drops entries scheduled in the same minute:

{
  "schedules": [{ "...": "..." }],
  "nextCursor": { "scheduledAt": "2026-08-20T09:00:00.000Z", "id": "sch_..." },
  "hasMore": true
}

Pass nextCursor back as the cursor object on the next request. hasMore: false means you are on the last page.

Page and limit, for post lists

posts.list pages the ordinary way, with page and limit query parameters:

{
  "items": [{ "...": "..." }],
  "pageInfo": {
    "page": 1,
    "limit": 10,
    "total": 42,
    "totalPages": 5,
    "hasNextPage": true,
    "hasPreviousPage": false
  }
}

Increment page while pageInfo.hasNextPage is true.

The MCP list_queue tool wraps this shape: its nextCursor is the next page number as a string.

On this page