List webhook event deliveries
webhook_events.list_deliveries(event_id) -> WebhookEventListDeliveriesResponse { data }
GET/v1/webhook-events/{event_id}/deliveries
Retrieves all delivery attempts for a webhook event. Returns up to 100 deliveries. Each delivery includes a computed status field (Pending, In Progress, Delivered, or Failed).
List webhook event deliveries
require "vitable_connect"
vitable_connect = VitableConnect::Client.new(
api_key: "My API Key",
environment: "environment_1" # defaults to "production"
)
response = vitable_connect.webhook_events.list_deliveries("event_id")
puts(response){
"data": [
{
"id": "wdlv_abc123def456",
"webhook_event_id": "wevt_xyz789abc012",
"subscription_id": "wsub_sub123def456",
"status": "Delivered",
"started_at": "2024-06-15T14:30:01Z",
"delivered_at": "2024-06-15T14:30:02Z",
"failed_at": null,
"failure_reason": "",
"created_at": "2024-06-15T14:30:00Z"
},
{
"id": "wdlv_def456ghi789",
"webhook_event_id": "wevt_xyz789abc012",
"subscription_id": "wsub_sub456ghi789",
"status": "Failed",
"started_at": "2024-06-15T14:30:01Z",
"delivered_at": null,
"failed_at": "2024-06-15T14:30:05Z",
"failure_reason": "max_attempts",
"created_at": "2024-06-15T14:30:00Z"
}
]
}Returns Examples
{
"data": [
{
"id": "wdlv_abc123def456",
"webhook_event_id": "wevt_xyz789abc012",
"subscription_id": "wsub_sub123def456",
"status": "Delivered",
"started_at": "2024-06-15T14:30:01Z",
"delivered_at": "2024-06-15T14:30:02Z",
"failed_at": null,
"failure_reason": "",
"created_at": "2024-06-15T14:30:00Z"
},
{
"id": "wdlv_def456ghi789",
"webhook_event_id": "wevt_xyz789abc012",
"subscription_id": "wsub_sub456ghi789",
"status": "Failed",
"started_at": "2024-06-15T14:30:01Z",
"delivered_at": null,
"failed_at": "2024-06-15T14:30:05Z",
"failure_reason": "max_attempts",
"created_at": "2024-06-15T14:30:00Z"
}
]
}