Skip to main content
GET
Get analytics (series + summary) for an agent

Authorizations

Authorization
string
header
required

User-bound credential carrying an identity: either a session JWT or a user access token (at:*) generated from the user settings UI. Send as Authorization: Bearer <token>. Org API keys (iak_*) are not accepted here - they carry no user identity. Use the x-prismeai-api-key header instead (see OrgApiKeyAuth).

Path Parameters

agentId
string
required
Maximum string length: 64

Query Parameters

period
enum<string>

Preset period. Default 30d.

Available options:
15m,
30m,
1h,
1d,
7d,
30d,
90d
Maximum string length: 16
start
string

ISO start (custom range). Overrides period.

Maximum string length: 64
end
string

ISO end (custom range, exclusive).

Maximum string length: 64
granularity
enum<string>

Override granularity (auto-picked from period otherwise).

Available options:
5m,
hourly,
daily
Maximum string length: 16

Response

Analytics payload.

Analytics payload (series + summary) for a single agent.

agent_id
string
agent_name
string
period
object
summary
object

Aggregated KPIs (users, engagement, quality, performance, cost, models, tools).

series
object[]
meta
object