POST
/send/templateEnvia mensagem de template
Descrição
Envia mensagem de template
Parâmetros
Corpo da requisição
| Nome | Tipo | Localização | Obrigatório |
|---|---|---|---|
Phone | string | body | Sim |
Content | string | body | Sim |
Footer | string | body | Não |
Buttons | object | body | Não |
Exemplo de requisição
curl -X POST 'https://api-server.dichat.com.br/send/template' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"Phone": "5511999998888",
"Content": "Escolha uma opção",
"Footer": "Toque em um botão",
"Buttons": [
{
"DisplayText": "Falar com atendente",
"Type": "quickreply"
},
{
"DisplayText": "Visitar site",
"Type": "url",
"Url": "https://diapi.net"
},
{
"DisplayText": "Ligar",
"Type": "call",
"PhoneNumber": "+551130000000"
}
]
}'Testar endpoint
...
Respostas
200Response
application/json
{
"code": 200,
"data": {
"Details": "Sent",
"Id": "90B2F8B13FAC8A9CF6B06E99C7834DC5",
"Timestamp": "2022-04-20T12:49:08-03:00"
},
"success": true
}