v1

latestOpenAPI 3.0.02026-07-14181255304.7 KB
Messages

๐Ÿ“Ž Send link preview message

Method responsible for sending links with customize preview to your contacts, it is used to share links so that the user can be redirected to a website. Your link must necessarily be in the Body parameter. It is important for you to know that the link is only clickable if the recipient already has your phone number in their contacts, or if they start a conversation with you

post/messages/link_preview

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

titlestring required

Title of the link

descriptionstring

Description of the link

canonicalstring

Canonical URL of the link (for example, if the link is shortened)

previewstring

Base64 encoded image for mini version link preview. In JPEG format

mime_typestring

Mime type of media

no_encodeboolean

Do not use our encoding

no_cacheboolean

Do not use the cache in a request

mentionsstring[]

The numbers of the mentioned users

Example request

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

Response

Created

sentboolean required

Message sent