List webhook events
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.
List webhook events
curl https://api.vitablehealth.com/v1/webhook-events \
-H "Authorization: Bearer $VITABLE_CONNECT_API_KEY"{
"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
}
}