curl --request GET \
--url https://api.avidoai.com/v0/traces/sessions \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'{
"data": [
{
"referenceId": "ref-abc-123",
"traceCount": 5,
"firstSeen": "2025-01-05T12:00:00.000Z",
"lastSeen": "2025-01-05T12:34:56.789Z",
"totalCost": 0.05,
"totalPromptTokens": 500,
"totalCompletionTokens": 300,
"hasError": false
}
],
"pagination": {
"skip": 0,
"limit": 25,
"total": 100,
"totalPages": 4,
"totalCount": 100
}
}Retrieve traces grouped by referenceId with aggregated metrics.
curl --request GET \
--url https://api.avidoai.com/v0/traces/sessions \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>'{
"data": [
{
"referenceId": "ref-abc-123",
"traceCount": 5,
"firstSeen": "2025-01-05T12:00:00.000Z",
"lastSeen": "2025-01-05T12:34:56.789Z",
"totalCost": 0.05,
"totalPromptTokens": 500,
"totalCompletionTokens": 300,
"hasError": false
}
],
"pagination": {
"skip": 0,
"limit": 25,
"total": 100,
"totalPages": 4,
"totalCount": 100
}
}Your unique Avido API key
Your unique Avido Application ID
Number of items to skip before starting to collect the result set.
0 <= x <= 90071992547409910
Number of items to include in the result set.
1 <= x <= 10025