Skip to content
Skip to Content
DevelopersGuides

Webhooks

Get a signed call to your server when items are created, enriched, edited or deleted.

Beta

Webhooks need a key with the webhooks resource, and a plan that includes them (Pro).

Events

EventWhen it fires
item.createdAn item is saved.
item.enrichedThe AI finishes tagging and summarising it.
item.updatedAn item is edited.
item.deletedAn 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 https and point to a public address.
  • You can have at most 10 webhooks.
  • You can set an optional auth_token. If you do, every delivery carries Authorization: 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

On this page