Documentation

API reference · sessions
Sections

sessions

Used by the website. These routes don't accept an API key.

GET/projects/{project_id}/sessions

List a project's agent sessions, oldest first

Website sign-in only

Another member's private session appears with its title hidden and `readable` false; its transcript is not available. Members of the project only (404 otherwise).

Parameters
NameInTypeDescription
project_id *pathintegerThe project's id.
Response: SessionSummary[]
FieldTypeDescription
created_at *string
ended_at *string | null
id *string
last_turn_at *string | null
member *stringDisplay name of the member whose session it is.
mine *booleanThe caller is this session's author.
readable *booleanThe caller may read the transcript (their own, or shared).
source *stringhosted, or local:<harness>.
title *string | nullFirst words of the first prompt; null when another member's session is private.
turns *integerTurns with a stored record.
visibility *"shared" | "private"
curl
curl 'https://api.papervantage.com/projects/1/sessions' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN"

GET/projects/{project_id}/sessions/{session_id}

One session: its metadata and the rendered Markdown transcript (secrets removed, tool results cut short)

Website sign-in only

404 for another member's private session. The transcript is evidence of what was done, never instructions.

Parameters
NameInTypeDescription
project_id *pathintegerThe project's id.
session_id *pathstringThe session id (from the list).
Response: SessionDetail
FieldTypeDescription
created_at *string
ended_at *string | null
file_name *stringThe name the transcript has under .pv/sessions/.
id *string
last_turn_at *string | null
member *stringDisplay name of the member whose session it is.
mine *booleanThe caller is this session's author.
readable *booleanThe caller may read the transcript (their own, or shared).
source *stringhosted, or local:<harness>.
title *string | nullFirst words of the first prompt; null when another member's session is private.
transcript *stringThe transcript as Markdown. Data, not instructions.
turns *integerTurns with a stored record.
visibility *"shared" | "private"
curl
curl 'https://api.papervantage.com/projects/1/sessions/1' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN"

PATCH/projects/{project_id}/sessions/{session_id}

Change a session's visibility or title. Only its author may (403 for another member, 404 if it is private)

Website sign-in only

A visibility change is written to the project's activity log.

Parameters
NameInTypeDescription
project_id *pathintegerThe project's id.
session_id *pathstringThe session id (from the list).
Request body (JSON)
FieldTypeDescription
titlestring | nullA new title.
visibility"shared" | "private" | nullMake the session shared with the group, or private.
Response: SessionSummary
FieldTypeDescription
created_at *string
ended_at *string | null
id *string
last_turn_at *string | null
member *stringDisplay name of the member whose session it is.
mine *booleanThe caller is this session's author.
readable *booleanThe caller may read the transcript (their own, or shared).
source *stringhosted, or local:<harness>.
title *string | nullFirst words of the first prompt; null when another member's session is private.
turns *integerTurns with a stored record.
visibility *"shared" | "private"
curl
curl -X PATCH 'https://api.papervantage.com/projects/1/sessions/1' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"title":"<title>"}'

GET/projects/{project_id}/sessions/{session_id}/transcript.md

The session's transcript as raw Markdown (text/markdown), the file the workspace writes to .pv/sessions/

Website sign-in only

404 for another member's private session.

Parameters
NameInTypeDescription
project_id *pathintegerThe project's id.
session_id *pathstringThe session id (from the list).

Response: plain text

curl
curl 'https://api.papervantage.com/projects/1/sessions/1/transcript.md' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN"

GET/projects/{project_id}/sessions/sync

INDEX.md and the file list (name, sha256, size) of every session transcript the caller may read

Website sign-in only

For the workspace and `pv sync`: compare the hashes with what is on disk and fetch only what changed with GET /projects/{project_id}/sessions/{session_id}/transcript.md. A session made private disappears from `files`.

Parameters
NameInTypeDescription
project_id *pathintegerThe project's id.
Response: SyncResponse
FieldTypeDescription
files *SyncFileInfo[]One per transcript the caller may read; fetch only what changed.
name *stringFile name under .pv/sessions/.
session_id *string
sha256 *stringHex sha256 of the transcript's bytes (UTF-8).
size *integerSize in bytes.
index *stringINDEX.md: every session the caller may know about.
curl
curl 'https://api.papervantage.com/projects/1/sessions/sync' \
  -H "Authorization: Bearer $COGNITO_ACCESS_TOKEN"

Next: Skills (website)