Skip to main content
Skip to content

REST API endpoints for Copilot team customizations

Use the REST API to manage Copilot customizations for a team.

About Copilot team customizations

A Copilot customization document defines the plugins and plugin marketplaces available to members of an organization team. GitHub stores one document for each team. You can create and manage the document on the team's Customize Copilot tab, or with these endpoints.

The customization document supports these top-level keys:

  • pluginAssignments: Plugins available to the team, keyed by PLUGIN@MARKETPLACE. Each plugin is enabled by default.
  • extraKnownMarketplaces: Additional plugin marketplaces available to the team, keyed by marketplace name.

The request and response examples below show a plugin and its marketplace.

Access requirements

The authenticated user must be an organization owner or a maintainer of the team. For an enterprise team assigned to the organization, including one synced with an identity provider group, the authenticated user must be an organization owner. The required scopes and permissions are in addition to these role requirements.

Token typeRead customizationsReplace or delete customizations
Personal access token (classic) or OAuth app tokenread:org or admin:org scopeadmin:org scope
Fine-grained personal access token or GitHub App user access tokenOrganization "Copilot agent settings" permission with read accessOrganization "Copilot agent settings" permission with write access

Creating and updating customizations

To create a team's customization document, send the complete document as the JSON request body to the PUT endpoint. Do not wrap it in another object. A successful request returns 200 OK with the submitted document.

The PUT endpoint replaces the entire document. It does not merge the request with existing customizations. Any plugin or marketplace omitted from the request is removed from the stored document.

To edit an existing document:

  1. Get the team's current customization document using the GET endpoint.
  2. Edit the document, retaining every plugin and marketplace you want to keep.
  3. Send the complete document to the PUT endpoint.

Reading a document before replacing it does not prevent another edit between requests.

The GET endpoint returns 404 Not Found when the team has no document. A 404 can also mean the team is not accessible to the authenticated user.

To remove the team's customization document, use the DELETE endpoint. It returns 204 No Content even if the document does not exist. This does not delete the team.

Invalid documents return 422 Unprocessable Entity with the reason. A concurrent edit can cause a write or delete to return 409 Conflict.

Get Copilot customizations for a team

Note

This endpoint is in public preview and is subject to change.

Gets the GitHub-managed Copilot customizations of a team.

The authenticated user must be an organization owner or a team maintainer. Teams that keep their customizations in a repository return 409.

OAuth app tokens and personal access tokens (classic) need the admin:org or read:org scope to use this endpoint.

Fine-grained access tokens for "Get Copilot customizations for a team"

This endpoint works with the following fine-grained token types:

The fine-grained token must have the following permission set:

  • "Copilot agent settings" organization permissions (read)

Parameters for "Get Copilot customizations for a team"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
org string Required

The organization name. The name is not case sensitive.

team_slug string Required

The slug of the team name.

HTTP response status codes for "Get Copilot customizations for a team"

Status codeDescription
200

OK

401

Requires authentication

403

Forbidden

404

Resource not found

409

Conflict

422

Validation failed, or the endpoint has been spammed.

500

Internal Error

503

Service unavailable

Code samples for "Get Copilot customizations for a team"

Request example

get/orgs/{org}/teams/{team_slug}/copilot/customizations
curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/orgs/ORG/teams/TEAM_SLUG/copilot/customizations

Response

Status: 200
{ "pluginAssignments": { "code-review@acme-marketplace": { "state": "defaultEnabled" } }, "extraKnownMarketplaces": { "acme-marketplace": { "source": { "source": "github", "repo": "acme/copilot-marketplace" } } } }

Set Copilot customizations for a team

Note

This endpoint is in public preview and is subject to change.

Replaces the GitHub-managed Copilot customizations of a team, creating them on the first write.

The authenticated user must be an organization owner or a team maintainer. Teams that keep their customizations in a repository return 409. Documents that fail validation return 422 with the reason.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

Fine-grained access tokens for "Set Copilot customizations for a team"

This endpoint works with the following fine-grained token types:

The fine-grained token must have the following permission set:

  • "Copilot agent settings" organization permissions (write)

Parameters for "Set Copilot customizations for a team"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
org string Required

The organization name. The name is not case sensitive.

team_slug string Required

The slug of the team name.

Body parameters
Name, Type, Description
pluginAssignments object

Plugins assigned to the team, keyed by PLUGIN@MARKETPLACE.

Name, Type, Description
key object

A user-defined key to represent an item in pluginAssignments.

Name, Type, Description
state string

The assignment state.

Value: defaultEnabled

extraKnownMarketplaces object

Additional plugin marketplaces available to the team, keyed by marketplace name.

Name, Type, Description
key object

A user-defined key to represent an item in extraKnownMarketplaces.

HTTP response status codes for "Set Copilot customizations for a team"

Status codeDescription
200

OK

401

Requires authentication

403

Forbidden

404

Resource not found

409

Conflict

422

Validation failed, or the endpoint has been spammed.

500

Internal Error

503

Service unavailable

Code samples for "Set Copilot customizations for a team"

Request example

put/orgs/{org}/teams/{team_slug}/copilot/customizations
curl -L \ -X PUT \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/orgs/ORG/teams/TEAM_SLUG/copilot/customizations \ -d '{"pluginAssignments":{"code-review@acme-marketplace":{"state":"defaultEnabled"}},"extraKnownMarketplaces":{"acme-marketplace":{"source":{"source":"github","repo":"acme/copilot-marketplace"}}}}'

Response

Status: 200
{ "pluginAssignments": { "code-review@acme-marketplace": { "state": "defaultEnabled" } }, "extraKnownMarketplaces": { "acme-marketplace": { "source": { "source": "github", "repo": "acme/copilot-marketplace" } } } }

Delete Copilot customizations for a team

Note

This endpoint is in public preview and is subject to change.

Deletes the GitHub-managed Copilot customizations of a team. Deleting customizations that don't exist succeeds.

The authenticated user must be an organization owner or a team maintainer. Teams that keep their customizations in a repository return 409.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

Fine-grained access tokens for "Delete Copilot customizations for a team"

This endpoint works with the following fine-grained token types:

The fine-grained token must have the following permission set:

  • "Copilot agent settings" organization permissions (write)

Parameters for "Delete Copilot customizations for a team"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
org string Required

The organization name. The name is not case sensitive.

team_slug string Required

The slug of the team name.

HTTP response status codes for "Delete Copilot customizations for a team"

Status codeDescription
204

No Content

401

Requires authentication

403

Forbidden

404

Resource not found

409

Conflict

422

Validation failed, or the endpoint has been spammed.

500

Internal Error

503

Service unavailable

Code samples for "Delete Copilot customizations for a team"

Request example

delete/orgs/{org}/teams/{team_slug}/copilot/customizations
curl -L \ -X DELETE \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "X-GitHub-Api-Version: 2026-03-10" \ https://api.github.com/orgs/ORG/teams/TEAM_SLUG/copilot/customizations

Response

Status: 204