PigeonDocs

Webhooks

Register, inspect, rotate and receive signed webhook deliveries.

5 operationshttps://api.sendtopigeon.com
POST/v1/webhooks#

Register or replace a webhook

Register a public HTTPS endpoint for a connection. Omit connection to use the caller's connection. Verify the signature on the raw body and deduplicate by webhook-id. A feed_changed event is a nudge to pull the feed.

registerWebhookOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Request body required

application/jsonobjectno extra fields
  • connectionstring

    Connection identifier.

  • urlstring · urirequired
    max length 2048
  • eventsarray of stringrequired
    min items 1max items 2

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyobject
  • connectionstringrequired

    Connection identifier.

  • secretstringrequired

    Signing secret. Store securely. It is returned only on registration or rotation.

    pattern ^whsec_
curl -X POST "https://api.sendtopigeon.com/v1/webhooks" \
  -H "Authorization: Bearer $PIGEON_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "url": "https://example.com/",
  "events": [
    "feed_changed"
  ]
}'
JSONExample body
{
  "url": "https://example.com/",
  "events": [
    "feed_changed"
  ]
}
POST https://api.sendtopigeon.com/v1/webhooks
GET/v1/webhooks/{connection}#

Read webhook status and delivery history

Returns the endpoint and newest deliveries first. Use next as before to read older deliveries. A failed webhook does not stop feed polling.

getWebhookStatusOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
connectionrequiredstringConnection that owns the webhook.

Query parameters

NameTypeDescription
beforestring · uuidDelivery ID returned by the previous page.

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyobject
  • nextstring | null · uuidrequired
  • endpointany of 2required
  • deliveriesarray of objectrequired
curl -X GET "https://api.sendtopigeon.com/v1/webhooks/%7Bconnection%7D" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
GET https://api.sendtopigeon.com/v1/webhooks/%7Bconnection%7D
DELETE/v1/webhooks/{connection}#

Remove a webhook

Disables the endpoint and stops pending deliveries. The result is also successful when the connection has no endpoint.

removeWebhookOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
connectionrequiredstringConnection that owns the webhook.

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyobject
  • removedconst truerequired
curl -X DELETE "https://api.sendtopigeon.com/v1/webhooks/%7Bconnection%7D" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
DELETE https://api.sendtopigeon.com/v1/webhooks/%7Bconnection%7D
POST/v1/webhooks/{connection}/rotate#

Rotate the webhook signing secret

Pigeon signs with both secrets during the rotation overlap. Save the new secret before retiring the previous one.

rotateWebhookSecretOAuth2PersonalAccessTokenPigeonSessionBearerPigeonSessionCookie

Path parameters

NameTypeDescription
connectionrequiredstringConnection that owns the webhook.

Responses

200 Successful response.application/json

request-idServer-generated request ID for support and tracing.
Cache-ControlHub responses are private and must not be stored.
Bodyobject
  • secretstringrequired

    Signing secret. Store securely. It is returned only on registration or rotation.

    pattern ^whsec_
curl -X POST "https://api.sendtopigeon.com/v1/webhooks/%7Bconnection%7D/rotate" \
  -H "Authorization: Bearer $PIGEON_TOKEN"
POST https://api.sendtopigeon.com/v1/webhooks/%7Bconnection%7D/rotate
POSTYour registered webhook URL#

Receive a Pigeon webhook

Pigeon posts this event to your registered HTTPS URL. Verify the Standard Webhooks signature before accepting it. Return a 2xx response after accepting the event for durable processing.

receiveWebhookNo authWebhook

Headers

NameTypeDescription
webhook-idrequiredstring · uuidStable event ID. Deduplicate by this value.
webhook-timestamprequiredstringUnix timestamp in seconds.
webhook-signaturerequiredstringSpace-separated v1 signatures over ID, timestamp and raw request body.

Request body required

application/jsonobject
  • specversionconst "1.0"required
  • idstring · uuidrequired
  • sourceconst "urn:pigeon:hub"required
  • typestringrequired
    "feed_changed" · "connection_requested"
  • timestring · date-timerequired
  • datacontenttypeconst "application/json"required
  • dataobjectrequired

Responses

2XX Event accepted.

JSONDelivery payload
{
  "specversion": "1.0",
  "id": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11",
  "source": "urn:pigeon:hub",
  "type": "feed_changed",
  "time": "2026-12-05T09:30:00Z",
  "datacontenttype": "application/json",
  "data": {
    "account": "01936f3e-5b7a-7c1d-9a40-2f1c8e0b6a11"
  }
}