Skip to main content
POST
/
messages
Enviar Sticker
curl --request POST \
  --url https://apis.vectalk.com.br/api/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messaging_product": "<string>",
  "recipient_type": "<string>",
  "to": "<string>",
  "type": "<string>",
  "context": {
    "context.message_id": "<string>"
  },
  "sticker": {
    "sticker.id": "<string>",
    "sticker.link": "<string>"
  }
}
'

Parâmetros

Body

messaging_product
string
default:"whatsapp"
required
Sempre "whatsapp".
recipient_type
string
default:"individual"
Tipo de destinatário: "individual".
to
string
required
Número do destinatário no formato wa_id.
type
string
default:"sticker"
required
Sempre "sticker".
context
object
Para responder uma mensagem específica.
sticker
object
required
Deve conter id (media ID) ou link (URL pública). Formato: WebP estático ou animado.

Exemplo por ID

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "5511999999999",
  "type": "sticker",
  "sticker": {
    "id": "1234567890"
  }
}

Exemplo por URL

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "5511999999999",
  "type": "sticker",
  "sticker": {
    "link": "https://example.com/sticker.webp"
  }
}

Resposta

{
  "messaging_product": "whatsapp",
  "contacts": [{ "input": "5511999999999", "wa_id": "5511999999999" }],
  "messages": [{ "id": "wamid.HBgLNTUxMTk5OTk5OTk5..." }]
}