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.

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