← Back
GitHub
GitHub launches Copilot Content Exclusion REST API in public preview

New Content Exclusion REST API

GitHub has introduced a new REST API for managing Copilot content exclusion rules, now available in public preview. This JSON-based API enables organization and enterprise administrators to programmatically control which content is excluded from GitHub Copilot, automating what was previously a manual process.

Key Capabilities

The API supports essential operations for content exclusion governance:

  • GET operations to retrieve current exclusion rules at the organization and enterprise levels
  • SET operations to define and update content exclusion policies
  • Scope management at both organization and enterprise tiers
  • RESTful endpoints aligned with GitHub's standard API design

For Developers and Admins

Organization and enterprise administrators can now integrate content exclusion management into their existing automation workflows and governance tools. This API simplifies compliance and security practices by enabling programmatic policy enforcement at scale, rather than relying on manual configuration through the UI.

Getting started: Review the API documentation and content exclusion concepts guide to understand available endpoints and implementation patterns. Feedback is welcome in the GitHub Community discussions.