Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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: BASIC AUTH

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:

  • IMAGE

  • DOCUMENT

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
}

  • No labels