GET/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}

Get a webhook delivery for an organization webhook

Retrieves a delivery for a webhook configured in an organization. Use hook_id and delivery_id to identify the webhook and delivery whose details you need. You must be an organization owner, and OAuth app tokens and personal access tokens (classic) need the admin:org_hook scope.

3 parameters
orgstringrequired
The organization name; it is not case-sensitive.
hook_idintegerrequired
The unique identifier of the webhook. You can find it in the `X-GitHub-Hook-ID` header of a webhook delivery.
delivery_idintegerrequired
The unique identifier of the delivery to retrieve.

3 status codes
200Returns the webhook delivery details, including its event, delivery status, timestamps, target URL, and request and response data.
idintegerrequired
Unique identifier of the delivery.
guidstringrequired
Unique identifier for the event (shared with all deliveries for all webhooks that subscribe to this event).
delivered_atstringrequired
Time when the delivery was delivered.
redeliverybooleanrequired
Whether the delivery is a redelivery.
durationnumberrequired
Time spent delivering.
statusstringrequired
Description of the status of the attempted delivery
status_codeintegerrequired
Status code received when delivery was made.
eventstringrequired
The event that triggered the delivery.
actionstringrequired
The type of activity for the event that triggered the delivery.
installation_idintegerrequired
The id of the GitHub App installation associated with this event.
repository_idintegerrequired
The id of the repository associated with this event.
throttled_atstringoptional
Time when the webhook delivery was throttled.
urlstringoptional
The URL target of the delivery.
requestobjectrequired
responseobjectrequired
400Returned when the request is invalid.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
422Returned when validation fails or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional

Error handling

A 400 is returned when the request is invalid, and a 422 is returned when validation fails or the endpoint has been spammed. The org path parameter is case-insensitive; the hook_id and delivery_id path parameters must be integers. You must be an organization owner, and OAuth app tokens and personal access tokens (classic) need the admin:org_hook scope.