API Referenceanalytics
Get Overview
Get high-level overview metrics for a project. Returns aggregate metrics including traces, classifications, LLM costs, and HITL feedback.
AuthorizationBearer <token>
In: header
Query Parameters
project_id*Project Id
Project ID for tenant isolation
Format
uuidtimeRange?Timerange
Default
"last 7 days"workspace_id?Workspace Id
Optional workspace ID for authorization. When omitted, the service resolves the workspace from the authenticated context. Requests with ambiguous or conflicting authenticated contexts are rejected.
Format
uuidResponse Body
application/json
application/json
curl -X get "https://prisma.your-company.com/api/v1/analytics/overview?project_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"annotation": {
"dimensions": {
"Traces.projectId": {}
},
"measures": {
"Traces.count": {}
}
},
"data": [
{
"Traces.count": 42,
"Traces.projectId": "550e8400-e29b-41d4-a716-446655440000"
}
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Get Cube Metadata
Get Cube.js metadata (available cubes, measures, dimensions). Useful for building dynamic query interfaces.
Query Analytics
Execute a flexible analytics query. Supports cross-table queries with measures, dimensions, filters, and time dimensions. Available cubes: Traces, Spans, Classifications, LlmUsage, HitlFeedback.

