## Get webhook event `client.webhookEvents.retrieve(stringeventID, RequestOptionsoptions?): WebhookEventRetrieveResponse` **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. ### Parameters - `eventID: string` ### Returns - `WebhookEventRetrieveResponse` Response containing a single webhook event resource. - `data: WebhookEvent` - `id: string` Prefixed unique identifier for this webhook event (e.g., `wevt_...`). - `created_at: string` When the event occurred, in UTC. - `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`). ### Example ```typescript import VitableConnect from '@vitable-inc/vitable-connect'; const client = new VitableConnect({ apiKey: process.env['VITABLE_CONNECT_API_KEY'], // This is the default and can be omitted }); const webhookEvent = await client.webhookEvents.retrieve('event_id'); console.log(webhookEvent.data); ``` #### Response ```json { "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" } } ```