spicrawlspicrawlDocs
Webhooks

List recent deliveries to an endpoint

Newest first. One row per event and endpoint, not per attempt: `attempt` counts the tries so far and `status` is the current state.

Requires scope: webhooks

GET
/v1/webhooks/{webhookID}/deliveries

Newest first. One row per event and endpoint, not per attempt: attempt counts the tries so far and status is the current state. status is pending (waiting for its first attempt or a retry), delivering (an attempt is in flight), delivered, failed (will be retried, see next_retry_at) or dead (the retry ladder ran out, or the target was refused by the SSRF guard). last_error says why the last attempt failed.

Authorization

bearerAuth
AuthorizationBearer <token>

Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment variable; never hard-code or log it. spicrawl_test_… keys can never spend live credits. Scopes: scrape, batch, sessions (granted by default), browser and read (granted deliberately), and partner (only on a partner account's key). A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.

In: header

Path Parameters

webhookID*string

The endpoint id. An id of another organization answers 404.

Length1 <= length <= 64

Query Parameters

limit?integer

Deliveries to return. Defaults to 20; out of range (1 to 100) is a 400, not clamped.

Range1 <= value <= 100
Default20

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/webhooks/string/deliveries"
{  "data": [    {      "id": "string",      "event_type": "batch.completed",      "event_id": "string",      "status": "pending",      "attempt": 0,      "max_attempts": 1,      "next_retry_at": "2019-08-24T14:15:22Z",      "last_error": "string",      "created_at": "2019-08-24T14:15:22Z"    }  ]}