---
title: "Get a repository push bypass request"
method: GET
path: "/repos/{owner}/{repo}/bypass-requests/push-rules/{bypass_request_number}"
tags: ["repos"]
---

# Get a repository push bypass request

`GET /repos/{owner}/{repo}/bypass-requests/push-rules/{bypass_request_number}`

Get information about a request to bypass push protection rules for a repository.

## Path parameters

- `owner` string, required
- `repo` string, required
- `bypass_request_number` integer, required

## Response `200`

Response

- PushRuleBypassRequest — A bypass request made by a user asking to be exempted from a push rule in this repository.
  - `id` integer — The unique identifier of the bypass request.
  - `number` integer — The number uniquely identifying the bypass request within its repository.
  - `repository` object — The repository the bypass request is for.
    - `id` integer, nullable — The ID of the repository the bypass request is for.
    - `name` string, nullable — The name of the repository the bypass request is for.
    - `full_name` string, nullable — The full name of the repository the bypass request is for.
  - `organization` object — The organization associated with the repository the bypass request is for.
    - `id` integer, nullable — The ID of the organization.
    - `name` string, nullable — The name of the organization.
  - `requester` object — The user who requested the bypass.
    - `actor_id` integer — The ID of the GitHub user who requested the bypass.
    - `actor_name` string — The name of the GitHub user who requested the bypass.
  - `request_type` string — The type of request.
  - `data` object[], nullable — Data describing the push rules that are being requested to be bypassed.
    - `ruleset_id` integer — The ID of the ruleset for the rules that were violated.
    - `ruleset_name` string — The name of the ruleset for the rules that were violated.
    - `total_violations` integer — The number of rule violations generated from the push associated with this request.
    - `rule_type` string — The type of rule that was violated.
  - `resource_identifier` string — The unique identifier for the request type of the bypass request. For example, a commit SHA.
  - `status` 'pending' | 'denied' | 'approved' | 'cancelled' | 'completed' | 'expired' | 'deleted' | 'open' — The status of the bypass request.
  - `requester_comment` string, nullable — The comment the requester provided when creating the bypass request.
  - `expires_at` string, date-time — The date and time the bypass request will expire.
  - `created_at` string, date-time — The date and time the bypass request was created.
  - `responses` BypassResponse[], nullable — The responses to the bypass request.
    - `id` integer — The ID of the response to the bypass request.
    - `reviewer` object — The user who reviewed the bypass request.
      - `actor_id` integer — The ID of the GitHub user who reviewed the bypass request.
      - `actor_name` string — The name of the GitHub user who reviewed the bypass request.
    - `status` 'approved' | 'denied' | 'dismissed' — The response status to the bypass request until dismissed.
    - `created_at` string, date-time — The date and time the response to the bypass request was created.
  - `url` string, uri
  - `html_url` string, uri — The URL to view the bypass request in a browser.

## Other responses

- `404` — Resource not found
- `500` — Internal Error

---

[API](https://skmtc.net/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.net/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/enterprise-cloud/revisions/daeba3129b5f/schema)
