v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
copilot

Add teams to the Copilot subscription for an organization

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

Purchases a GitHub Copilot seat for all users within each specified team. The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "About billing for GitHub Copilot in your organization."

Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy. For more information about setting up a Copilot subscription, see "Subscribing to Copilot for your organization." For more information about setting a suggestion matching policy, see "Managing policies for Copilot in your organization."

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:org scopes to use this endpoint.

post/orgs/{org}/copilot/billing/selected_teams

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Request body

selected_teamsstring[] required

List of team names within the organization to which to grant access to GitHub Copilot.

Response

OK

seats_createdinteger required