Skip to main content
POST
https://chatbot.menuia.com
/
api
/
create-message
curl -X POST https://chatbot.menuia.com/api/create-message \
  -H "Content-Type: application/json" \
  -d '{
    "appkey": "SUA_APPKEY_AQUI",
    "authkey": "SUA_AUTHKEY_AQUI",
    "to": "+5581989769960",
    "template_id": "TEMPLATE_ID",
    "variables": {
      "variableKey1": "jhone",
      "variableKey2": "replaceable value"
    }
  }'
{
  "status": 200,
  "message": "Template enviado com sucesso."
}

Descrição

Este endpoint permite enviar mensagens usando templates pré-definidos com variáveis personalizadas, para um número ou grupo.

Parâmetros

appkey
string
required
Chave de aplicação.
authkey
string
required
Chave de autenticação do usuário.
to
string
required
Número de telefone no formato internacional ou ID do grupo.
template_id
string
required
Identificador único do template a ser utilizado.
variables
object
required
Objeto com chave-valor para substituir as variáveis do template.
curl -X POST https://chatbot.menuia.com/api/create-message \
  -H "Content-Type: application/json" \
  -d '{
    "appkey": "SUA_APPKEY_AQUI",
    "authkey": "SUA_AUTHKEY_AQUI",
    "to": "+5581989769960",
    "template_id": "TEMPLATE_ID",
    "variables": {
      "variableKey1": "jhone",
      "variableKey2": "replaceable value"
    }
  }'
{
  "status": 200,
  "message": "Template enviado com sucesso."
}