Skip to main content
GET
Export Trace
The default projection is full. Use fields to narrow the export. Exports have their own rate limit.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

trace_id
string
required

Query Parameters

fields
string | null

Comma-separated field groups to include: 'core' (tree/timing/status, always included), 'usage' (tokens/cost), 'io' (per-span input/output), 'metadata' (per-span metadata). Aliases: 'skeleton' (core,usage), 'full' (everything). Unknown groups return 400.

project_id
string | null

Target project for the request. Required when authenticating with a user session token (a user credential is only meaningful scoped to a project); for an API key it is optional and, if given, must match the key's project.

Response

Successful Response

V1 export bundle: trace (== traces get) + spans + git_context + manifest.

git_context
GitContext · object
required

git_context.json: repo/ref + per-span source locations.

manifest
ExportManifest · object
required

manifest.json: index of the bundle's parts.

spans
SpanResponse · object[]
required
trace
PublicTraceDetailResponse · object
required

Full trace payload plus a backend-built link to its UI detail view.