DogPawHat - does the extract endpoint take webh...

does the extract endpoint take webhooks? not seeing anything on the api docs or sdk
2 Replies
Gaurav Chadha
Gaurav Chadha2mo ago
Hi @DogPawHat yeah, you can use webhook within extract, can you give this a try
curl -X POST https://api.firecrawl.dev/v1/extract \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"urls": ["https://firecrawl.dev"],
"prompt": "Extract the company mission and description",
"schema": {
"type": "object",
"properties": {
"company_mission": {
"type": "string"
},
"company_description": {
"type": "string"
}
},
"required": ["company_mission", "company_description"]
},
"webhook": {
"url": "https://your-webhook-endpoint.com/webhook",
"headers": {
"X-Custom-Header": "your-value"
},
"metadata": {
"custom_id": "your-tracking-id"
},
"events": ["started", "completed", "failed"]
}
}'
curl -X POST https://api.firecrawl.dev/v1/extract \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{
"urls": ["https://firecrawl.dev"],
"prompt": "Extract the company mission and description",
"schema": {
"type": "object",
"properties": {
"company_mission": {
"type": "string"
},
"company_description": {
"type": "string"
}
},
"required": ["company_mission", "company_description"]
},
"webhook": {
"url": "https://your-webhook-endpoint.com/webhook",
"headers": {
"X-Custom-Header": "your-value"
},
"metadata": {
"custom_id": "your-tracking-id"
},
"events": ["started", "completed", "failed"]
}
}'
lmk if it fails, I can check further.
DogPawHat
DogPawHatOP2mo ago
Will do later. I didnt see any types for it on the Node SDK

Did you find this page helpful?