v1

latestOpenAPI 3.0.02026-07-14181255304.7 KB
Messages

๐Ÿ’ฌ Send text message

This endpoint will let you send messages to any WhatsApp-enabled phone number or to any WhatsApp Group/Channel using your own number connected to Whapi.Cloud. Follow the instructions if you want to format text, send a emoji or use line breaks.

post/messages/text

Request body

tostring required

Use the phone number or Chat ID of the contact/group/channel to which you want to send the message. Use Get groups to get the group ID.

quotedstring

Message ID of the message to be quoted

editstring

Message ID of the message to be edited

bodystring required

Message text

typing_timenumber

Time in seconds to simulate typing

no_link_previewboolean

Set "true" if necessary to send the link without preview

wide_link_previewboolean

Set "true" to try to send the fullwidth link preview

mentionsstring[]

The numbers of the mentioned users

Example request

{
  "to": "1234567891@s.whatsapp.net"
}

Response

Created

sentboolean required

Message sent