Pagination
All list endpoints in the OptiView Live API use cursor-based pagination. This provides efficient, consistent paging — even when new items are added between requests.
Query parameters
Every list endpoint accepts the following optional query parameters:
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of items to return per page. Defaults to 20. |
cursor | string | Cursor from a previous response to fetch the next page. |
Response format
List responses include a pagination object alongside the data:
{
"data": [...],
"pagination": {
"hasMore": true,
"cursor": "eyJpZCI6ImNoXzEyMyJ9"
}
}
hasMore—trueif there are more items to fetch,falseif this is the last page.cursor— An opaque string to pass as thecursorquery parameter in the next request. Only present whenhasMoreistrue.
Example
Fetch the first page of channels:
curl -X GET "https://api.theo.live/v2/channels?limit=10" \
-H "Authorization: Basic $AUTH"
If the response contains "hasMore": true, use the returned cursor to fetch the next page:
curl -X GET "https://api.theo.live/v2/channels?limit=10&cursor=eyJpZCI6ImNoXzEyMyJ9" \
-H "Authorization: Basic $AUTH"
Continue until hasMore is false.
Paginated endpoints
Cursor-based pagination is available on all list endpoints, including:
GET /v2/channelsGET /v2/channels/{channelId}/ingestsGET /v2/channels/{channelId}/enginesGET /v2/channels/{channelId}/distributionsGET /v2/channels/{channelId}/runsGET /v2/schedulersGET /v2/webhooksGET /v2/webhooks/{webhookId}/logs