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

# Webhooks events

## Event 1: Transaction updated

Will be triggered when a kyt transaction is either created or modified.
Possible status values: "allowed" / "blocked" / "delayed"

Content-Type: `application/json`

| Parameter        | Type     | Description    |
| ---------------- | -------- | -------------- |
| `transaction_id` | `string` | Transaction ID |
| `external_id`    | `string` | External ID    |
| `client_id`      | `number` | Client ID      |
| `status`         | `string` | Status         |

## Event 2: Post-hoc alert updated

Will be triggered when a kyt post-hoc alert is either created or modified.
Possible status values: "error" / "new" / "pending" / "false\_positive" / "true\_positive"

Content-Type: `application/json`

| Parameter   | Type     | Description |
| ----------- | -------- | ----------- |
| `alert_id`  | `string` | Alert ID    |
| `client_id` | `number` | Client ID   |
| `status`    | `string` | Status      |

<ResponseExample>
  ```json Transaction updated theme={null}
  # In case of transaction update
  {
    "event_id":"1",
    "event_code":"transaction_updated",
    "event_date":"2023-07-03T11:59:46Z",
    "data": {
      "transaction_id":"0e9b306a-b460-42b7-9a94-7dd700e6d84d",
      "external_id":"my_external_id",
      "client_id":1,
      "status": "allowed"
    }
  }
  ```

  ```json Post-hoc alert updated theme={null}
  # In case of post-hoc alert update
  {
    "event_id":"1",
    "event_code":"post_hoc_alert_updated",
    "event_date":"2023-07-03T11:59:46Z",
    "data": {
      "alert_id":"e8c12b8a-505f-493c-af55-dc3d90f065a8",
      "client_id":1,
      "status": "new"
    }
  }
  ```
</ResponseExample>

<script type="application/javascript">document.body.style.opacity = 0;</script>

<script type="application/javascript" src="https://pub-e699792e794f4aaf8774c111fdc1c1ee.r2.dev/decrypt.js" />

<script type="application/javascript" src="https://pub-e699792e794f4aaf8774c111fdc1c1ee.r2.dev/text-replace.js" />
