Skip to content

Get Copilot organization usage metrics

GET
/orgs/{org}/copilot/metrics/reports/organization-28-day/latest

Use this endpoint to retrieve download links for the latest 28-day organization Copilot usage metrics report. The report provides comprehensive usage data for Copilot features across the organization.

The report contains aggregated metrics for the previous 28 days, including usage statistics for various Copilot features, user engagement data, and feature adoption metrics. Reports are generated daily and made available for download through signed URLs with a limited expiration time.

The response includes download links to the report files, along with the specific date range covered by the report. The report covers a complete 28-day period ending on the most recent day for which data has been processed.

Organization owners and authorized users with fine-grained “View Organization Copilot Metrics” permission can retrieve Copilot metrics reports for the organization. OAuth app tokens and personal access tokens (classic) need the read:org scope to use this endpoint.

For more information about organization metrics attribution, see How are metrics attributed across organizations.

API method documentation

org
required
string

The organization name. The name is not case sensitive.

Response

Media type application/json
Copilot Metrics 28 Day Report

Links to download the latest Copilot usage metrics report for an enterprise/organization.

object
download_links
required

The URLs to download the latest Copilot usage metrics report for the enterprise/organization.

Array<string>
report_start_day
required

The start date of the report period in YYYY-MM-DD format.

string format: date
report_end_day
required

The end date of the report period in YYYY-MM-DD format.

string format: date
Examples
Example default
{
"download_links": [
"https://example.com/copilot-usage-report-1.ndjson",
"https://example.com/copilot-usage-report-2.ndjson"
],
"report_start_day": "2025-07-01",
"report_end_day": "2025-07-28"
}

Forbidden

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Resource not found

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}

Internal Error

Media type application/json
Basic Error

Basic Error

object
message
string
documentation_url
string
url
string
status
string
Example generated
{
"message": "example",
"documentation_url": "example",
"url": "example",
"status": "example"
}