PullRequestTranscript
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/organizations/{org_slug}/repos/{repo_slug}/pages/pull_request/{number}/transcripts |
list |
Pull request agent transcripts page contract |
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:
pull_request_transcripts, err := client.PullRequestTranscript(nil).List(map[string]any{"organization_id": "example", "pull_request_id": "example", "repo_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(pull_request_transcripts)
Lua
Construct client as shown in the Lua setup, then call the operations:
local pull_request_transcripts, err = client:PullRequestTranscript():list({ organization_id = "example", pull_request_id = "example", repo_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$pull_request_transcripts = $client->PullRequestTranscript()->list(["organization_id" => "example", "pull_request_id" => "example", "repo_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
pull_request_transcripts = client.PullRequestTranscript().list({"organization_id": "example", "pull_request_id": "example", "repo_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
pull_request_transcripts = client.PullRequestTranscript.list({ "organization_id" => "example", "pull_request_id" => "example", "repo_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const pull_request_transcripts = await client.PullRequestTranscript().list({ organization_id: "example", pull_request_id: "example", repo_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
adapter |
string |
Yes | Adapter |
created_at |
one,string,null |
Yes | Created At |
ended_at |
one,string,null |
Yes | Ended At |
external_session_id |
string |
Yes | External Session Id |
harness |
string |
Yes | Harness id the session presents as (codex, claude-code, cursor, roder, grok): the captured envelope's harness when recorded, else the adapter's canonical harness. |
id |
string |
Yes | Id |
last_activity_at |
one,string,null |
Yes | When the session last did anything: the newest checkpoint capture, else the session end, else its start. |
last_checkpoint_at |
one,string,null |
Yes | Last Checkpoint At |
repository |
any |
Yes | Repository |
started_at |
one,string,null |
Yes | Started At |
stats |
object |
Yes | Stats |
status |
string |
Yes | Status |
title |
one,string,null |
Yes | Title |
updated_at |
one,string,null |
Yes | Updated At |
user |
any |
Yes | User |
list
GET /api/v1/organizations/{org_slug}/repos/{repo_slug}/pages/pull_request/{number}/transcripts
Operation ID: get_api_v1_organizations_org_slug_repos_repo_slug_pages_pull_request_number_transcripts.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
org_slug |
path |
string |
Yes | |
repo_slug |
path |
string |
Yes | |
number |
path |
string |
Yes | |
paginated |
query |
boolean |
No | Opt in to bounded session pages. Omit to retain the legacy complete list. |
cursor |
query |
string |
No | Opaque next_cursor from a previous page for this pull request. |
limit |
query |
integer |
No | Maximum sessions in paginated mode. |
Responses
200: Pull request agent transcripts page contract
application/json
| Property | Type | Required | Description |
|---|---|---|---|
pagination |
object |
No | Present only when paginated=true. |
pagination.has_more |
boolean |
Yes | |
pagination.limit |
integer |
Yes | |
pagination.next_cursor |
string |
Yes | |
pull_request |
object |
Yes | |
pull_request.github_url |
string |
Yes | The pull request on GitHub, built from the virtual repository's owner and name. Null when that addressing is missing. |
pull_request.head_branch |
string |
Yes | |
pull_request.merge_commit_sha |
string |
Yes | The commit that landed on merge, whatever strategy produced it. |
pull_request.merged_at |
string |
Yes | |
pull_request.number |
integer |
Yes | |
pull_request.state |
enum: open, closed, merged |
Yes | |
sessions |
array of object and object |
Yes | Sessions linked to this pull request, newest first, in the Transcripts list row shape. |