Webhooks

List deliveries

List delivery attempts for a specific webhook endpoint.

get/v1/webhook-endpoints/{webhook_endpoint_id}/deliveries

Request

  • Base URL: https://api.scrip.dev
  • URL: https://api.scrip.dev/v1/webhook-endpoints/{webhook_endpoint_id}/deliveries
  • Auth: HTTP bearer

Path parameters

webhook_endpoint_idstring uuid required

The webhook endpoint's id.

Query parameters

status'PENDING' | 'SENDING' | 'DELIVERED' | 'FAILED'

Filter by delivery status

limitinteger

Return at most this many records, from 1 to 200, default 50.

cursorstring

The next_cursor from the previous response, valid only with the same endpoint and filters.

created_afterstring date-time

Return only records created after this time, RFC 3339.

created_beforestring date-time

Return only records created before this time, RFC 3339.

Response

List of deliveries

Example response

{
  "data": [
    {
      "attempt_count": 1,
      "created_at": "2027-01-15T10:30:00Z",
      "delivered_at": "2027-01-15T10:30:00Z",
      "error_code": "consumer_response_timeout",
      "event_type": "balance.credited",
      "id": "1c8d3e5f-2a47-4b96-8e03-d5f7a9b1c2e4",
      "last_attempt_at": "2027-01-15T10:30:00Z",
      "last_error": "connection timed out after 10s",
      "last_response_body": "{\"received\":true}",
      "last_response_status": 200,
      "max_attempts": 8,
      "next_attempt_at": "2027-12-31T23:59:59Z",
      "status": "DELIVERED",
      "updated_at": "2027-01-15T10:30:00Z",
      "webhook_endpoint_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
      "webhook_event_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479"
    }
  ],
  "pagination": {
    "has_more": true,
    "next_cursor": "YWJjMTIz"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.