Skip to content
GET
/api/v1/sessions/transcript
curl --request GET \
--url 'https://deck.example.com/api/v1/sessions/transcript?session=example' \
--cookie qd_auth=<qd_auth>
session
required
string
subagent
string
before
integer format: uint64
after
integer format: uint64

A run of a transcript’s items, oldest first.

Media typeapplication/json

A run of a transcript’s items, oldest first.

object
earlier

Where these items start: ask with before set to this for earlier ones. None at the start of the transcript.

integer | null format: uint64
end
required

Where they end: ask with after set to this for what’s new.

integer format: uint64
items
required
Array<object>

One thing in a transcript.

One of:

A message the person typed (or a slash command they ran).

object
at
string | null
offset
required

The byte offset of the record it came from, with part its place in that record: together, a stable key.

integer format: uint64
part
required
integer format: uint32
kind
required
string
Allowed value: person
text
required
string
session_id
required
string
subagent
string | null
subagents
required

The session’s subagents, in the order they started.

Array<object>

A subagent the session started.

object
agent_type
string | null
depth
required

1 for one the session started, 2 for one a subagent started, and so on.

integer format: uint32
description
string | null
id
required
string
tool_use_id

The tool call that started it.

string | null

Example

{
"items": [
{
"kind": "person"
}
]
}

An error, with its message.

Media typeapplication/json

Every error the REST API returns, with an HTTP status.

object
error
required
string

Example generated

{
"error": "example"
}