Send Campaign via API
Important: C
post
API to query development profile
Authorizations
Path parameters
businessIdstringRequired
Moengage client BID.
Body
msgIdstringOptionalExample:
Unique identifier, to be returned in callback.
847567484949393
fromstringOptionalExample:
WhatsApp Business Account (WABA) number.
+123456789
tostringOptionalExample:
WhatsApp number of the user to whom the message is being sent.
+1234567890
Responses
200
Success:
application/json
400
Error: Request was malformed.
application/json
500
Error: There was an internal server error.
application/json
default
An unexpected error response.
application/json
post
POST /v1/businesses/{businessId}/moengage/send_message_template HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 153
{
"msgId": "847567484949393",
"from": "+123456789",
"to": "+1234567890",
"template": {
"name": "campaign_simple_message",
"language": {
"code": "en"
},
"components": ""
}
}
{
"status": "success",
"error": "See ErrorDetails",
"message": "See ErrorDetails"
}
Last updated