Skip to main content
GET
/
api
/
instances
/
{id}
/
activity
Get instance activity
curl --request GET \
  --url https://operator.io/api/instances/{id}/activity \
  --header 'Authorization: Bearer <token>'
{
  "sessions": [
    {
      "id": "<string>",
      "title": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>",
      "parentId": "<string>"
    }
  ],
  "selectedSession": {
    "id": "<string>",
    "title": "<string>"
  },
  "lineCount": 123,
  "lines": [
    "<string>"
  ],
  "sessionChanged": true
}

Authorizations

Authorization
string
header
required

API key (ck_live_...). Create one in Settings > API Keys.

Path Parameters

id
string
required

Query Parameters

cursor
integer

Line offset. Pass the lineCount from a previous response to get only new lines.

sessionId
string

Specific session ID to read. Defaults to the most recent session.

Response

Activity lines and session metadata.

sessions
object[]
selectedSession
object
lineCount
integer

Total lines in the session. Use as cursor on next poll.

lines
string[]

New JSONL activity lines since the cursor.

sessionChanged
boolean

True if the requested sessionId no longer exists and a fallback was used.