Built In reports

Pre-built reports that surface metrics from Swarmia. Each report endpoint returns rows with a fixed set of metrics, a schema describing its properties, and an optional summary row that aggregates across all rows.

Organization AI assistant overview

get

Overview of AI assistant usage in the organization.

Supported revisions: 1 (latest is equivalent).

Authorizations
AuthorizationstringRequired

API token passed as Authorization: Bearer <token>. The token must have the entityQuery scope enabled. Tokens can be provisioned at https://app.swarmia.com/settings/api-tokens.

Query parameters
outputstring · enumOptional

Response format.

Default: jsonPossible values:
revisionstringRequired

Report revision to serve. Use latest to request the highest supported revision for this report. The served revision is echoed in the X-Swarmia-Report-Revision response header.

The deprecated version query parameter is accepted as an alias.

Example: 1
timeframe.startstring · dateRequired

Start of the reporting period (inclusive).

Example: 2026-01-01
timeframe.endstring · dateRequired

End of the reporting period (inclusive).

Example: 2026-02-01
timezonestringOptional

IANA timezone used to interpret the date-only timeframe.start and timeframe.end values and for time bucketing. Defaults to UTC.

Default: UTCExample: America/New_York
teamIdstringOptional

Comma-separated team UUIDs. Only these teams are included. Use either this or parentTeamId, not both. Omit both to return all teams.

Example: 4d9361ab-3217-4690-957e-ca69abe9ca07,972cedde-3104-454a-a048-f27f43539442
parentTeamIdstringOptional

Comma-separated parent-team UUIDs. Returns children of these teams. Use the literal value null (or an empty value) to select only top-level teams (teams with no parent). Use either this or teamId, not both. Omit both to return all teams.

Example: null
activeContributorsOnlybooleanOptional

When true (default), only count team members who opened at least one PR during the time period. When false, count all team members.

Default: true
aiAssistantsstringOptional

Comma-separated list of AI assistants to include. Omit to include all.

Example: GithubCopilot,Cursor,ClaudeCode
Responses
200

Successful response.

get
/reports/ai/adoption/users-and-licenses

Last updated

Was this helpful?