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

« Previous Version 2 Current »

Sends a text message to a whatsapp customer.

HTTP POST /livechat/:domain/sendExternalMessageToCtlivesocial

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

text

YES

STRING

Text message to send in chat

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/sendExternalMessageToCtlivesocial

Request body

{
  "customerPhoneNumber": "393403603062",
  "servicePhoneNumber": "3902124122690",
  "text":"Messaggio da external ws"
}

Response

{
    "result": true,
    "error": null
}

  • No labels