{"meta":{"title":"REST API endpoints for enterprise access verification","intro":"Use the REST API to manage enterprise access verification configuration in your GitHub enterprise.","product":"REST API","breadcrumbs":[{"href":"/en/enterprise-cloud@latest/rest","title":"REST API"},{"href":"/en/enterprise-cloud@latest/rest/enterprise-admin","title":"Enterprise administration"},{"href":"/en/enterprise-cloud@latest/rest/enterprise-admin/enterprises","title":"Enterprise access verification"}],"documentType":"article"},"body":"# REST API endpoints for enterprise access verification\n\nUse the REST API to manage enterprise access verification configuration in your GitHub enterprise.\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## Disable access restrictions for an enterprise\n\n```\nPOST /enterprises/{enterprise}/access-restrictions/disable\n```\n\nDisable access restriction by proxy header using the network proxy owned by the enterprise.\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- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **400** - Forbidden\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/enterprises/ENTERPRISE/access-restrictions/disable\n```\n\n**Response schema (Status: 200):**\n\n* `message`: required, string\n* `header_name`: required, string\n* `header_value`: required, string\n\n## Enable access restrictions for an enterprise\n\n```\nPOST /enterprises/{enterprise}/access-restrictions/enable\n```\n\nEnable access restriction by proxy header using the network proxy owned by the enterprise.\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- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **400** - Forbidden\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/enterprises/ENTERPRISE/access-restrictions/enable\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Disable access restrictions for an enterprise](#disable-access-restrictions-for-an-enterprise)."}