Skip to main content

Managing triggers

Webhook management and configuration of triggers can be handled via CometChat's dashboard or by utilizing the Management APIs.

Manage from the dashboard

Image
  1. Login to CometChat dashboard and select your app.
  2. Go to the Webhooks section in the left navigation.
  3. Add a new webhook.
  4. Configure the webhook by saving the following details:
  • Webhook ID: A unique identifier for your webhook.
  • URL: The Webhook URL where you will receive the payloads for the event.
  • Triggers: Enable the triggers for events that you are interested in.
  • Security: It is recommended to enable authentication for your webhook.
  1. Enable the webhook.
  2. Save the configuration.

Manage using our Management APIs

Webhook managment

OperationDescription
Create a new webhookhttps://api-explorer.cometchat.com/reference/create-webhook-api
Update an existing webhookhttps://api-explorer.cometchat.com/reference/update-webhook-api
List webhookshttps://api-explorer.cometchat.com/reference/list-webhooks-api
Get a webhook using its IDhttps://api-explorer.cometchat.com/reference/get-webhook-api
Delete a webhookhttps://api-explorer.cometchat.com/reference/delete-webhook-api

Triggers management

OperationDescription
Add triggers to a webhookhttps://api-explorer.cometchat.com/reference/add-triggers-api
List triggers of a webhookhttps://api-explorer.cometchat.com/reference/list-triggers-api
Remove triggers from a webhookhttps://api-explorer.cometchat.com/reference/remove-triggers-api