Organization usage API

The organization usage API returns the Average monthly active users figure shown on a Buildkite organization's Usage > Platform page. Use this endpoint to monitor active-user counts programmatically, for example, to track usage against a contracted user allowance.

Any organization member can use this endpoint. The API access token must include the read_organizations scope and grant access to the requested organization.

Get organization usage

curl -H "Authorization: Bearer $TOKEN" \
  "https://api.buildkite.com/v2/organizations/{org.slug}/usage"
{
  "active_users_count": 42
}

Required scope: read_organizations

Success response: 200 OK

Response fields

Field Type Description
Field active_users_count Type integer Description Average monthly active users for the current usage summary period, matching the organization's Usage page.

For a billing parent organization, the count includes activity from its linked billing child organizations. A user active in more than one linked organization is counted once per month.

Usage period

The usage summary period matches the period shown on the organization's Usage page:

  • Monthly subscriptions: The current billing period. The count is the number of distinct users active in that period.
  • Annual subscriptions: The current calendar month and the previous six calendar months, rather than the full annual billing period. The count is the average of each calendar month's distinct active users, rounded down.

Error responses

403 Forbidden The token does not have the read_organizations scope.
404 Not Found The organization does not exist, or the authenticated user or token cannot access it.
503 Service Unavailable Usage data is temporarily unavailable. Retry the request.