v56

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

List bypass requests for secret scanning for an org

List requests to bypass secret scanning push protection in an org.

Delegated bypass must be enabled on repositories in the org and the user must be a bypass reviewer to access this endpoint. Personal access tokens (classic) need the security_events scope to use this endpoint.

get/orgs/{org}/bypass-requests/secret-scanning

Path parameters

orgstring required

The organization name. The name is not case sensitive.

Query parameters

repository_namestring

The name of the repository to filter on.

reviewerstring

Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.

requesterstring

Filter bypass requests by the handle of the GitHub user who requested the bypass.

time_period'hour' | 'day' | 'week' | 'month'

The time period to filter by.

For example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).

request_status'completed' | 'cancelled' | 'approved' | 'expired' | 'deleted' | 'denied' | 'open' | 'all'

The status of the bypass request to filter on. When specified, only requests with this status will be returned.

per_pageinteger

The number of results per page (max 100). For more information, see "Using pagination in the REST API."

pageinteger

The page number of the results to fetch. For more information, see "Using pagination in the REST API."

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' | '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/secret-scanning/1",
    "html_url": "https://github.com/octo-org/smile/exemptions/1"
  }
]