http
POST /webhooks/{ingress_id}Accept a delivery from an external sender at the public URL of a webhook, authenticated by the webhook secret and deduplicated by an idempotency key; returns the webhook event that stores the delivery.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
ingress_id | path | Yes | The public id in the webhook URL (ingress_id on the webhook). An unknown id is not found. |
secret | query | Webhook secret for native GitHub repository webhooks, which cannot send custom headers. | |
x-veryfront-webhook-secret | header | Authenticate with the X-Veryfront-Webhook-Secret header: the secret returned when the webhook was created. Required unless secret is sent as a query parameter. | |
idempotency-key | header | Optional Idempotency-Key header for duplicate delivery detection, 1-255 characters, scoped to the webhook (authenticate with the X-Veryfront-Webhook-Secret header). GitHub webhooks: when this header is absent, the X-GitHub-Delivery header GitHub sends is used as the idempotency key. | |
x-veryfront-source-event-id | header | Optional X-Veryfront-Source-Event-Id header: the sender's own id for this event, 1-255 characters, scoped to the webhook. It detects duplicates independently of the idempotency key: a delivery matching a stored event on either one returns that event with status 200. GitHub webhooks: when this header is absent, the X-GitHub-Delivery header is used as the source event id. |
Responses
| Status | Description |
|---|---|
| 200 | Duplicate webhook delivery accepted |
| 202 | Webhook accepted |
| 400 | invalid_input: missing secret, invalid body or headers, or the webhook is not enabled |
| 404 | not_found: unknown ingress_id or wrong secret |
| 409 | conflict: the idempotency key and source event id match different webhook events |
| 412 | conflict: project automation is on hold |
| 413 | limit_exceeded: payload over 64 KiB |
| 429 | limit_exceeded: too many requests from this IP address |
| 500 | internal |