API Reference

Pagination

Cursor-based list endpoints

OpenPost list endpoints return newest-first and accept a limit query parameter. The response always has the shape { data: [...] }.

Response shape

json
{
  "data": [
    { "id": "3a6f...", "...": "..." },
    { "id": "7bd2...", "...": "..." }
  ]
}
FieldTypeDescription
dataarrayThe resources for this request, newest-first by default.

Requesting with a limit

curl
curl "https://api.openpost.so/v1/posts?limit=50" \
  -H "Authorization: Bearer $OP_KEY"

Parameters

FieldTypeDescription
limitintPage size. Default 20 for /v1/posts. Pass a larger value (for example 200) to page through manually.
statusstringFilter posts by status (scheduled, published, draft, failed).
Cursor pagination is not yet available. For now, filter with a status query and a high limit, or filter by time range client-side on created_at. We’ll add cursor pagination before any breaking change.
Last updated April 2026 Edit this page