---
title: "Add users to the Copilot subscription for an enterprise"
method: POST
path: "/enterprises/{enterprise}/copilot/billing/selected_users"
tags: ["copilot"]
---

# Add users to the Copilot subscription for an enterprise

`POST /enterprises/{enterprise}/copilot/billing/selected_users`

> [!NOTE]
> This endpoint is in public preview and is subject to change.

Purchases a GitHub Copilot seat for each user specified.
The enterprise will be billed accordingly.

Only enterprise owners can purchase Copilot seats for their enterprise members.

The response contains the total number of new seats that were created and existing seats that were refreshed.

OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:enterprise` scopes to use this endpoint.

## Path parameters

- `enterprise` string, required

## Request body

- object
  - `selected_usernames` string[], required — The usernames of the enterprise members to be granted access to GitHub Copilot.

## Response `201`

OK

- object — The total number of seats created for the specified user(s).
  - `seats_created` integer, required

## Other responses

- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `422` — Copilot is not enabled for this enterprise, billing has not been set up for this enterprise, a public code suggestions policy has not been set for this enterprise, or the enterprise's Copilot access setting is set to enable Copilot for all users or is unconfigured.
- `500` — Internal Error

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
