Transcript
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{org_slug}/transcripts/search |
create |
Bounded ranked session window and indexing coverage |
GET |
/api/v1/transcripts |
list |
A bounded page of associated conversations, including an empty known target |
GET |
/api/v1/transcripts/read |
load |
Indexed events or an explicit content availability state |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
transcripts, err := client.Transcript(nil).List(map[string]any{"repo": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(transcripts)
Lua
Construct client as shown in the Lua setup, then call the operations:
local transcripts, err = client:Transcript():list({ repo = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$transcripts = $client->Transcript()->list(["repo" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
transcripts = client.Transcript().list({"repo": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
transcripts = client.Transcript.list({ "repo" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const transcripts = await client.Transcript().list({ repo: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
agent |
string |
Yes | Agent |
author |
object |
Yes | Author |
checkpoint_pagination |
object |
Yes | Checkpoint Pagination |
checkpoints |
array |
Yes | Checkpoints |
id |
string |
Yes | Id |
last_checkpoint_at |
one,string,null |
Yes | Last Checkpoint At |
selected_checkpoint |
any |
Yes | Selected Checkpoint |
source_url |
string |
Yes | Source Url |
started_at |
string |
Yes | Started At |
status |
string |
Yes | Status |
title |
one,string,null |
Yes | Title |
create
POST /api/v1/organizations/{org_slug}/transcripts/search
Operation ID: api_v1_transcripts_search.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
adapter |
string |
No | |
cursor |
string |
No | |
from |
string |
No | |
limit |
integer |
No | |
max_bytes |
integer |
No | |
mode |
enum: hybrid, keyword, semantic |
No | |
query |
string |
Yes | |
repo |
string |
No | |
status |
string |
No | |
to |
string |
No | |
user |
string |
No |
Responses
200: Bounded ranked session window and indexing coverage
application/json
| Property | Type | Required | Description |
|---|---|---|---|
coverage |
object |
Yes | |
coverage.failed |
integer |
Yes | |
coverage.indexed_at |
string |
Yes | |
coverage.pending |
integer |
Yes | |
coverage.ready |
integer |
Yes | |
coverage.sessions |
integer |
Yes | |
degradation |
string |
No | |
limits |
object |
Yes | |
limits.candidate_window |
integer |
Yes | |
limits.limit |
integer |
Yes | |
limits.max_bytes |
integer |
Yes | |
mode_requested |
string |
Yes | |
mode_used |
string |
Yes | |
pagination |
object |
Yes | |
pagination.budget_limited |
boolean |
Yes | |
pagination.next_cursor |
string |
Yes | |
pagination.window_exhausted |
boolean |
Yes | |
query |
string |
Yes | |
results |
array of object |
Yes | |
results[].harness |
string |
Yes | |
results[].matches |
array of object |
Yes | |
results[].matches[].byte_end |
integer |
Yes | |
results[].matches[].byte_start |
integer |
Yes | |
results[].matches[].checkpoint_id |
string |
Yes | |
results[].matches[].event_digest |
string |
Yes | |
results[].matches[].event_index |
integer |
Yes | |
results[].matches[].excerpt |
string |
Yes | |
results[].matches[].role |
enum: user, assistant |
Yes | |
results[].matches[].source_ref |
string |
Yes | |
results[].matches[].truncated |
boolean |
Yes | |
results[].model |
string |
Yes | |
results[].repository |
object |
Yes | |
results[].repository.id |
string |
Yes | |
results[].repository.slug |
string |
Yes | |
results[].session_id |
string |
Yes | |
results[].started_at |
string |
Yes | |
results[].title |
string |
Yes | |
results[].url |
string |
Yes | |
results[].user |
object |
Yes | |
results[].user.id |
string |
Yes | |
results[].user.name |
string |
Yes | |
status |
enum: ready, empty, not_ready, degraded |
Yes |
400: Invalid request
401: Authentication required
403: Forbidden
404: Missing or inaccessible scope
409: Stale cursor
422: Unprocessable entity
429: Search quota exceeded
502: Bad gateway
503: Dependency unavailable
list
GET /api/v1/transcripts
Operation ID: api_v1_transcripts.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
repo |
query |
string |
Yes | |
change |
query |
string |
No | |
pr |
query |
string |
No | GitHub PR number or URL. |
commit |
query |
string |
No | Complete 40-character Git commit SHA. |
patchset |
query |
integer |
No | |
limit |
query |
integer |
No | |
cursor |
query |
string |
No | |
session |
query |
string |
No | Select a linked session when paging its matching checkpoints. |
checkpoint_cursor |
query |
string |
No |
Responses
200: A bounded page of associated conversations, including an empty known target
application/json
| Property | Type | Required | Description |
|---|---|---|---|
as_of |
string |
Yes | |
linkage |
enum: observed |
Yes | |
pagination |
object |
Yes | |
pagination.has_more |
boolean |
Yes | |
pagination.limit |
integer |
Yes | |
pagination.next_cursor |
string |
Yes | |
sessions |
array of object |
Yes | |
sessions[].agent |
string |
Yes | |
sessions[].author |
object |
Yes | |
sessions[].author.id |
string |
Yes | |
sessions[].author.name |
string |
Yes | |
sessions[].checkpoint_pagination |
object |
Yes | |
sessions[].checkpoint_pagination.has_more |
boolean |
Yes | |
sessions[].checkpoint_pagination.limit |
integer |
Yes | |
sessions[].checkpoint_pagination.next_cursor |
string |
Yes | |
sessions[].checkpoints |
array of object |
Yes | |
sessions[].checkpoints[].captured_at |
string |
Yes | |
sessions[].checkpoints[].id |
string |
Yes | |
sessions[].checkpoints[].matches |
object |
Yes | |
sessions[].checkpoints[].matches.entries |
array of object |
Yes | |
sessions[].checkpoints[].matches.entries[].commit |
string |
Yes | |
sessions[].checkpoints[].matches.entries[].current_patchset |
boolean |
No | |
sessions[].checkpoints[].matches.entries[].kind |
string |
Yes | |
sessions[].checkpoints[].matches.entries[].patchset |
integer |
No | |
sessions[].checkpoints[].matches.truncated |
boolean |
Yes | |
sessions[].checkpoints[].source_ref |
string |
Yes | Opaque saved-content reference. It grants no access. |
sessions[].checkpoints[].status |
enum: available, preparing, pending, unavailable, expired |
Yes | |
sessions[].id |
string |
Yes | |
sessions[].last_checkpoint_at |
string |
Yes | |
sessions[].selected_checkpoint |
object |
Yes | |
sessions[].source_url |
string |
Yes | |
sessions[].started_at |
string |
Yes | |
sessions[].status |
enum: available, preparing, pending, unavailable, expired, no_matching_checkpoint |
Yes | |
sessions[].title |
string |
Yes | |
target |
object |
Yes | |
target.change_id |
string |
No | |
target.commit |
string |
No | |
target.github_url |
string |
No | |
target.kind |
enum: github_pr, change, commit |
Yes | |
target.number |
integer |
No | |
target.observed_head |
string |
Yes | |
target.reference |
string |
Yes | |
target.repo |
string |
Yes |
400: Invalid or conflicting selectors
401: Authentication required
403: Forbidden
404: Missing or inaccessible target
422: Unprocessable entity
502: Bad gateway
503: Association lookup is temporarily unavailable
load
GET /api/v1/transcripts/read
Operation ID: api_v1_transcripts_read.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
source_ref |
query |
string |
No | Opaque source reference returned by discovery, required on the source route unless continuing with a cursor. |
cursor |
query |
string |
No | |
limit |
query |
integer |
No | |
max_bytes |
query |
integer |
No | |
include_tools |
query |
boolean |
No | |
around_event |
query |
integer |
No | Cited event index, paired with event_digest and without cursor. |
event_digest |
query |
string |
No |
Responses
200: Indexed events or an explicit content availability state
application/json
| Property | Type | Required | Description |
|---|---|---|---|
checkpoint_id |
string |
Yes | |
contains_truncated_events |
boolean |
Yes | |
events |
array of object |
Yes | |
events[].citation |
object |
Yes | |
events[].citation.checkpoint_id |
string |
Yes | |
events[].citation.digest |
string |
Yes | |
events[].citation.event_index |
integer |
Yes | |
events[].index |
integer |
Yes | |
events[].kind |
enum: message, tool_use, tool_result |
Yes | |
events[].role |
string |
Yes | |
events[].text |
string |
Yes | |
events[].timestamp |
string |
Yes | |
events[].truncated |
boolean |
Yes | |
has_more |
boolean |
Yes | |
limits |
object |
Yes | |
limits.bytes |
integer |
Yes | |
limits.events |
integer |
Yes | |
limits.include_tools |
boolean |
Yes | |
newer_cursor |
string |
Yes | |
older_cursor |
string |
Yes | |
scope |
enum: checkpoint, whole_session |
Yes | |
session_id |
string |
Yes | |
source_ref |
string |
Yes | |
status |
enum: available, preparing, pending, unavailable, expired, no_checkpoint |
Yes | |
truncation_notice |
string |
Yes |