Skip to main content
POST
/
messages
/
template
Enviar mensagem de template
curl --request POST \
  --url https://api.example.com/messages/template \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "jid": "<string>",
  "templateName": "<string>",
  "language": "<string>",
  "components": [
    {
      "type": "header",
      "parameters": [
        {
          "type": "<string>",
          "text": "<string>",
          "parameter_name": "<string>"
        }
      ]
    }
  ]
}
'

Authorizations

X-Api-Key
string
header
required

Chave privada da API

Body

application/json
jid
string
required

Número do telefone, com ou sem o sufixo @s.whatsapp.net. Não é permitido o uso de @lid na Cloud API.

Minimum string length: 1
templateName
string
required

Nome do template

language
string
required

Código do idioma do template

components
object[]
required

Response

200

Default Response