Sample - GitHub REST API
POST/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts

Redeliver a repository webhook delivery

Triggers redelivery of a webhook delivery configured for a repository. Use owner, repo, hook_id, and delivery_id to identify the repository webhook and delivery to resend. Redelivery is accepted asynchronously, so a successful response confirms acceptance rather than completion.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

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 repository webhook, available in the `X-GitHub-Hook-ID` header of a webhook delivery.
delivery_idintegerrequired
The unique identifier of the webhook delivery to redeliver.

3 status codes
202Returns an accepted response with an object confirming that redelivery has been queued.
400Returned when the request is invalid or cannot be processed for the specified repository webhook delivery.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
422Returned when validation fails or the redelivery endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional

Error handling

A 400 is returned when the repository, webhook, or delivery identifiers are invalid or the request cannot be processed. A 422 is returned when validation fails or the endpoint has been spammed; avoid repeatedly submitting the same delivery_id.