דלג לתוכן הראשי
Subscribe to receive a notification when a previously detected channel health problem is resolved on a WhatsApp account (resolvedAt is populated). Event name: channelHealthProblemResolved\ Required token scopes:
  • Create scenarios
  • Manage scenarios on behalf of user
see Authentication

Subscribe

Send the body below to Import Subscription. 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.
Import body
{
  "data": {
    "version": "v1",
    "name": "(SUB) Channel Health Problem Resolved",
    "description": "Sends a webhook when a previously detected channel health problem is resolved.",
    "triggerEvents": [
      "domain.channel.health.problem.resolved"
    ],
    "loaders": {},
    "conditions": [],
    "actions": [
      {
        "name": "request",
        "params": {
          "url": "{{yourWebhookURL}}",
          "method": "post",
          "json": true,
          "data": {
            "eventName": "channelHealthProblemResolved",
            "eventData": {
              "problem": {
                "##provide": {
                  "provider": "problem",
                  "key": "problem"
                }
              }
            }
          }
        },
        "confidentialData": false
      }
    ],
    "options": {
      "unorderedActions": false
    }
  },
  "asStatus": "active"
}
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.

Payload

When the event fires, your URL receives an HTTP POST with eventName: "channelHealthProblemResolved" and the following eventData:
problem
Problem
The problem that was just resolved, with resolvedAt populated. See the Problem object for all fields.
Example payload
{
  "eventName": "channelHealthProblemResolved",
  "eventData": {
    "problem": {
      "_id": "65fa9b15262e17ab3033f886",
      "channel": "whatsapp",
      "accountId": "972586640430",
      "name": "messaging_rate_limit_hit",
      "severity": "warning",
      "resolvedAt": 1761861708000,
      "...": "..."
    }
  }
}

Manage this subscription