POST /api/analytics/events
Record an analytics event for a notification. Use this to track when notifications are delivered, viewed, or clicked by end users.
Headers
Your CometChat App ID.
Your CometChat API Key.
Request body
The campaign or notification ID associated with this event.
The user ID who triggered the event.
Channel type:
in_app, push, sms, email, whatsapp, or custom.Event type:
delivered, viewed, or clicked.Example request
Example response
Response fields
Whether the event was recorded.
Unique identifier for the recorded event.
Events are idempotent — recording the same event type for the same user and campaign multiple times does not create duplicate entries.