Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sends a text message to an active whatsapp chat.

...

Status
colourYellow
titleHTTP POST
/livechat/:domain/sendExternalTextMessageToActiveChat

Path Variables:

Name

Mandatory

Type

Description

domain

Status
titleNO

Status
titleSTRING

Unique domain identifier

Authorization:

Status
titleBASIC AUTH

...

see Authentication mechanisms

Request Body:

Type:
Status
titleJSON

Name

Mandatory

Type

Description

userid

Status
colourRed
titleYES

Status
titleSTRING

customer phone number

serviceid

Status
colourRed
titleYES

Status
titleSTRING

service phone number

text

Status
colourRed
titleYES

Status
titleSTRING

Text message to send in chat

chatid

Status
colourRed
titleyes

Status
titleSTRING

Unique chat identifier

Response:

Type:
Status
titleJSON

Name

Type

Description

result

Status
titleBOOLEAN

If true, the service response was performed correctly

error

Status
titleNULL
/
Status
titleSTRING

Contains the error description if an error has occurred in the request

Example:

Request

http://<hostname>:<port>/livechat/default/sendExternalTextMessageToActiveChat

...