copilot
Get custom agents for an enterprise
Gets the list of all custom agents defined in the /agents/*.md files in the .github-private repository for the enterprise.
If no source repository has been configured, returns null for custom_agents.
Enterprise owners with read access to AI Controls can use this endpoint.
OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
get/enterprises/{enterprise}/copilot/custom-agents
Path parameters
enterprisestring required
The slug version of the enterprise name.
Query parameters
per_pageinteger
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
pageinteger
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Response
Success