Livepush Developers

Stream Scheduler

List scheduled events

GET https://octopus.livepush.io/streams/{stream_id}/config/scheduler/events

Base URL https://octopus.livepush.io — Core Streams & Media APIs

Lists the stream's events, newest first: upcoming, running and finished.

Paging is by cursor. When hasMore is true, pass nextCursor.before and nextCursor.beforeId back as the before and beforeId query parameters for the next page. nextCursor is null on the last page.

An event is upcoming when awaiting is true, on air when isActive is true, and finished when isArchived is true.

Requires a token with the streams.read scope.

Authorization

Send a valid access token in the Authorization header.

  • bearerAuth — Bearer token (JWT)
headers.txt
Authorization: Bearer YOUR_API_TOKEN

Try it

GET https://octopus.livepush.io/streams/{stream_id}/config/scheduler/events — This call only reads data.

Parameters

Path parameters

  • stream_id string required
    Unique identifier of the pre-recorded live stream

Query parameters

  • limit integer
    Page size. Defaults to 50, capped at 200.
    example: 50
  • before string<date-time>
    Cursor from nextCursor.before. Returns events older than this.
  • beforeId string
    Cursor from nextCursor.beforeId. Breaks ties between events with the same start time.

Code samples

request.sh
curl -X GET 'https://octopus.livepush.io/streams/<stream_id>/config/scheduler/events' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://octopus.livepush.io/streams/<stream_id>/config/scheduler/events', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
  },
});

if (!response.ok) {
  throw new Error(`Livepush API error ${response.status}`);
}

const data = await response.json();
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN',
}

response = requests.get('https://octopus.livepush.io/streams/<stream_id>/config/scheduler/events', headers=headers, timeout=30)
response.raise_for_status()
data = response.json()

Responses

One page of events

application/json

  • events ScheduledEvent[]
    • id string
    • label string
    • immediateStart boolean
    • datetime string<date-time>
    • datetimeEnd string<date-time>
    • datetimeEndExplicit boolean
    • repeatCount integer
    • videos string[]
    • loop boolean
    • isActive boolean
    • isArchived boolean
    • runtime integer
      Runtime in seconds
    • immediateEnd boolean
    • finishedAt integer
    • preciseStart boolean
    • revision integer
    • stream string
    • user string
    • awaiting boolean
  • hasMore boolean
  • nextCursor object
    nullable
    • before string<date-time>
    • beforeId string
Example 200 response response.json
{
  "events": [
    {
      "id": "ev_xxxxxxxxx",
      "label": "Morning session 09:00",
      "datetime": "2026-12-03T04:00:00.000Z",
      "datetimeEnd": "2026-12-03T04:59:00.000Z",
      "runtime": 3540000,
      "videos": [
        "Xk2fP9qLm"
      ],
      "repeatCount": 1,
      "awaiting": true,
      "isActive": false,
      "stream": "st_xxxxxxxxxxxxx"
    },
    {
      "id": "ev_yyyyyyyyy",
      "label": "Evening session 18:00",
      "datetime": "2026-12-02T13:00:00.000Z",
      "datetimeEnd": "2026-12-02T13:59:00.000Z",
      "runtime": 3540000,
      "videos": [
        "Xk2fP9qLm"
      ],
      "repeatCount": 1,
      "awaiting": false,
      "isActive": false,
      "isArchived": true,
      "stream": "st_xxxxxxxxxxxxx"
    }
  ],
  "hasMore": true,
  "nextCursor": {
    "before": "2026-12-02T13:00:00.000Z",
    "beforeId": "ev_yyyyyyyyy"
  }
}

Unknown stream, or an invalid before cursor

Unauthorized