Send a notification using a template
Send a notification using a template.
Documentation Index
Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Your CometChat REST API Key.
Headers
Tenant application ID
Body
Template CUID or templateId slug. Template must be in approved status.
"order_update"
Array of target user IDs. 1–10 = realtime (synchronous, returns notificationId immediately). 11–10,000 = batch (asynchronous, returns batchId; processing happens via queue).
1 - 10000 elementsPer-user variables. Keyed by userId; values are { variableName: value } objects. Variables are applied to the template content at delivery time.
{
"user_42": { "user_name": "John", "order_id": "12345" },
"user_43": { "user_name": "Sarah", "order_id": "12346" }
}Optional analytics tag attached to the send (passes through to delivery records).
Response
Realtime: { notificationId, channels[], mode: "realtime" }. Batch: { batchId, total, channels[], mode: "batch" }.