Github Copilot
GitHub Copilot Integration Guide
Follow these steps to enable Copilot Metrics API access and generate a Personal Access Token (PAT) for integration.
Prerequisites - Before You Begin
You must be an organization owner (or enterprise owner/billing manager if your org is part of an enterprise).
Copilot Metrics API access policy must be enabled for your organization.
If it is not enabled, API calls for Copilot metrics will return a
422
error. Refer here
Step 1: Enable Copilot Metrics API Access
Navigate to your organization or enterprise settings.
Locate the Copilot or Copilot Metrics policy.
Ensure that API access is set to Enabled (or left as No policy).
Step 2: Generate a Personal Access Token (Classic)
Log into GitHub with your admin account.
Click your profile avatar (upper-right) → Settings.
In the left sidebar, open Developer settings → Tokens (classic).
Click Generate new token (classic).
Add a descriptive note (e.g., “Typo Copilot Metrics Access”).
Set an expiration (recommended for security).
Select the following scopes:
manage_billing:copilot
→ required for Copilot metrics accessread:org
→ required to read organization members
Click Generate token.
Copy and securely store the token immediately - you won’t be able to see it again.
Last updated