Overview
GitHub has launched a new Content Exclusion REST API for GitHub Copilot, enabling programmatic management of content exclusion rules. This REST API is now available in public preview and provides administrators with granular control over what content Copilot can access across their organization or enterprise.
Key Capabilities
- Programmatic Management: Organizations and enterprises can now automate content exclusion rule management via API, eliminating manual configuration work
- Multi-level Support: The API supports both organization-level and enterprise-level exclusion rules, allowing consistent governance across multiple teams
- Standard Operations: Supports GET and SET operations for retrieving and updating exclusion configurations
- JSON Format: Built on standard JSON API design for easy integration with existing tools and workflows
What Developers Need to Know
API Access: The Content Exclusion REST API is available in public preview. Organizations can begin integrating it into their governance workflows immediately.
Documentation: Full API documentation is available in the GitHub REST API reference, with additional context on content exclusion concepts available in the Copilot documentation.
Use Cases: This API is particularly valuable for enterprises managing Copilot across multiple teams, enabling automated enforcement of content policies, integration with existing admin tools, and audit/compliance workflows.
Getting Started
Developers and administrators interested in using this API can reference the official API documentation and participate in the GitHub Community discussions for feedback and support.