Skip to content

Get webhook event

GET/v1/webhook-events/{event_id}

Retrieves a single webhook event by its prefixed ID. Returns 404 if the event does not exist or belongs to a different organization.

Path ParametersExpand Collapse
event_id: string
ReturnsExpand Collapse
data: WebhookEvent { id, created_at, event_name, 3 more }
id: string

Prefixed unique identifier for this webhook event (e.g., wevt_...).

created_at: string

When the event occurred, in UTC.

formatdate-time
event_name: string

The event type, formatted as {resource}.{action} (e.g., enrollment.accepted).

organization_id: string

The organization this event belongs to.

resource_id: string

Prefixed ID of the affected resource. Use this to fetch the current state from the API.

resource_type: string

The type of resource affected (e.g., enrollment, employee).

Get webhook event

curl https://api.vitablehealth.com/v1/webhook-events/$EVENT_ID \
    -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"
  }
}
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"
  }
}