v56

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

List alert dismissal requests for secret scanning for an enterprise

Lists requests to dismiss secret scanning alerts in an enterprise.

The authenticated user must be an enterprise owner or an enterprise security manager to access this endpoint. Personal access tokens (classic) need the security_events scope to use this endpoint.

get/enterprises/{enterprise}/dismissal-requests/secret-scanning

Path parameters

enterprisestring required

The slug version of the enterprise name.

Query parameters

organization_namestring

The name of the organization 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' | 'denied' | 'open' | 'all'

The status of the dismissal 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

A list of the alert dismissal requests.

idinteger

The unique identifier of the dismissal request.

numberinteger

The number uniquely identifying the dismissal request within its repository.

request_typestring

The type of request.

resource_identifierstring

The number of the secret scanning alert that was detected.

status'pending' | 'denied' | 'approved' | 'cancelled' | 'expired'

The status of the dismissal request.

requester_commentstring nullable

The comment the requester provided when creating the dismissal request.

expires_atstring date-time

The date and time the dismissal request will expire.

created_atstring date-time

The date and time the dismissal request was created.

urlstring uri
html_urlstring uri

The URL to view the dismissal request in a browser.

Example response

[
  {
    "url": "https://api.github.com/repos/octo-org/smile/dismissal-requests/secret-scanning/1",
    "html_url": "https://github.com/octo-org/smile/security/secret-scanning/17"
  }
]