v1

latestOpenAPI 3.0.02026-07-14181255304.7 KB
Messages

๐ŸŽฎ Send interactive message

This endpoint is responsible for sending messages with buttons. The section is constantly updated as the functionality of buttons depends on WhatsApp updates. Attention! The functionality of sending messages with buttons is not stable! For more information, please visit the Button Status topic.

post/messages/interactive

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

type'list' | 'button' | 'product' required

Interactive type

mime_typestring

Mime type of media

no_encodeboolean

Do not use our encoding

no_cacheboolean

Do not use the cache in a request

captionstring

Optional. Text caption under the media.

previewstring

Optional. Base64 encoded preview of the media. In JPEG format.

widthinteger

Width of the media in pixels

heightinteger

Height of the media in pixels

Example request

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

Response

Created

sentboolean required

Message sent