Skip to main content
POST
Create WhatsApp Action

Authorizations

string
required
Enter your ContactSwing JWT Bearer token.

Request Body

string
required
Action display name. Example: My Whatsapp Action
string
required
Action purpose. Example: Send WhatsApp when user requests messaging
string
required
Action type: "SEND_WHATSAPP"
boolean
Enable/disable action
string
required
When to trigger: "during"
string
Override phone number (optional)
object
required
WhatsApp webhook configuration
string
required
Recipient WhatsApp number. Example: "12817126508"
string
required
Sender WhatsApp ID. Example: "650175178190170"
string
required
WhatsApp template name. Example: "call_permession_request"
string[]
Template body parameters []
string[]
Template header parameters []
string[]
Template button parameters []
string
Template language. Example: "en"
boolean
Require WhatsApp response before proceeding

Response

201 Created - WhatsApp action created successfully
string
Request context ID
object
string
New WhatsApp action ID
string
Action name
string
”SEND_WHATSAPP”
400 Bad Request - Invalid WhatsApp template or numbers 401 Unauthorized - Invalid token