Skip to main content
GET
Get a session transcript

Authorizations

Authorization
string
header
required

MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.

Path Parameters

projectId
string
required

ID of the hosted project that contains the server.

scenarioId
string
required

Scenario ID, as returned by publishing an environment or by the project's scenario reads.

sessionId
string
required

Chat session ID, as returned by the scenario's session list.

Body

application/json

Optional pagination cursor.

cursor
string

Opaque pagination cursor from a previous response's nextCursor. Don't parse it.

Response

The session and its messages.

A session's transcript, paged. The stored blob URL is NEVER returned: it is a direct handle with no further authorization, so handing it out would turn one authorized read into an unbounded, unrevocable one.

id
string
required
scenarioId
string
required
chatSessionId
string | null
required
modelId
string | null
required
startedAt
number | null
required

Epoch milliseconds.

lastActivityAt
number | null
required

Epoch milliseconds.

messageCount
integer | null
required

null — never 0 — when the transcript could not be read. Zero would be a claim the visitor said nothing, the opposite of what an unreadable blob means, and a caller checking only this field would act on it.

messages
object[]
required
transcriptUnavailable
boolean

True when the stored conversation could not be read. Distinct from an empty messages, which means the visitor genuinely said nothing.

nextCursor
string