Enviar mensagem de lista

POST /api/messages/sendList

Envio de mensagens no estilo lista para números de Whatsapp.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

number

string

Telefone em formato 55DDD999999999

body

string

Mensagem a ser enviada

optionList

array

buttonLabel

string

Texto do botão

options

array

id

string

Sequencial, começando pelo 1.

description

string

Descrição da opção correspondente.

title

string

Título da opção correspondente.

Body Example

{
  "number": "5551999979999",
  "body": "Selecione a melhor opção:",
  "optionList": {
    "buttonLabel": "Abrir lista de opções",
    "options": [
      {
        "id": "1",
        "description": "Descrição 1",
        "title": "Título 1"
      },
      {
        "id": "2",
        "description": "Descrição 2",
        "title": "Título 2"
      }
    ]
  }
}

Last updated