Skip to navigation

Get Session Metrics

Get aggregated session metrics for the organization.

Authentication

AuthorizationBearer

Personal API Key (apk_user_) or Service API Key (apk_)

Path parameters

org_idstringRequired

Query parameters

user_idslist of strings or nullOptional
service_user_idslist of strings or nullOptional
time_beforeintegerRequired
time_afterintegerRequired
playbook_idstring or nullOptional

Response

Successful Response
avg_acus_per_sessiondouble
sessions_created_by_originobject

Session counts by origin type, exposed on the v3 metrics API.

A curated subset of SessionOrigin: legacy origins (cli, vscode_extension, devin_spaces) are intentionally not surfaced. Counts for sessions with a scheduled DB origin roll into automation via the canonical db_origin_to_api mapping, since automations are a superset that schedules will migrate into.

sessions_created_by_sizeobject
Session counts by size category.
sessions_created_countinteger
sessions_created_with_playbook_countinteger
sessions_created_with_search_countinteger
sessions_with_merged_prs_by_sizeobject
Session counts by size category.
sessions_with_merged_prs_countinteger

Errors

422
Unprocessable Entity Error