GET/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}

Get a delivery for a repository webhook

Retrieves a delivery record for a webhook configured in a repository. Use the repository owner, repository name, hook ID, and delivery ID to inspect the delivery status, event metadata, and request and response details.

4 parameters
ownerstringrequired
The account owner of the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name 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 webhook delivery to retrieve.

3 status codes
200Returns the delivery record, including its status, status code, event and action, delivery time, request details, and response details.
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. A 422 is returned when validation fails or the endpoint has been spammed. The owner path parameter and repo path parameter must identify the repository, while the hook_id path parameter and delivery_id path parameter must identify the webhook and delivery.