{"meta":{"title":"Puntos de conexión de la API REST para la gestión de repositorios del agente en la nube de Copilot","intro":"Use la API REST para administrar la configuración de nivel de repositorio para Copilot cloud agent.","product":"REST API","breadcrumbs":[{"href":"/es/rest","title":"REST API"},{"href":"/es/rest/copilot","title":"Copilot"},{"href":"/es/rest/copilot/copilot-cloud-agent-management","title":"Administración de repositorios del agente en la nube"}],"documentType":"article"},"body":"# Puntos de conexión de la API REST para la gestión de repositorios del agente en la nube de Copilot\n\nUse la API REST para administrar la configuración de nivel de repositorio para Copilot cloud agent.\n\n> [!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.\n\n## Get Copilot cloud agent configuration for a repository\n\n```\nGET /repos/{owner}/{repo}/copilot/cloud-agent/configuration\n```\n\nNote\n\nThis endpoint is in public preview and is subject to change.\n\nGets the Copilot cloud agent configuration for a repository, including MCP server\nconfiguration, enabled review tools, Actions workflow approval settings, and firewall\nconfiguration.\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **401** - Requires authentication\n\n- **403** - Forbidden\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example 1: Status Code 200\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/repos/OWNER/REPO/copilot/cloud-agent/configuration\n```\n\n**Response schema (Status: 200):**\n\n* `mcp_configuration`: required, object or null, additional properties allowed\n* `enabled_tools`: required, object:\n  * `codeql`: required, boolean\n  * `copilot_code_review`: required, boolean\n  * `secret_scanning`: required, boolean\n  * `dependency_vulnerability_checks`: required, boolean\n* `require_actions_workflow_approval`: required, boolean\n* `is_firewall_enabled`: required, boolean\n* `is_firewall_recommended_allowlist_enabled`: required, boolean\n* `custom_allowlist`: required, array of string\n* `is_automations_enabled`: required, boolean\n* `require_write_access_for_automation_triggers`: required, boolean\n\n#### Example 2: Status Code 200\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/repos/OWNER/REPO/copilot/cloud-agent/configuration\n```\n\n**Response schema (Status: 200):**\n\n* `mcp_configuration`: required, object or null, additional properties allowed\n* `enabled_tools`: required, object:\n  * `codeql`: required, boolean\n  * `copilot_code_review`: required, boolean\n  * `secret_scanning`: required, boolean\n  * `dependency_vulnerability_checks`: required, boolean\n* `require_actions_workflow_approval`: required, boolean\n* `is_firewall_enabled`: required, boolean\n* `is_firewall_recommended_allowlist_enabled`: required, boolean\n* `custom_allowlist`: required, array of string\n* `is_automations_enabled`: required, boolean\n* `require_write_access_for_automation_triggers`: required, boolean"}