createWebhookDelivery
Where a provider sends a webhook's events, at the URL the repo's subscription gives it; a person or an agent never calls it. The extension's handler checks the request with the webhook's secret, then answers the provider itself or accepts the event as a delivery, which runs the webhook's tool on main.
POST
/hooks/{repo_id}/{webhook_id}Path parameters
Request body JSON required
Request body
X-WWW-FORM-URLENCODEDstringRequest body
PLAINstringRequest body
XMLstringRequest body
OCTET-STREAMstringRequest body
XMLstringReturns
202
ExtensionWebhookDelivery
JSON
400
InvalidRequest
402
ComputeLimitReached
404
WebhookSubscriptionNotFound | ExtensionWebhookNotFound | RepoNotFound
JSON
One of the following:
- WebhookSubscriptionNotFoundEncoded
- ExtensionWebhookNotFoundEncoded
- RepoNotFoundEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
500
ExtensionWebhookRequestHandlerFailed | RepoFailure | OrgFailure
JSON
One of the following:
- ExtensionWebhookRequestHandlerFailedEncoded
- RepoFailureEncoded
- OrgFailureEncoded
503
ExtensionWebhookUnavailable | RepoBusy | RateLimitUnavailable
JSON
One of the following:
- ExtensionWebhookUnavailableEncoded
- RepoBusyEncoded
- RateLimitUnavailableEncoded