GET
/orgs/{org}/copilot/content_exclusionGet Copilot content exclusion rules for an organization
Retrieves an organization's Copilot content exclusion path rules. Use org to identify the organization whose rules you want to inspect; the authenticated user must be an organization owner with an OAuth app token or classic personal access token authorized by the copilot or read:org scope. The response does not include comments, and duplicate keys are represented only by their final occurrence.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
orgstringrequired
The organization name whose Copilot content exclusion rules to retrieve. The name is not case sensitive.
200Returns an object mapping exclusion rule keys to arrays of file paths excluded from Copilot. Comments are not included, and when duplicate keys exist, only the final occurrence is returned.
401Returned when the request does not include valid authentication.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Returned when the authenticated user is not an organization owner or the token lacks the required `copilot` or `read:org` scope.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the specified organization cannot be found or accessed.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
500Returned when an internal server error occurs.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 401 is returned when the request lacks valid authentication. A 403 is returned when the authenticated user is not an organization owner or the token lacks the copilot or read:org scope, and a 404 is returned when org does not identify an accessible organization. A 500 indicates an internal server error.