1. An organization administrator wants to use the GitHub Copilot Metrics API to build an internal dashboard tracking weekly suggestion acceptance rates by team. Which statement correctly describes a requirement for accessing this API?
- A. The API requires a personal access token (PAT) with the `copilot` scope issued by an individual seat holder
- B. The API is accessible only via GitHub Actions and cannot be called from external systems
- C. The API requires authentication with a token that has the `manage_billing:copilot` or `read:org` scope, and the organization must have Copilot Business or Enterprise✓ Correct
- D. The API returns data in real time per-keystroke and requires a WebSocket connection
Explanation
The GitHub Copilot Metrics API (`/orgs/{org}/copilot/metrics`) requires the caller to authenticate with a token holding `manage_billing:copilot` (or at minimum `read:org` for some endpoints) and is available only to organizations on Copilot Business or Enterprise plans. Option A is incorrect — a `copilot` PAT scope does not exist; Copilot API access uses billing/org management scopes. Option B is incorrect — the API is a standard REST API accessible from any HTTP client, not restricted to GitHub Actions. Option D is incorrect — the Metrics API returns aggregated daily or summary statistics via REST (JSON over HTTPS), not real-time per-keystroke data over WebSockets.