GET
/
v0
/
traces
curl --request GET \
  --url https://api.avidoai.com/v0/traces \
  --header 'x-api-key: <api-key>'
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "referenceId": "123e4567-e89b-12d3-a456-426614174000",
      "timestamp": "2025-01-05T12:34:56.789123Z",
      "metadata": {
        "userId": "123",
        "source": "chatbot"
      },
      "testId": "<string>",
      "steps": [
        {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "traceId": "610adba1-7cc0-4fa7-9e2b-8bd2fdf281b2",
          "timestamp": "2025-01-05T12:34:56.789123Z",
          "type": "llm",
          "name": "Moderation",
          "group": "inputModeration",
          "params": {},
          "metadata": {},
          "modelId": "gpt-4o-2024-08-06",
          "usage": {
            "promptTokens": 100,
            "completionTokens": 100
          },
          "input": "Tell me a joke.",
          "output": "Why did the chicken cross the road?",
          "event": "end"
        }
      ]
    }
  ],
  "pagination": {
    "skip": 0,
    "limit": 25,
    "total": 100,
    "totalPages": 4
  }
}

Authorizations

x-api-key
string
header
required

Your unique Avido API key

Query Parameters

skip
integer
default:0

Number of items to skip (for pagination)

Required range: x >= 0
Example:

0

limit
integer
default:25

Number of items per page

Required range: 1 <= x <= 100
Example:

25

startDate
string

Start date (ISO8601) for filtering traces.

Example:

"2025-01-09T14:47:56Z"

endDate
string

End date (ISO8601) for filtering traces.

Example:

"2025-01-09T14:47:56Z"

applicationId
string

Filter by application ID

Example:

"789e4567-e89b-12d3-a456-426614174000"

Response

200
application/json

Successfully retrieved traces with steps

Paginated response containing traces