Webhooks
Get a signed call to your server when items are created, enriched, edited or deleted.
BetaWebhooks need a key with the webhooks resource, and a plan that includes them (Pro).
Events
| Event | When it fires |
|---|---|
item.created | An item is saved. |
item.enriched | The AI finishes tagging and summarising it. |
item.updated | An item is edited. |
item.deleted | An item is deleted. |
Deliveries also include a ping event, which you can use to test your endpoint.
Register a webhook
POST /v1/webhooks with a url and the events you want.
- The URL must be
httpsand point to a public address. - You can have at most 10 webhooks.
- You can set an optional
auth_token. If you do, every delivery carriesAuthorization: Bearer <token>.
The response includes the signing secret. It is shown once. Save it now.
Verify a delivery
Each delivery is signed with your webhook's secret and carries an X-GatherAnything-Signature header. Each also has an X-GatherAnything-Delivery header holding the delivery's id. Check the signature before you trust a request.
Retries and turning off
A failed delivery is retried 7 times over about 10 hours. A webhook turns itself off (enabled: false, with a disabled_reason) when your server answers 410 Gone, or after 10 deliveries in a row run out of retries.
Last updated