GET/orgs/{org}/copilot/content_exclusion

Get Copilot content exclusion rules for an organization

Retrieves the Copilot content exclusion rules configured for an organization. Use this endpoint to view the organization's path rules; organization owners can view these details. The response does not include comments, and duplicate keys are represented by their last occurrence.

1 parameter
orgstringrequired
The organization name. Matching is case-insensitive.

5 status codes
200Returns an object mapping content exclusion rule keys to arrays of excluded file paths. Comments are not included, and when keys are duplicated, only the last occurrence is returned.
401Returned when authentication is missing or invalid.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Returned when the authenticated user lacks permission or the required token scope to view the organization's Copilot content exclusion rules.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the organization or another required resource is not found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
500Returned when an internal error occurs.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 401 is returned when authentication is missing or invalid. A 403 is returned when the authenticated user is not an organization owner or the token lacks the copilot or read:org scope; a 404 is returned when the org path parameter does not identify an organization, and a 500 indicates an internal error.