Send Campaign via API

post

API to query development profile

Authorizations
Path parameters
businessIdstringRequired

Moengage client BID.

Body
msgIdstringOptional

Unique identifier, to be returned in callback.

Example: 847567484949393
fromstringOptional

WhatsApp Business Account (WABA) number.

Example: +123456789
tostringOptional

WhatsApp number of the user to whom the message is being sent.

Example: +1234567890
Responses
200
Success:
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