Retrieve a trace
Retrieve a single trace by trace_unique_id, including aggregate metrics and the full span tree. start_time and end_time are accepted query parameters for clients that keep trace lookups scoped to a known time window.
Authentication
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
Path parameters
Query parameters
Optional start of the trace time window (ISO 8601). Use with end_time when you know the trace window.
Optional end of the trace time window (ISO 8601). Use with start_time when you know the trace window.
Response
Alias of unique_organization_id.
Number of LLM-call spans.
Root span input. API key responses may include full storage-enriched content.
Root span output. API key responses may include full storage-enriched content.
Workflow or trace-group identifier.
Primary/root model used.