Get failure context
Bundled debugging context for a run, suite, or test case.
Quick Reference
Pick the context level
At least 1 ofrunId, suiteId, or caseId is required.If multiple IDs are passed, the most-specific level wins.
Parent ID rules
suiteIdrequiresrunId. The API returns400ifsuiteIdis passed withoutrunId.caseIdcan be sent withoutrunId. The service resolves the latest run for that case and returns it indata.meta.runId.
Response formats and detail modes
format=jsonreturns the standard envelope withdata.level.format=mdreturns a plain Markdown response for AI prompts.detail=summaryremovessteps[]at test level.detail=compactremovessteps[],stdout, andstderr, and capsassets.*arrays at5with totals.
Links block in every response
Each level includeslinks.uiUrl and links.retryCommand.Test-level responses also include
links.traceViewerUrl, or null when trace data is unavailable.Authorizations
User PAT (td_pat_) scoped to the target project
Path Parameters
The project identifier (e.g. project_abc123). Must match the project associated with your PAT.
Query Parameters
Run ID. Required for run level and required with suiteId.
Suite ID. Requires runId.
Test case ID. runId is optional.
Zero-indexed attempt number (test level only).
x >= 0Response format: json (default) or md.
json, md Payload size mode: default, summary, or compact.
default, compact, summary Pagination (run + suite levels only).
x >= 1Pagination size for run/suite levels.
1 <= x <= 50Maximum Markdown length when format=md.
1 <= x <= 50000