Skip to main content

Managing Legacy Webhook Triggers

You can manage and configure legacy webhooks in CometChat either from the dashboard UI or programmatically via Management APIs.


Option 1: Manage from the Dashboard

To manage webhooks using the CometChat dashboard:

Image

Steps:

  1. Log in to your CometChat Dashboard and select your app.
  2. Go to Settings > Legacy Webhooks from the left menu.
  3. Click on Add New Webhook.
  4. Fill in the configuration:
    • Webhook ID: A unique identifier for your webhook.
    • URL: Endpoint where event payloads will be delivered.
    • Triggers: Select the events you want to receive.
    • Security: (Recommended) Enable authentication.
  5. Enable the webhook.
  6. Save the configuration.

Option 2: Manage via Management APIs

CometChat also provides Management APIs to automate webhook and trigger management.

Webhook Management Endpoints

OperationAPI Reference
Create a new webhookCreate Webhook
Update an existing webhookUpdate Webhook
List all webhooksList Webhooks
Get a webhook by IDGet Webhook
Delete a webhookDelete Webhook

Trigger Management Endpoints

OperationAPI Reference
Add triggers to a webhookAdd Triggers
List all triggers of a webhookList Triggers
Remove triggers from a webhookRemove Triggers

Choose the method that best suits your workflow—dashboard for manual setup or APIs for automated, scalable integration.