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

# Channel Health Problem Created

> Fires when a new channel health problem is detected

Subscribe to receive a notification when a new channel health problem is detected on a WhatsApp account - e.g. send/receive impairment, rate-limit warnings, or account suspension. Pair with [List Channel Health Problems](/api-reference/channels/list-channel-health-problems) for the full picture.

**Event name:** `channelHealthProblemCreated`\\

**Required token scopes:**

* `Create scenarios`
* `Manage scenarios on behalf of user`

see [Authentication](/api-reference/authentication)

## Subscribe

Send the body below to [Import Subscription](/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event). You only need to change:

* **`url`** *(required)* - Located under `data.actions[0].params.url`. Replace `{{yourWebhookURL}}` with the destination URL that should receive the events.
* **`asStatus`** - Keep `"active"` to enable the subscription immediately, or `"inactive"` to save it as an inactive revision.

```json Import body [expandable] theme={null}
{
  "data": {
    "version": "v1",
    "name": "(SUB) Channel Health Problem Created",
    "description": "Sends a webhook when a channel health problem is detected on a WhatsApp account.",
    "triggerEvents": [
      "domain.channel.health.problem.created"
    ],
    "loaders": {},
    "conditions": [],
    "actions": [
      {
        "name": "request",
        "params": {
          "url": "{{yourWebhookURL}}",
          "method": "post",
          "json": true,
          "data": {
            "eventName": "channelHealthProblemCreated",
            "eventData": {
              "problem": {
                "##provide": {
                  "provider": "problem",
                  "key": "problem"
                }
              }
            }
          }
        },
        "confidentialData": false
      }
    ],
    "options": {
      "unorderedActions": false
    }
  },
  "asStatus": "active"
}
```

<Note>
  A `201` response returns your new subscription - save its `_id` to manage it later. You can also add an optional `authorUid` root field (a Texter user UID) to attribute the subscription to a specific user.
</Note>

## Payload

When the event fires, your URL receives an HTTP `POST` with `eventName: "channelHealthProblemCreated"` and the following `eventData`:

<ResponseField name="problem" type="Problem">
  The newly detected channel health problem. See the [Problem object](/api-reference/objects/problem) for all fields.
</ResponseField>

```json Example payload theme={null}
{
  "eventName": "channelHealthProblemCreated",
  "eventData": {
    "problem": {
      "_id": "65fa9b15262e17ab3033f886",
      "channel": "whatsapp",
      "accountId": "972586640430",
      "name": "messaging_rate_limit_hit",
      "severity": "warning",
      "...": "..."
    }
  }
}
```

## Manage this subscription

| Action             | Endpoint                                                                              |
| ------------------ | ------------------------------------------------------------------------------------- |
| List subscriptions | [List All Subscriptions](/api-reference/subscribe-to-events/list-all-subscriptions)   |
| Pause              | [Inactivate Subscription](/api-reference/subscribe-to-events/inactivate-subscription) |
| Resume             | [Activate Subscription](/api-reference/subscribe-to-events/activate-subscription)     |
| Delete             | [Delete Subscription](/api-reference/subscribe-to-events/delete-subscription)         |
| Debug executions   | [List Scenario Runs](/api-reference/scenarios-advanced/list-scenario-runs)            |
