API referenceTraces
GET /traces/{traceId}/archived
Same response as traces.get, with archived=true and origin=archive on every span. 409 NOT_READY until the fetch is ready; 410 when the history was deleted.
Path Parameters
traceId*string
Query Parameters
limit?integer
Span page size (default 500)
Format
int64Range
1 <= value <= 500cursor?string
Continuation cursor from the previous page
Length
length <= 2048Response Body
application/json
application/problem+json
curl -X GET "https://example.com/traces/string/archived"{ "$schema": "https://example.com/schemas/GetTraceOutputBody.json", "archived": true, "hasMore": true, "nextCursor": "string", "spans": [ { "$schema": "https://example.com/schemas/EventDTO.json", "activityClass": "string", "agentId": "string", "agentName": "string", "appId": "string", "attributes": null, "cacheReadTokens": 0, "cacheWriteTokens": 0, "channelId": "string", "contentState": "string", "costSource": "string", "costUsd": 0.1, "createdAt": "string", "durationMs": 0.1, "environmentId": "string", "errorMessage": "string", "errorType": "string", "eventId": "string", "eventType": "string", "finishReason": "string", "inputTokens": 0, "metadata": null, "occurredAt": "string", "operationName": "string", "orgId": "string", "origin": "archive", "outputTokens": 0, "parentSpanId": "string", "payload": null, "payloadSpilled": true, "providerName": "string", "reasoningTokens": 0, "requestModel": "string", "resourceAttributes": null, "responseModel": "string", "semanticKind": "string", "serviceName": "string", "sessionId": "string", "source": "string", "spanId": "string", "status": "string", "toolName": "string", "totalTokens": 0, "traceId": "string", "ttftMs": 0.1, "userId": "string" } ], "traceId": "string"}