Skip to main content
CometChat legacy webhooks enable real-time event-driven communication with your system. They allow you to receive HTTP POST requests whenever specific events occur—such as sending a message or a user coming online. These webhooks are ideal for integrating external services like SMS, email, analytics, or auditing systems.

Webhook Endpoint Requirements

To ensure reliable delivery and security, your webhook endpoint must meet the following requirements:
  1. HTTPS Required: Your endpoint must use HTTPS to ensure secure data transmission.
  2. Public Accessibility: It must be accessible from the public internet.
  3. Support for POST Requests: The endpoint must accept HTTP POST requests with a Content-Type of application/json.
  4. Immediate Acknowledgment: Your server must respond with an HTTP 200 OK status quickly to acknowledge receipt.

Security

It is strongly recommended to use Basic Authentication to protect your webhook endpoints.

Header Format

When enabled, every webhook request from CometChat will include the following HTTP header:
Set your username and password while configuring the webhook on the CometChat dashboard.

Webhook Triggers

Below are the legacy webhook events supported by CometChat:

Message Events

These events are triggered during the lifecycle of a message.

User Events

These events relate to changes in user presence status.
Next Steps: