Skip to content

Reports ​

Tables, templates and the agents vs humans summary.

Generated

This page is generated from api/openapi/v1.yaml (OpenAPI 3.1.0, API version 1.0.0).

Run a report (any dimensions × metrics × filters × actor × dates) ​

POST/v1/properties/{pid}/reports/run

Scope: reports:read. Builds any table from the catalog. Every query is bounded by property and date range. Use actor to split agents vs humans, or a filters tree for anything else.

Parameters ​

NameInTypeRequiredDescription
pidpathstringyesProperty id.

Request body ​

FieldTypeRequiredDescription
date_range"last_7_days" | "last_28_days" | "last_90_days" | "this_month" | "last_month" | "yesterday" | "today" or objectA preset or an explicit range in the property time zone. Default last_28_days.
compare"previous_period" | "previous_year" or object
actor"all" | "humans_and_agents" | "humans" | "action_agents" | "indexing_bots" | "mixed_sessions"Who to count: all, humans_and_agents (excludes indexing bots), humans, action_agents (AI agents and automation), indexing_bots (crawlers, AI readers, monitoring) or mixed_sessions.
scope"event" | "session" | "segment" | "page" | "user" | "element"
dimensionsarray of string
metricsarray of stringyes
filtersobject or object or object or objectA filter tree. Leaf {field, op, value}, or {and: [...]}, {or: [...]}, {not: {...}}.
segment_idstring
order_byarray of object
limitinteger

Responses ​

StatusDescription
200Report result.
400Invalid body or query (invalid_request), with errors[] for validation failures.
401Missing, invalid, expired or revoked API key (unauthorized).
403The key lacks the required scope (forbidden_scope).
404Unknown endpoint, or a property / object that does not exist or is not accessible with this key (not_found).
429Rate limit exceeded (rate_limited). Wait Retry-After seconds.

Response fields

FieldTypeRequiredDescription
columnsarray of objectyes
rowsarray of objectyes
totalsobject | null
compareobject
metaobjectyes

Run a built-in report template ​

POST/v1/properties/{pid}/templates/{id}/run

Scope: reports:read. Runs every widget of the template. Widgets that need a feature your plan lacks come back with an error instead of a result.

Parameters ​

NameInTypeRequiredDescription
pidpathstringyesProperty id.
idpathstringyesTemplate id (see GET /templates), e.g. humans_vs_agents.

Request body ​

FieldTypeRequiredDescription
date_range"last_7_days" | "last_28_days" | "last_90_days" | "this_month" | "last_month" | "yesterday" | "today" or objectA preset or an explicit range in the property time zone. Default last_28_days.
compare"previous_period" | "previous_year" or object
actor"all" | "humans_and_agents" | "humans" | "action_agents" | "indexing_bots" | "mixed_sessions"Who to count: all, humans_and_agents (excludes indexing bots), humans, action_agents (AI agents and automation), indexing_bots (crawlers, AI readers, monitoring) or mixed_sessions.
json
{
  "date_range": "last_28_days",
  "actor": "all"
}

Responses ​

StatusDescription
200Widgets with their results.
400Invalid body or query (invalid_request), with errors[] for validation failures.
401Missing, invalid, expired or revoked API key (unauthorized).
403The key lacks the required scope (forbidden_scope).
404Unknown endpoint, or a property / object that does not exist or is not accessible with this key (not_found).

Response fields

FieldTypeRequiredDescription
templateobject
widgetsarray of object
metaobject

Agents vs humans vs bots headline ​

GET/v1/properties/{pid}/summary

Scope: reports:read. Sessions by navigation mode (agent, mixed, human, bot), activity by actor family, top agents, and the share of the AI Assistants channel.

Parameters ​

NameInTypeRequiredDescription
pidpathstringyesProperty id.
date_rangequery"last_7_days" | "last_28_days" | "last_90_days" | "this_month" | "last_month" | "yesterday" | "today"Date preset. Ignored when start and end are given.
startquerystring
endquerystring
actorquery"all" | "humans_and_agents" | "humans" | "action_agents" | "indexing_bots" | "mixed_sessions"

Responses ​

StatusDescription
200Summary.
400Invalid body or query (invalid_request), with errors[] for validation failures.
401Missing, invalid, expired or revoked API key (unauthorized).
403The key lacks the required scope (forbidden_scope).
404Unknown endpoint, or a property / object that does not exist or is not accessible with this key (not_found).

Response fields

FieldTypeRequiredDescription
sessions_by_navigation_modearray of object
by_actor_familyarray of object
top_agentsarray of object
agent_session_sharenumberShare of sessions with an agent (agent + mixed).
ai_assistants_channelobject
totalsobject | null
metaobject

Agents & humans, every visit counts!