WhatsApp API
Send WhatsApp messages to users via API
createWhatsAppMessage
Used to send WhatsApp messages to users
POST
https://api.pushwoosh.com/json/1.3/createWhatsAppMessage
Request Body
Parameter | Required | Type | Description |
---|---|---|---|
auth* | Yes | string | API access token from Pushwoosh Control Panel. |
application* | Yes | string | Pushwoosh application code. |
notifications* | Yes | array | Content settings. JSON array of message parameters. See details below. |
Notification parameters
Parameter | Required | Type | Description |
---|---|---|---|
send_date* | Yes | string | Date and time to send the notification. Use format |
content | Required if content_id is not provided | string | Text content of the WhatsApp message. |
content_id | Required if content is not provided. | string | Identifier of a pre-approved WhatsApp template from your Meta account. |
devices* | Yes | array | Customer phone number (must be associated with a UserId using /registerDevice and specified in the hwid parameter, or use |
use_auto_registration | No | boolean | If set to |
content_variables | No | object | Content variables to customize the message content. Each placeholder will be replaced with corresponding dynamic values. |
Request example
Response example
Error response
Currently, each WhatsApp message must be sent in a separate request for each customer.
2. To get WhatsApp statistics, use the totalsByIntervals method.
Last updated