---
title: "Get admin branch protection"
method: GET
path: "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"
tags: ["repos"]
---

# Get admin branch protection

`GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins`

Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.

## Path parameters

- `owner` string, required
- `repo` string, required
- `branch` string, required

## Response `200`

Response

- ProtectedBranchAdminEnforced — Protected Branch Admin Enforced
  - `url` string, uri, required
  - `enabled` boolean, required

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-2.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-2/versions/8ae6d0c8716e/schema)
