Skip to main content
GET
Get a trajectory

Authorizations

X-API-Key
string
header
required

Organization API key

Path Parameters

trajectory_id
string
required

Query Parameters

include_steps
boolean
default:false

Include every step. A trajectory over 30 MiB fails with trajectory_too_large; page its steps with listTrajectorySteps.

include_reward_components
boolean
default:false

Include the reward components logged with log_reward.

Response

Successful Response

trajectory_id
string
required

Trajectory ID, returned as tid by the create endpoint.

organization_id
string
required
source
string
required
created_at
string
required
dataset_id
string | null
dataset_name
string | null
dataset_source
string | null
dataset_gcs_prefix
string | null
trace_id
string | null
model_id
string | null
model_association_source
string | null
model_association_metadata
Model Association Metadata · object | null
status
string | null
termination_reason
string | null

Recorded reason the trajectory ended, independent of rollout state; null when not recorded.

termination_subreason
TrajectoryTerminationSubreason · object | null
reward
number | null
num_steps
integer | null
training_run_id
string | null
task_id
string | null
policy_step
integer | null

Sampled policy step, not optimizer step.

rollout
TrajectoryRolloutStatus · object | null
gcs_blob_uri
string | null
error
string | null
steps
Step · object[]
reward_components
TrajectoryRewardComponent · object[]

Logged reward components, in logged order.