Skip to main content
GET
Get a trail by number (repo_id addressing)

Authorizations

Authorization
string
header
required

OAuth 2.0 authorization code flow.

Path Parameters

repo_id
string
required

Repo id: placement ULID or public repo_

number
string
required

Trail number

Query Parameters

agent_history
enum<string>
default:readings

readings keeps the legacy reading-only history; runs includes preserved cancellations and a kind discriminator on every entry.

Available options:
readings,
runs

Response

OK

actions
object
required

Availability by operation for this caller and Trail snapshot. The server revalidates every submitted command.

agents
object[] | null
required

Saved agents with a run on this Change, apart from the repository runners' monitors: each one's latest run, its signal's readings and who it is.

author
object
required
base
string
required
base_missing
boolean
required

True when the base branch doesn't exist in the repository, so the Change can't be compared, gated or reviewed until someone pushes the base or changes the Change's base. False on a merged or closed Change.

base_sha
string | null
required
body_document
object
required
branch
string | null
required
branch_state
enum<string>
required

Observed availability of the associated branch. Unknown is not a deletion; original_branch is a historical name, not proof of a live branch.

Available options:
present,
deleted,
unlinked,
unknown
code_changes
enum<string>
required

Current code evidence: present means commits ahead of base, none means a confirmed zero or an indexed base tip equal to the displayed head when comparison is unavailable, unknown means no usable evidence for a Change that tracks a branch. not_applicable means no live comparison exists (merged, closed or unlinked); terminal history uses frozen snapshot refs.

Available options:
present,
none,
unknown,
not_applicable
config_source
string
required
created_at
string<date-time>
required
has_code_changes
boolean
required
head_sha
string | null
required
id
string
required
last_activity_at
string<date-time>
required

Latest meaningful activity on the Change; excludes background bookkeeping and falls back to created_at until activity is recorded.

lifecycle_sync
enum<string>
required

Pending means linked PR metadata reports a terminal transition not yet applied to this Change, or the linked PR's head branch was deleted. Settled means no such observed transition, not a guarantee that all webhooks have arrived.

Available options:
settled,
pending
merge_base_sha
string | null
required
mergeability
object
required
merged_at
string<date-time> | null
required
monitors
object[] | null
required
number
integer<int64>
required
original_branch
string | null
required
ready_for_review
boolean
required
reviewers
object[] | null
required
runners
object[] | null
required
status
string
required
title
string
required
updated_at
string<date-time>
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"/api/v1/schemas/TrailDetailResponse.json"

deployments
object

Deployments at the current or frozen head; display-only, independent of checks and merge gates.

gh_pr_id
integer<int64>
merged_base
string

Branch a merged Change landed on, as its merge recorded it, without refs/heads/. Merged through Entire, a stacked Change names its stack's base, not its own base; merged on GitHub, it names the base GitHub reported for the pull request. Omitted when the Change is not merged or its merge recorded no destination, as for merges that predate the record.

parent
object

Discoverable project parent on list/detail reads; absence does not prove the work is parentless

url
string

Web app page for this code work; absent when this deployment has no frontend origin