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

# Set up recipient webhooks

> Next, we're going to subscribe to the two recipient-related webhooks.

# Step 2: set up recipient webhooks

Next, we're going to subscribe to the two recipient-related webhooks.

The first event type to subscribe to is `RecipientCreated`. This event is triggered when a recipient is created in both sandbox and production.

<CodeGroup>
  ```bash Sandbox theme={null}
  curl -i -X POST 'https://api-sandbox.equalsmoney.com/v2/webhooks' \
  -H 'Authorization: ApiKey {apiKey}' \ # Your API key
  -H 'Content-Type: application/json' \
  -d '{
    "webhookEventTypeName": "RecipientCreated",
    "accountId": "{accountId}",
    "url": "{webhookUrl}",
    "enabled": true
  }'
  ```

  ```bash Production theme={null}
  curl -i -X POST 'https://api.equalsmoney.com/v2/webhooks' \
  -H 'Authorization: ApiKey {apiKey}' \ # Your API key
  -H 'Content-Type: application/json' \
  -d '{
    "webhookEventTypeName": "RecipientCreated",
    "accountId": "{accountId}",
    "url": "{webhookUrl}",
    "enabled": true
  }'
  ```
</CodeGroup>

The second event type to subscribe to is `RecipientDeleted`. This event is triggered when a recipient is deleted in both sandbox and production.

<CodeGroup>
  ```bash Sandbox theme={null}
  curl -i -X POST 'https://api-sandbox.equalsmoney.com/v2/webhooks' \
  -H 'Authorization: ApiKey {apiKey}' \ # Your API key
  -H 'Content-Type: application/json' \
  -d '{
    "webhookEventTypeName": "RecipientDeleted",
    "accountId": "{accountId}",
    "url": "{webhookUrl}",
    "enabled": true
  }'
  ```

  ```bash Production theme={null}
  curl -i -X POST 'https://api.equalsmoney.com/v2/webhooks' \
  -H 'Authorization: ApiKey {apiKey}' \ # Your API key
  -H 'Content-Type: application/json' \
  -d '{
    "webhookEventTypeName": "RecipientDeleted",
    "accountId": "{accountId}",
    "url": "{webhookUrl}",
    "enabled": true
  }'
  ```
</CodeGroup>

<Info>
  For more information about webhooks and webhook event type structures, [see the webhooks guide](/pages/webhooks/how-it-works).
</Info>
