Free in betaSee integrations
Skip to content

Webhooks: register endpoints with /v1/webhooks

Register an HTTPS endpoint to receive signed notifications when a batch job finishes or a monitored page changes.

Before: To know that a batch job had finished you had to poll for it. There was nothing that called you.

Now: Register an HTTPS endpoint with POST /v1/webhooks and Spicrawl sends it a signed POST for batch.completed and batch.failed, and for monitor.changed and monitor.failed. Each delivery is signed with a secret you can rotate, in the X-Spicrawl-Signature header. A failed delivery is retried six more times, the last about a day later. Slack and Discord incoming-webhook URLs work too, with format set to slack or discord. You can send a test ping, read recent deliveries, and turn an endpoint back on after it was disabled for repeated failures. A batch job submitted with webhook_endpoint_id sends its notification when it finishes. The key needs the webhooks scope.

What this means for you: You can stop polling. The notification carries a summary only, so fetch the results yourself when it arrives.

Use cases

  • Start downstream processing as soon as a batch of product pages is done.
  • Post a line in a Slack channel when a batch fails.
  • Trigger a re-index in your service when a monitored page changes.

Docs:WebhooksBatch webhook_endpoint_id

Back to the changelog