webhooks.firecrawl() verifies the HMAC-SHA256 signature Firecrawl sends in x-firecrawl-signature on every request.
/trigger/firecrawl.ts
Set up Firecrawl
-
Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - Copy the webhook secret from the Advanced tab of your Firecrawl account settings. It is one secret for the whole account.
- Choose Set signing secret on the Trigger.dev endpoint and paste it.
-
Firecrawl has no webhook settings page. Pass a
webhookobject with the URL and events on each crawl, batch scrape, extract or agent request instead:Your crawl code -
Start a crawl with the
webhookobject, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.
Example task
The Firecrawl URL crawl example crawls a site from a task. Add thewebhook object above to receive each page as a delivery.
