Skip to main content
Use a custom provider to send CometChat email notifications through any gateway via webhook. SendGrid is built-in; choose custom when you want another service or your own SMTP bridge.

Prerequisites

  1. Public https:// webhook that accepts POST JSON.
  2. Return 200 OK within ~2 seconds (do heavy work async).
  3. Secure the endpoint (recommended): Basic Auth or a verified signature. With Basic Auth, the request includes:

Add credentials

  1. Click on the ”+ Add Credentials” button.
  2. Enable the provider.
  3. Enter the publicly accessible webhook URL.
  4. (Recommended) Enable Basic Authentication and set username/password.
  5. Decide if you want to Trigger only if email address is stored with CometChat (via Update Contact details API); when off, the webhook fires regardless.
  6. Save the credentials.

How delivery works

For one-on-one events, CometChat calls your webhook once per recipient. For group events, it calls once per member—one HTTP request per user to notify. Example: if a group has 100 members, your webhook receives 100 POSTs.

Sample server-side code