Skip to main content

Tipos de mensagem

Parâmetros

string
default:"whatsapp"
required
Sempre "whatsapp".
string
default:"individual"
"individual" para mensagens diretas (default) ou "group" para mensagens em grupo. Obrigatório quando to é um ID de grupo.
string
required
Número do destinatário no formato E.164 sem o +, ou ID do grupo quando recipient_type é "group".
string
default:"text"
required
Tipo da mensagem: text, image, document, audio, video, sticker, location, contacts, template, interactive, reaction.
object
Obrigatório quando type é text.
object
Obrigatório quando type é image. Use link (URL pública) ou id (media_id do upload).
object
Obrigatório quando type é document. Use link ou id + filename.
object
Obrigatório quando type é audio. Use link ou id.
object
Obrigatório quando type é video. Use link ou id.
object
Obrigatório quando type é template. Veja exemplos nas abas acima.
object
Obrigatório quando type é interactive. Suporta button, list, cta_url, flow, product, product_list.
object
Obrigatório quando type é reaction. Campos: message_id, emoji.
string
Obrigatório apenas com token de organização. Com token de instância é resolvido automaticamente.

Resposta