v1

latestOpenAPI 3.0.02026-07-14181255304.7 KB
Messages

๐ŸŽฌ Send media-gif message

Method responsible for sending GIFs to your chats through the API (The file to be sent must be an MP4)

post/messages/gif

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

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

autoplayboolean

Optional. This field indicates whether the GIF should be played automatically when the message is received.

view_onceboolean

Is view once

Example request

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

Response

Created

sentboolean required

Message sent