Skip to main content
GET
/
v2
/
enterprise
/
metrics
/
usage
Enterprise Usage Metrics Endpoint
curl --request GET \
  --url https://api.devin.ai/v2/enterprise/metrics/usage \
  --header 'Authorization: Bearer <token>'
{
  "prs_closed": 123,
  "prs_merged": 123,
  "prs_opened": 123,
  "searches_count": 123,
  "sessions_count": 123
}
Requires an enterprise admin personal API key. Returns usage metrics including session count, search count, and PR counts for your enterprise within the specified time period.
Only the GitHub app integration provides properly enriched statistics around PRs and PR status.

Authorizations

Authorization
string
header
required

Personal API Key (apk_user_*) for Enterprise Admins only

Query Parameters

start_date
string<date-time> | null
end_date
string<date-time> | null
start
string<date-time> | null
end
string<date-time> | null
org_ids
string[] | null
user_ids
string[] | null

Response

Successful Response

prs_closed
integer
required
prs_merged
integer
required
prs_opened
integer
required
searches_count
integer
required
sessions_count
integer
required