Skip to main content
Query traces and retrieve analytics.

List Traces

GET /api/traces
Parameters:
ParameterTypeDescription
servicestringFilter by service
limitintMax results (default: 100)
offsetintPagination offset
startDateISO8601Start time
endDateISO8601End time
Example:
curl "http://localhost:8081/api/traces?service=chat-api&limit=10"

Get Trace

GET /api/traces/:id
Example:
curl "http://localhost:8081/api/traces/trace_abc123"

Cost Analytics

GET /api/analytics/cost
Parameters:
ParameterTypeDescription
servicestringFilter by service
startDateISO8601Start time
endDateISO8601End time
groupBystringGroup by (model, service)