Skip to main content

List stored protocol events

GET 

/session/events

Lists the protocol events Peen stored while it ran the session's turns, such as tool.use, ordered by their per-session sequence. order is asc (oldest first, the default) or desc. Page with limit and offset.

These are records of what happened, not a queue: listing never consumes or changes them. The WebSocket protocol event types table lists every type. To replay exactly what a live client saw, including child agent steps and notices, use GET /session/feed instead.

Returns 404 SESSION_NOT_FOUND when the session does not exist, and 400 for a malformed X-Session-ID or an out-of-range limit, offset, or order.

Request​

Responses​

Page of protocol events.

Response Headers
    X-Session-ID

    The session this response belongs to. For session-scoped requests it echoes the X-Session-ID request header; for POST /sessions/open and POST /sessions/system it is the session that was opened or created.

    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.