Skip to content

audit_events

GET
/console/sessions/{id}/events
curl --request GET \
--url https://api.canopyhq.dev/console/sessions/000000000000000000000000000000000000000000000000000000000000000000000000/events \
--header 'Authorization: Bearer <token>'
id
required

A stream id: 72 hex chars, the shard then the owner digest.

string

The session to read.

opened
string

opened=1 serves every record the session landed, addressed ones included, and opens each call’s arguments; owners, on an ended session.

One JSON line per record: {"Ok": <record>}. Plain, the public records alone. Opened, every record the session landed, at every cursor from one to the tip, with each call on a turn carrying arguments and each completion its result, or an error saying why not; the authorizer’s invoke.allowed is served without its gate.

Media typeapplication/jsonstream

A landed record: the envelope plus the opaque body beneath it.

object
body
required

The opaque layers beneath the envelope.

envelope
required

The envelope: the only surface the filter is evaluated on. Trellis never reads beneath it.

object
at
required

Unix milliseconds, minted with the cursor at the single point of intake.

integer format: int64
cursor
required

Monotonic per-stream position, minted at the single point of intake. Producers never carry or assert one.

integer format: int64
idem
One of:
null
kind
required

A kind string and the version of its body, one unit.

object
name
required
string
version
required
integer format: int32
producer
required

Who landed a record. Asserted on the offer, checked by the write clause.

string
size
required
integer format: int32
stream
required

A stream id: 72 hex chars, the shard then the owner digest.

string
to
One of:
null
Example
{
"envelope": {
"stream": "000000000000000000000000000000000000000000000000000000000000000000000000"
}
}

A query string that did not parse.

No console token, or one that did not verify.

Only an owner reads the opened face.

No such session under this tenant.

The session is still live; the opened face waits for its end.