Retrieve run trace
Changed onReturns the OTel trace subtree for the requested run — the run's span as rootSpan, its ancestor chain, and its descendant spans. For child or nested runs in a large trace, this is scoped to that run rather than the trace-wide root. Pass page[size] or page[after] to page the trace as flat spans instead; paging works for runs at the root of their trace.
Request
- Base URLhttps://api.trigger.dev
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Turns on paging. Spans per page; values are clamped to 1,000–10,000. Defaults to 10,000 when only page[after] is sent.
Turns on paging. The pagination.next cursor from the previous page, passed back unchanged. Omit it for the first page.
Response
Successful request. Without page parameters, the nested trace tree. With them, one page of flat spans.
Changes
- breaking
added
subschema #1: Trace treesubschema #2: Trace pageto the response bodyoneOflist for the response status - breaking
the response's body type changed from
objectto no type for status - warning
removed the optional property
from the response with the status - info
added the new optional
queryrequest parameterpage[after] - info
added the new optional
queryrequest parameterpage[size] - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- breaking
the
/response's property type changed fromobjectto no type for status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added to the
/response propertyallOflist for the response status
- breaking