> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getmembrane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook

This is the preferred implementation type for data events whenever available.

**File:** Webhook implementations are configured in the connector's events configuration and use the same webhook endpoints as connector-level events.

See details of how webhooks are implemented here: [Webhook Events](/reference/workspace-elements/external-events/webhook).

Webhook implementation for data collections is exactly the same as for connector-level webhook events.

## Configuration Example

```yaml theme={null}
# spec.yml
name: Collection Name
events:
  created:
    implementationType: webhook
  updated:
    implementationType: webhook
  deleted:
    implementationType: webhook
```

## Implementaiton

Data collection webhook events are implemented in the same way as the normal webhook events. See [Webhook Events](/reference/workspace-elements/external-events/webhook) for detailed implementation.

Implementation files are located in the data collection folder and named as `<event-type>-<function-name>.<ext>`, for example `created-webhook-subscribe.js` or `created-webhook-handle.map.yml`.
