# Github Copilot - Enterprise

Here are the steps to enable Copilot Metrics API access and generate a GitHub Classic token with the necessary permissions:

#### **Steps to Enable Copilot Metrics API Access**

1. **Go to GitHub Enterprise Settings**:
   * Navigate to the following URL in your browser:\
     `https://github.com/enterprises/{name}/settings/copilot`
   * Replace `{name}` with your organization's name on GitHub.
2. **Enable Copilot Metrics API Access**:
   * Look for the option **"Enable access to the Copilot Metrics API"** under the Copilot settings.
   * Toggle the setting to **ON**.
3. **Save Settings**:
   * After enabling the access, make sure to click **Save settings** to apply the changes.

#### **Steps to Generate a Classic Token with Copilot Access**

1. **Navigate to GitHub Settings**:
   * In the upper-right corner of any page on GitHub, click your **profile photo**.
   * In the dropdown menu, click **Settings**.
2. **Go to Developer Settings**:
   * In the left sidebar, click **Developer settings**.
3. **Generate a Personal Access Token (Classic)**:
   * In the left sidebar, click **Personal access tokens**.
   * Then click on **Tokens (classic)**.
   * Click **Generate new token** and select **Generate new token (classic)**.
4. **Fill Out Token Information**:
   * In the **"Note"** field, provide a descriptive name for the token, such as **Hivel Copilot**.
   * Set an **expiration date** for the token, if needed.
   * Select the required **scopes/permissions** for the token, including:
     * **Under Copilot**:
       * `manage_billing:copilot`
     * **Under Admin Enterprise**:
       * `manage_billing:enterprise`
       * `read:enterprise`
     * **Under Admin Org**:
       * `read:org`
       * `read:user`
5. **Generate the Token**:
   * After selecting the required scopes, click **Generate token** and copy.
6. **Visit Hivel Application:**
   * Under Setting > Integrations > AI Adoption

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FwPshwAKcktVcYcJKVOgS%2FScreenshot%202026-02-10%20at%204.25.30%E2%80%AFPM.png?alt=media&#x26;token=8659c096-f794-489c-a492-ac1cc3e64523" alt="" width="375"><figcaption></figcaption></figure>

* Click on **Connect** and select the **Github Copilot Plan** as **Enterprise**:

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2Fz5cBsApi0Ob1pwTOilHx%2Fimage.png?alt=media&#x26;token=ce25e5ea-902b-428f-bd62-9c8c99a29c4b" alt="" width="375"><figcaption></figcaption></figure>

* Paste the copied **PAT** and **Enterprise Slug**, verify **GitHub Admin** access and click on **Continue**

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2F8fs1BNbBGo5JvgWEBEf8%2FScreenshot%202026-02-10%20at%204.34.47%E2%80%AFPM.png?alt=media&#x26;token=a42ec66a-aac2-42ae-91f1-5ea4817904db" alt="" width="375"><figcaption></figcaption></figure>

* Once the integration is successful you can see the card update as below:

<figure><img src="https://3057781534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5KAIOUWph0JLSgQqbzyT%2Fuploads%2FZCs68GBQ0t4mn51655Zw%2Fimage%20(6).png?alt=media&#x26;token=fac0c4e7-3834-4392-8b22-d40880137684" alt="" width="375"><figcaption></figcaption></figure>

Data will complete sync within 24 hours for past 90 days data.
