v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
repos

Get a repository push bypass request

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

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

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

bypass_request_numberinteger required

The number that identifies the bypass request within the context of the given repository.

Response

Response

idinteger

The unique identifier of the bypass request.

numberinteger

The number uniquely identifying the bypass request within its repository.

request_typestring

The type of request.

resource_identifierstring

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_commentstring nullable

The comment the requester provided when creating the bypass request.

expires_atstring date-time

The date and time the bypass request will expire.

created_atstring date-time

The date and time the bypass request was created.

urlstring uri
html_urlstring uri

The URL to view the bypass request in a browser.

Example response

{
  "resource_identifier": "827efc6d56897b048c772eb4087f854f46256132",
  "url": "https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/1",
  "html_url": "https://github.com/octo-org/smile/exemptions/1"
}