Skip to navigation

Get 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.

Authentication

AuthorizationBearer

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

Query parameters

time_beforeinteger or nullOptional
time_afterinteger or nullOptional

Response

Successful Response
prs_created_countinteger
prs_merged_countinteger
searches_countinteger
sessions_countinteger

Errors

422
Unprocessable Entity Error