Skip to main content

Read a context snapshot referenced by this session

GET 

/session/context-snapshots/:contextHash

Reads the context snapshot a turn's contextSnapshotHash names: the harness sources the turn resolved, as a manifest, and the content Peen built from them. Snapshots are stored once by hash and shared by every session that produced the same content.

You can read a snapshot only through a session that has a turn naming it. Pass the hash from one of this session's turns in GET /session/turns.

  • Errors: 404 SESSION_NOT_FOUND when the session does not exist, and 404 NOT_FOUND, with a message naming the snapshot, when none of its turns names this hash or no snapshot has it. A hash that only another session's turns name answers the same as an unknown one.

Request​

Responses​

The context snapshot.

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.