List webhook events
webhook_events.list(WebhookEventListParams**kwargs) -> SyncPageNumberPage[WebhookEvent]
GET/v1/webhook-events
Retrieves a paginated list of webhook events for the authenticated organization. Supports filtering by event name, resource type, resource ID, and date range.
Parameters
List webhook events
import os
from vitable_connect import VitableConnect
client = VitableConnect(
api_key=os.environ.get("VITABLE_CONNECT_API_KEY"), # This is the default and can be omitted
)
page = client.webhook_events.list()
page = page.data[0]
print(page.id){
"data": [
{
"id": "wevt_abc123def456",
"organization_id": "org_xyz789",
"event_name": "enrollment.accepted",
"resource_type": "enrollment",
"resource_id": "enrl_sample123",
"created_at": "2024-06-15T14:30:00Z"
},
{
"id": "wevt_def456ghi789",
"organization_id": "org_xyz789",
"event_name": "employee.deactivated",
"resource_type": "employee",
"resource_id": "empl_sample456",
"created_at": "2024-06-15T12:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 2,
"total_pages": 1
}
}Returns Examples
{
"data": [
{
"id": "wevt_abc123def456",
"organization_id": "org_xyz789",
"event_name": "enrollment.accepted",
"resource_type": "enrollment",
"resource_id": "enrl_sample123",
"created_at": "2024-06-15T14:30:00Z"
},
{
"id": "wevt_def456ghi789",
"organization_id": "org_xyz789",
"event_name": "employee.deactivated",
"resource_type": "employee",
"resource_id": "empl_sample456",
"created_at": "2024-06-15T12:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 2,
"total_pages": 1
}
}