Skip to main content

List a session's notices

GET 

/session/notices

Lists every notice recorded for the session named by X-Session-ID, oldest first, whether or not it has been delivered to the model yet. Notices come from Peen's own producers (for example tools.job for process jobs, agent.launchAgent for child agents, session.turn for how a turn ended) and from outside callers through POST /session/notices (source api). Listing never consumes them. Page with limit and offset.

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 or offset.

Request​

Responses​

Page of notices, oldest first.

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.