Get Session Metrics
Get aggregated session metrics for the enterprise account.
Optionally filter by playbook_id to get metrics for sessions created with a specific playbook.
Authentication
AuthorizationBearer
Personal API Key (apk_user_) or Service API Key (apk_)
Query parameters
user_ids
service_user_ids
time_before
time_after
org_ids
playbook_id
Response
Successful Response
avg_acus_per_session
sessions_created_by_origin
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_size
Session counts by size category.
sessions_created_count
sessions_created_with_playbook_count
sessions_created_with_search_count
sessions_with_merged_prs_by_size
Session counts by size category.
sessions_with_merged_prs_count
Errors
422
Unprocessable Entity Error