GET
/
apps
/
{appId}
/
webhooks
/
{webhookId}
/
triggers
List Triggers
curl --request GET \
  --url https://apimgmt.cometchat.io/apps/{appId}/webhooks/{webhookId}/triggers \
  --header 'key: <key>' \
  --header 'secret: <secret>'
{
  "data": [
    {
      "id": "message_delivery_receipt",
      "description": "[Beta] The hook triggers when the client chat application confirms with Cometchat servers that a message was delivered."
    },
    {
      "id": "message_read_receipt",
      "description": "[Beta] The hook triggers when the client chat application confirms with Cometchat servers that a message was read."
    }
  ],
  "meta": {
    "pagination": {
      "total": 2,
      "count": 2,
      "per_page": 100,
      "current_page": 1,
      "total_pages": 1
    }
  }
}

Headers

key
string
required

Authorization Key

secret
string
required

Authorization Secret

X-Webhook-Version
integer

The "X-Webhook-Version" header is an optional integer property.When this header is omitted from the request, the system defaults to the legacy webhook, ensuring backward compatibility and seamless operation.Conversely, setting the value of this header to "2" indicates the preference for the new webhook implementation.

Path Parameters

appId
string
required

AppID in which the extension has to be enabled/disabled

webhookId
string
required

Id of the webhook

Response

200 - application/json

Enabled Triggers

The response is of type object.