WhatsApp API
Send WhatsApp messages to users via API
Last updated
Send WhatsApp messages to users via API
Last updated
Used to send WhatsApp messages to users
POST
https://api.pushwoosh.com/json/1.3/createWhatsAppMessage
Parameter | Required | Type | Description |
---|---|---|---|
Parameter | Required | Type | Description |
---|---|---|---|
Response example
Currently, each WhatsApp message must be sent in a separate request for each customer.
2. To get WhatsApp statistics, use the totalsByIntervals method.
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.
send_date*
Yes
string
Date and time to send the notification. Use format YYYY-MM-DD HH:mm
or 'now'
to send immediately.
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
). Only one number can be specified here.
use_auto_registration
No
boolean
If set to true
, the phone number specified in the devices parameter will be automatically registered.
content_variables
No
object
Content variables to customize the message content. Each placeholder will be replaced with corresponding dynamic values.