sendExternalMultimediaMessageToCtlivesocial
Sends a multimedia message to a whatsapp customer.
HTTP POST /livechat/:domain/sendExternalMultimediaMessageToCtlivesocial
Path Variables:
Name | Mandatory | Type | Description |
---|---|---|---|
domain | NO | STRING | Unique domain identifier |
Authorization: see Authentication mechanisms
Request Body:
Type: JSON
Name | Mandatory | Type | Description |
---|---|---|---|
customerPhoneNumber | YES | STRING | customer phone number |
servicePhoneNumber | YES | STRING | whatsapp business number |
document | YES | STRING | base64 string |
messageType | YES | STRING | can assume one of the following values:
|
fileName | YES | STRING | file name (extension included) |
Response:
Type: JSON
Name | Type | Description |
---|---|---|
result | BOOLEAN | If true, the service response was performed correctly |
error | NULL / STRING | Contains the error description if an error has occurred in the request |
Example:
Request
http://<hostname>:<port>/livechat/default/sendExternalMultimediaMessageToCtlivesocial
Request body
{
"customerPhoneNumber": "393403603062",
"servicePhoneNumber": "3902124122690",
"document": "iVBORw0KG...",
"messageType": "IMAGE",
"fileName": "infobip-logo.png"
}
Response
{
"result": true,
"error": null
}
Â