Send Text Message

Used to send a message on the WhatsApp channel.

Body

Parameter
Required
Values / Type
Notes

message_type

Yes

text

client

Yes

String

Mandatory, ID of the client to whom the message is sent.

text_message

No*

String

Mandatory only if message_type:text.

delay

No*

String

Delay in sending the message. The valid format is described in the table below.

Delay Format

Description

Example

2 weeks

2w

2 days

2d

14 hours

14h

60 seconds

60s

Endpoint

POST: https://api.pingup.ai/ext/v2/{businessname}}messages

Request

curl --location 'https://api.pingup.ai/ext/v2/{businessname}}messages' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
    "message_type": "text",
    "client": "client_id",
    
    "client_phone": "3931212321",
    "client_name": "Jon doe",
    
    "text_message": "Text message to send",
    "delay": "1m" 
}'

Response

The value message_id will be sent in the callback to recognize whether a message has been received/read or has failed.

{
  "success": true|false,
  "data": {
      "message_id": "message_id"
  }
}

Last updated