v1

latestOpenAPI 3.1.02026-07-26269227514.8 KB
metrics

Get Organization Usage Metrics

Get aggregated usage metrics for the enterprise account.

Returns counts of sessions, searches, and PRs (opened, closed, merged) within the specified time range.

get/v3/enterprise/organizations/{org_id}/metrics/usage

Path parameters

org_idstring required
Example:org-abc123def456

Organization ID (prefix: org-)

Query parameters

time_beforeinteger nullable
time_afterinteger nullable

Response

Successful Response

prs_created_countinteger required
prs_merged_countinteger required
searches_countinteger required
sessions_countinteger required