Get a single trace by ID
Retrieves detailed information about a specific trace.
curl --request GET \
--url https://api.avidoai.com/v0/traces/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"traceId": "thread_abc",
"applicationId": "app_123",
"timestamp": "2025-01-05T12:34:56.789Z",
"type": "llm",
"event": "start",
"tokens": {
"input": 100,
"output": 200
},
"metadata": {
"custom": "metadata"
}
}
}
Authorizations
Your unique Avido API key
Your unique application ID. Get this from the Connections page in Avido.
Path Parameters
The unique identifier of the trace
"123e4567-e89b-12d3-a456-426614174000"
Response
Successful response containing a single trace object
A trace grouping related steps (e.g. a user-agent interaction or conversation).
Unique Trace ID (UUID).
"123e4567-e89b-12d3-a456-426614174000"
ISO-8601 datetime when the trace was created.
"2025-01-05T12:34:56.789Z"
An optional reference ID to link the trace to an existing conversation or interaction in your own database.
"123e4567-e89b-12d3-a456-426614174000"
Arbitrary metadata (e.g., userId, source). String inputs are parsed as JSON or wrapped in { raw: val }.
{ "userId": "123", "source": "chatbot" }
The associated Test if this was triggered by an Avido eval
The steps associated with the trace.
Schema for LLM trace events.
UUID for the step.
"123e4567-e89b-12d3-a456-426614174000"
UUID referencing the parent trace's ID.
"610adba1-7cc0-4fa7-9e2b-8bd2fdf281b2"
ISO-8601 datetime for when the step occurred.
"2025-01-05T12:34:56.789Z"
llm
Model ID or name used for the LLM call.
"gpt-4o-2024-08-06"
Extra metadata about this trace event. String values are parsed as JSON if possible.
Number of input and output tokens used by the LLM.
JSON input for this LLM trace event (e.g., the prompt).
{
"role": "user",
"content": "Tell me a joke."
}
JSON describing the output. String inputs are parsed or wrapped in { message: val }.
{
"message": "Why did the chicken cross the road?"
}
Event label (e.g., 'start', 'end'). Specific to LLM traces.
"end"
curl --request GET \
--url https://api.avidoai.com/v0/traces/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"traceId": "thread_abc",
"applicationId": "app_123",
"timestamp": "2025-01-05T12:34:56.789Z",
"type": "llm",
"event": "start",
"tokens": {
"input": 100,
"output": 200
},
"metadata": {
"custom": "metadata"
}
}
}