{"meta":{"title":"Points de terminaison d’API REST pour les métriques d’utilisation Copilot","intro":"Utilisez l’API REST pour afficher Copilot les métriques d’utilisation.","product":"API REST","breadcrumbs":[{"href":"/fr/enterprise-cloud@latest/rest","title":"API REST"},{"href":"/fr/enterprise-cloud@latest/rest/copilot","title":"Copilot"},{"href":"/fr/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics","title":"Métriques d’utilisation Copilot"}],"documentType":"article"},"body":"# Points de terminaison d’API REST pour les métriques d’utilisation Copilot\n\nUtilisez l’API REST pour afficher Copilot les métriques d’utilisation.\n\nPour activer ces points de terminaison, la stratégie «Copilot Métriques d’utilisation » doit être définie sur **Activé partout** pour l’entreprise. Consultez « [Gestion des stratégies et fonctionnalités pour GitHub Copilot dans votre entreprise](/fr/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-enterprise-policies#defining-policies-for-your-enterprise) ».\n\nPour plus d’informations sur les métriques retournées par ces points de terminaison, consultez [GitHub métriques d’utilisation de Copilot](/fr/enterprise-cloud@latest/copilot/reference/copilot-usage-metrics).\n\n> \\[!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.\n\n## Get Copilot enterprise usage metrics for a specific day\n\n```\nGET /enterprises/{enterprise}/copilot/metrics/reports/enterprise-1-day\n```\n\nUse this endpoint to retrieve download links for the Copilot enterprise usage metrics report for a specific day. The report provides comprehensive usage data for Copilot features across the enterprise.\nThe report contains aggregated metrics for the specified day, 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.\nThe response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed. Reports are available starting from October 10, 2025, and historical data can be accessed for up to 1 year from the current date.\nEnterprise owners, billing managers, and authorized users with fine-grained \"View Enterprise Copilot Metrics\" permission can retrieve Copilot metrics reports for the enterprise. OAuth app tokens and personal access tokens (classic) need either the manage\\_billing:copilot or read:enterprise scopes to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n* **`day`** (string) (required)\n  The day to request data for, in YYYY-MM-DD format.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/copilot/metrics/reports/enterprise-1-day\n```\n\n**Response schema (Status: 200):**\n\n* `download_links`: required, array of string, format: uri\n* `report_day`: required, string, format: date\n\n## Get Copilot enterprise usage metrics\n\n```\nGET /enterprises/{enterprise}/copilot/metrics/reports/enterprise-28-day/latest\n```\n\nUse this endpoint to retrieve download links for the latest 28-day enterprise Copilot usage metrics report. The report provides comprehensive usage data for Copilot features across the enterprise.\nThe 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.\nThe 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.\nEnterprise owners, billing managers, and authorized users with fine-grained \"View Enterprise Copilot Metrics\" permission can retrieve Copilot metrics reports for the enterprise. OAuth app tokens and personal access tokens (classic) need either the manage\\_billing:copilot or read:enterprise scopes to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/copilot/metrics/reports/enterprise-28-day/latest\n```\n\n**Response schema (Status: 200):**\n\n* `download_links`: required, array of string, format: uri\n* `report_start_day`: required, string, format: date\n* `report_end_day`: required, string, format: date\n\n## Get Copilot enterprise user-teams report for a specific day\n\n```\nGET /enterprises/{enterprise}/copilot/metrics/reports/user-teams-1-day\n```\n\nUse this endpoint to retrieve download links for the Copilot enterprise user-teams report for a specific day. The report provides user-team join data for Copilot across the enterprise, with one entry per user-team pair.\nThe report contains user-team membership data for the specified day, enabling consumers to join with the existing enterprise user reports to compute team-level usage metrics. Reports are generated daily and made available for download through signed URLs with a limited expiration time.\nThe response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed.\nEnterprise owners, billing managers, and authorized users with fine-grained \"View Enterprise Copilot Metrics\" permission can retrieve Copilot metrics reports for the enterprise. OAuth app tokens and personal access tokens (classic) need either the manage\\_billing:copilot or read:enterprise scopes to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n* **`day`** (string) (required)\n  The day to request data for, in YYYY-MM-DD format.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/copilot/metrics/reports/user-teams-1-day\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get Copilot enterprise usage metrics for a specific day](#get-copilot-enterprise-usage-metrics-for-a-specific-day).\n\n## Get Copilot users usage metrics for a specific day\n\n```\nGET /enterprises/{enterprise}/copilot/metrics/reports/users-1-day\n```\n\nUse this endpoint to retrieve download links for the Copilot user usage metrics report for a specific day. The report provides detailed user-level usage data and engagement metrics for Copilot features across the enterprise.\nThe report contains user-specific metrics for the specified day, including individual user engagement statistics, feature usage patterns, and adoption metrics broken down by user. This report allows authorized users to analyze Copilot usage at the user level to understand adoption patterns and identify opportunities for increased engagement.\nReports 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 of the report. The report covers a complete day for which data has been processed. Reports are available starting from October 10, 2025, and historical data can be accessed for up to 1 year from the current date.\nEnterprise owners, billing managers, and authorized users with fine-grained \"View Enterprise Copilot Metrics\" permission can retrieve Copilot metrics reports for the enterprise. OAuth app tokens and personal access tokens (classic) need either the manage\\_billing:copilot or read:enterprise scopes to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n* **`day`** (string) (required)\n  The day to request data for, in YYYY-MM-DD format.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/copilot/metrics/reports/users-1-day\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get Copilot enterprise usage metrics for a specific day](#get-copilot-enterprise-usage-metrics-for-a-specific-day).\n\n## Get Copilot users usage metrics\n\n```\nGET /enterprises/{enterprise}/copilot/metrics/reports/users-28-day/latest\n```\n\nUse this endpoint to retrieve download links for the latest 28-day enterprise users Copilot usage metrics report. The report provides detailed user-level usage data and engagement metrics for Copilot features across the enterprise.\nThe report contains user-specific metrics for the previous 28 days, including individual user engagement statistics, feature usage patterns, and adoption metrics broken down by user. This report allows authorized users to analyze Copilot usage at the user level to understand adoption patterns and identify opportunities for increased engagement.\nReports 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.\nEnterprise owners, billing managers, and authorized users with fine-grained \"View Enterprise Copilot Metrics\" permission can retrieve Copilot metrics reports for the enterprise. OAuth app tokens and personal access tokens (classic) need either the manage\\_billing:copilot or read:enterprise scopes to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/copilot/metrics/reports/users-28-day/latest\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get Copilot enterprise usage metrics](#get-copilot-enterprise-usage-metrics).\n\n## Get Copilot organization usage metrics for a specific day\n\n```\nGET /orgs/{org}/copilot/metrics/reports/organization-1-day\n```\n\nUse this endpoint to retrieve download links for the Copilot organization usage metrics report for a specific day. The report provides comprehensive usage data for Copilot features across the organization.\nThe report contains aggregated metrics for the specified day, 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.\nThe response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed.\nOrganization 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.\nFor more information about organization metrics attribution, see How are metrics attributed across organizations.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n* **`day`** (string) (required)\n  The day to request data for, in YYYY-MM-DD format.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **204** - A header with no content is returned.\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/copilot/metrics/reports/organization-1-day\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get Copilot enterprise usage metrics for a specific day](#get-copilot-enterprise-usage-metrics-for-a-specific-day).\n\n## Get Copilot organization usage metrics\n\n```\nGET /orgs/{org}/copilot/metrics/reports/organization-28-day/latest\n```\n\nUse 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.\nThe 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.\nThe 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.\nOrganization 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.\nFor more information about organization metrics attribution, see How are metrics attributed across organizations.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/copilot/metrics/reports/organization-28-day/latest\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get Copilot enterprise usage metrics](#get-copilot-enterprise-usage-metrics).\n\n## Get Copilot organization user-teams report for a specific day\n\n```\nGET /orgs/{org}/copilot/metrics/reports/user-teams-1-day\n```\n\nUse this endpoint to retrieve download links for the Copilot organization user-teams report for a specific day. The report provides user-team join data for Copilot across the organization, with one entry per user-team pair.\nThe report contains user-team membership data for the specified day, enabling consumers to join with the existing organization user reports to compute team-level usage metrics. Reports are generated daily and made available for download through signed URLs with a limited expiration time.\nThe response includes download links to the report files, along with the specific date of the report. The report covers a complete day for which data has been processed.\nOrganization 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.\nFor more information about organization metrics attribution, see How are metrics attributed across organizations.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n* **`day`** (string) (required)\n  The day to request data for, in YYYY-MM-DD format.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **204** - A header with no content is returned.\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/copilot/metrics/reports/user-teams-1-day\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get Copilot enterprise usage metrics for a specific day](#get-copilot-enterprise-usage-metrics-for-a-specific-day).\n\n## Get Copilot organization users usage metrics for a specific day\n\n```\nGET /orgs/{org}/copilot/metrics/reports/users-1-day\n```\n\nUse this endpoint to retrieve download links for the Copilot organization user usage metrics report for a specific day. The report provides detailed user-level usage data and engagement metrics for Copilot features across the organization.\nThe report contains user-specific metrics for the specified day, including individual user engagement statistics, feature usage patterns, and adoption metrics broken down by user. This report allows authorized users to analyze Copilot usage at the user level to understand adoption patterns and identify opportunities for increased engagement.\nReports 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 of the report. The report covers a complete day for which data has been processed.\nOrganization 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.\nFor more information about organization metrics attribution, see How are metrics attributed across organizations.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n* **`day`** (string) (required)\n  The day to request data for, in YYYY-MM-DD format.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **204** - A header with no content is returned.\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/copilot/metrics/reports/users-1-day\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get Copilot enterprise usage metrics for a specific day](#get-copilot-enterprise-usage-metrics-for-a-specific-day).\n\n## Get Copilot organization users usage metrics\n\n```\nGET /orgs/{org}/copilot/metrics/reports/users-28-day/latest\n```\n\nUse this endpoint to retrieve download links for the latest 28-day organization users Copilot usage metrics report. The report provides detailed user-level usage data and engagement metrics for Copilot features across the organization.\nThe report contains user-specific metrics for the previous 28 days, including individual user engagement statistics, feature usage patterns, and adoption metrics broken down by user. This report allows authorized users to analyze Copilot usage at the user level to understand adoption patterns and identify opportunities for increased engagement.\nReports 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.\nOrganization 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.\nFor more information about organization metrics attribution, see How are metrics attributed across organizations.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n### HTTP response status codes\n\n* **200** - OK\n\n* **403** - Forbidden\n\n* **404** - Resource not found\n\n* **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/copilot/metrics/reports/users-28-day/latest\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get Copilot enterprise usage metrics](#get-copilot-enterprise-usage-metrics)."}