API reference · Recorder
Read one trace, with its captured bodies
GET/api/traces/{traceId}Signed in session
Scoped to the owning account at the query. Captured bodies are the caller's own prompts: they are never public, never exported to another account, and they disappear once the key's retention window passes.
Parameters
| Field | Type | What it is |
|---|---|---|
| traceId (path)required | string | 32 hex characters. |
Answer 200
The spans, and the capture when there is one.
| Field | Type | What it is |
|---|---|---|
| spans | array of TraceSpan | |
| spans[] | string | |
| spans[] | string or null | |
| spans[] | string | |
| spans[] | string | One of "request", "attempt". |
| spans[] | string or null | |
| spans[] | string or null | |
| spans[] | integer | |
| spans[] | boolean | True when this attempt repeated the previous model and upstream. |
| spans[] | integer | |
| spans[] | integer | |
| spans[] | integer | |
| spans[] | integer or null | |
| spans[] | integer | |
| spans[] | integer | |
| spans[] | integer | |
| spans[] | integer or null | |
| spans[] | string or null | |
| capture | RequestCapture | The stored request and response. Visible only to the account that made the call, never public, and deleted once expiresAt passes. |
| capture. | string | |
| capture. | integer | |
| capture. | integer | When this body is deleted. |
| capture. | string | |
| capture. | string | |
| capture. | integer | |
| capture. | boolean | |
| capture. | integer | |
| capture. | integer or null | |
| capture. | integer or null | |
| capture. | integer | |
| capture. | integer | |
| capture. | string or null | Untrusted text. Render escaped. |
| capture. | integer | The original size, even when truncated. |
| capture. | boolean | True when the text above is a prefix. |
| capture. | string or null | Untrusted text. Render escaped. |
| capture. | integer | |
| capture. | boolean | |
| capture. | string or null |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 404OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.