Last updated 3 years ago
Used for sending message to a chat. A text can be sent.
POST /send/message/:phone
POST
/send/message/:phone
phone*
String
client number
chatID*
recipient phone number
context
message body
[ { "id": { "fromMe": true, "remote": { "server": "c.us", "user": "...", "_serialized": "...@c.us" }, "id": "...", "_serialized": "true_...@c.us_..." }, "ack": 0, "hasMedia": false, "body": "Hi, How are you?", "type": "chat", "timestamp": 1636619265, "from": "...@c.us", "to": "...@c.us", "deviceType": "web", "isForwarded": false, "forwardingScore": 0, "isStarred": false, "fromMe": true, "hasQuotedMsg": false, "vCards": [], "mentionedIds": [] } ]
Unauthorized