Scraper apiV1Webhooks

Create a Webhook

Coming soon

This endpoint is documented but not yet available in production. The contract below reflects the planned behavior. Reach out via support for early access or launch notification.

Create a webhook subscription for a given event type and return its generated signing secret

POST
/v1/webhooks
X-Api-Key<token>

In: header

urlstring
Formaturi
Length1 <= length
event_typestring
Value in"extract_completed" | "batch_completed" | "crawl_completed"
description?string|null

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://scraper.geonode.io/v1/webhooks" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com",    "event_type": "extract_completed"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "url": "string",
  "description": "string",
  "is_active": true,
  "event_type": "extract_completed",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "secret": "string"
}
{
  "code": "string",
  "message": "string",
  "correlation_id": "string",
  "retryable": true
}
{
  "code": "string",
  "message": "string",
  "correlation_id": "string",
  "retryable": true
}
{
  "code": "string",
  "message": "string",
  "correlation_id": "string",
  "retryable": true
}