API reference

API reference · Recorder

List your traces

GET/api/tracesSigned in session

Metadata only: model, upstream, attempts, timings, tokens, cost, and whether a body was captured. Bodies live behind GET /api/traces/{traceId}.

Parameters

Path and query parameters
FieldTypeWhat it is
limit (query)integerDefault 25. From 1 to 100.
before (query)integerContinue from a previous nextBefore.
model (query)stringFilter by model id.
failed (query)stringOnly traces that failed. One of "1".

Answer 200

Your traces, newest first.

Fields of the 200 answer
FieldTypeWhat it is
tracesarray of TraceSummary
traces[].traceIdstring32 hex characters.
traces[].startedAtinteger
traces[].durationMsinteger
traces[].modelstring or null
traces[].upstreamstring or null
traces[].statusinteger or null
traces[].attemptsintegerUpstream attempts behind this one client request.
traces[].ttftMsinteger or null
traces[].tokensinteger
traces[].costMicrosintegerMicro USD, integer end to end.
traces[].capturedbooleanTrue when the request and response bodies were stored.
traces[].sessionIdstring or null
nextBeforeinteger or null

Errors

  • 401OpenAI 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.

Antimatter