Skip to main content
GET
/
traces
/
analytics
Get Trace Analytics
curl --request GET \
  --url https://api.promptmetrics.dev/traces/analytics \
  --header 'Authorization: Bearer <token>'
{
  "responseData": {
    "totalTraces": 123,
    "avgDuration": 123,
    "successRate": 123,
    "errorRate": 123,
    "byFunction": {},
    "byStatus": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

workspace_id
string
required

Response

200 - application/json

Analytics

responseData
object