Skip to content

Pagination

Every list endpoint returns at most 50 records per request and uses cursor-based pagination.

{
"object": "list",
"data": [ /* up to 50 objects */ ],
"has_more": true,
"next_cursor": "cnt_9f2c8e7b1a3d4f60"
}
  • data is an array of resources in the endpoint’s default sort order (usually created_at descending).
  • has_more is true when there are more records available.
  • next_cursor is the id of the last record in data. Pass it as the cursor query parameter to fetch the next page.
Terminal window
curl "https://app.nativpost.com/api/v1/content?limit=25" \
-H "Authorization: Bearer $NATIVPOST_API_KEY"
Terminal window
curl "https://app.nativpost.com/api/v1/content?limit=25&cursor=cnt_9f2c8e7b1a3d4f60" \
-H "Authorization: Bearer $NATIVPOST_API_KEY"

Continue until has_more is false.

NameTypeDefaultNotes
limitinteger50Between 1 and 100.
cursorstringnullId returned as next_cursor on the previous page.

List filters (for example status=scheduled) are stable across pages. Pass the same filter values on every request in the sequence.

Cursors remain valid as long as the referenced record exists. If a record was deleted between requests, the API returns 400 invalid_request with param: "cursor". Restart pagination from the beginning.