Pagination
Cursor-based pagination over list endpoints.
List endpoints return a data array alongside page_metadata containing
opaque cursors.
{
"data": [ /* … */ ],
"page_metadata": {
"after": "eyJpZCI6MTIzfQ==",
"before": null
}
}Parameters
| Parameter | Description |
|---|---|
limit | Items per page |
after | Cursor — fetch the page after this point |
before | Cursor — fetch the page before this point |
Paging forward
Pass the after cursor from the previous response to get the next page. When
page_metadata.after is null, you've reached the end.
curl "https://api.supportwire.app/api/oauth/v1/conversations?limit=20&after=eyJpZCI6MTIzfQ==" \
-H "Authorization: Bearer swot_your_token"Cursors are opaque — don't parse or construct them. Always use the values
returned in page_metadata.