The session's current position and work, read under its session token.
GET
/sessions/{id}/status
const url = 'https://api.canopyhq.dev/sessions/000000000000000000000000000000000000000000000000000000000000000000000000/status';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.canopyhq.dev/sessions/000000000000000000000000000000000000000000000000000000000000000000000000/status \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
A stream id: 72 hex chars, the shard then the owner digest.
string
The session to inspect.
Responses
Section titled “Responses”The session’s head and active turn.
Media typeapplication/json
object
archived
required
boolean
head
required
Monotonic per-stream position, minted at the single point of intake. Producers never carry or assert one.
integer format: int64
id
required
A stream id: 72 hex chars, the shard then the owner digest.
string
Example
{ "id": "000000000000000000000000000000000000000000000000000000000000000000000000", "live": { "phase": "thinking" }}No valid session token.
The token does not read every public session record.