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

Gets the GitHub-managed Copilot customization document for an organization team. Returns 404 if the team has no customization document. Enterprise teams are not supported.

The authenticated user must be an organization owner or a team maintainer. For an organization team managed by an enterprise team or SCIM-backed identity provider group, the authenticated user must be an organization owner. Token permissions do not grant access to teams the authenticated user cannot administer.

OAuth app tokens and personal access tokens (classic) need the admin:org or read:org scope to use this endpoint. Fine-grained personal access tokens and GitHub App user access tokens need the organization's "Copilot agent settings" permission with read access. GitHub App installation access tokens are not supported.

Returns 422 if the stored customization document cannot be read.

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

Replaces the entire GitHub-managed Copilot customization document for an organization team, creating it on the first write. The request body is the customization document itself. Include every plugin assignment and marketplace you want to keep. Entries omitted from the request are removed from the stored document; this endpoint does not merge changes with existing customizations. Reading a document before replacing it does not prevent another edit between requests.

The authenticated user must be an organization owner or a team maintainer. For an organization team managed by an enterprise team or SCIM-backed identity provider group, the authenticated user must be an organization owner. Token permissions do not grant access to teams the authenticated user cannot administer.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. Fine-grained personal access tokens and GitHub App user access tokens need the organization's "Copilot agent settings" permission with write access. GitHub App installation access tokens are not supported.

Enterprise teams are not supported.

Returns 200 with the submitted document after a successful write, including the first write. Documents that fail validation return 422 with the reason. A concurrent edit can return 409.

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

Deletes the GitHub-managed Copilot customization document for an organization team. Enterprise teams are not supported. Returns 204 with no response body, including when the team has no customization document.

The authenticated user must be an organization owner or a team maintainer. For an organization team managed by an enterprise team or SCIM-backed identity provider group, the authenticated user must be an organization owner. Token permissions do not grant access to teams the authenticated user cannot administer.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint. Fine-grained personal access tokens and GitHub App user access tokens need the organization's "Copilot agent settings" permission with write access. GitHub App installation access tokens are not supported.

A concurrent edit can return 409.

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