> ## 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 a webhook

> Now that we've created cards and they're ready to use, we're going to subscribe to the `CardTransaction` webhook event type. This event is triggered w

# Step 1: set up the card webhook

Now that we've created cards and they're ready to use, we're going to subscribe to the `CardTransaction` webhook event type. This event is triggered when a card transaction occurs.

<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": "CardTransaction",
    "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": "CardTransaction",
    "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>
