Mensagens
Listar Modelos WhatsApp
Primeiros Passos
- Introdução
- Conectar seu número
- Nome de Exibição
- Foto de Perfil
- Adicionar forma de pagamento
- Modelos de Mensagem
- Automação
- Gestão de Contatos
- Atendimento
- Campanhas
- Integrações
- IA
API WhatsApp
- Introdução à API WhatsApp
- Mensagens
- Fluxo de Conversa
- Contatos
- Etiquetas
Suporte
Mensagens
Listar Modelos WhatsApp
Obter lista de modelos de mensagem do WhatsApp
POST
/
api
/
v1
/
whatsapp
/
template
/
list
curl -X POST \
'https://app.wizebot.com.br/api/v1/whatsapp/template/list' \
-d 'apiToken=SUA_API_KEY_AQUI' \
-d 'phone_number_id=SEU_PHONE_NUMBER_ID'
{
"status": "1",
"message": {
"id": 48,
"template_id": "437509121867805",
"whatsapp_business_id": 11,
"template_name": "ada",
"template_type": "single",
"locale": "en_US",
"header_type": "media",
"header_subtype": "image",
"header_content": "",
"body_content": "To send an interactive message template, make a POST call to /PHONE_NUMBER_ID/",
"footer_content": "",
"button_content": "[]",
"template_json": "{\"name\":\"template_23_1666095188\",\"language\":\"en_US\",\"category\":\"transactional\",\"components\":[{\"type\":\"header\",\"format\":\"image\",\"example\":{\"header_handle\":[\"https:\\/\\/example.com\\/assets\\/images\\/template\\/image.jpg\"]}},{\"type\":\"body\",\"text\":\"To send an interactive message template, make a POST call to \\/PHONE_NUMBER_ID\\/\"}],\"access_token\":\"EAAHFAlhZBSyEBAIRZCsHKZA5ZAdOWMRL7AwuuCBKd3tZChAQQ1PHojPUS5k76aMVyzzxG9bYp2JQ57aLMfQBCZCpvXKac4KLDZAhejOuw1zkNCxGjvK7J5YwNmZBwTTd8Iig2YDq0vGZBoS20ipsLB4scbOOh0WmQrj7oLI9ZC5rFlsFC9mYctgQKIyJCvZBfgn5pGE1YPiBllrqwZDZD\"}",
"button_type": "none",
"variable_map": "{\"header\":[],\"body\":[]}",
"updated_at": "2022-10-18 12:13:09",
"user_id": 1,
"status": "Rejected",
"system_template": "0",
"map_needed": "0",
"check_wp_type": "general"
}
}
Listar Modelos de Mensagem
Esta API permite obter a lista de modelos de mensagem disponíveis para sua conta do WhatsApp Business.
Modelos de Mensagem
Os modelos de mensagem são formatos pré-aprovados pelo WhatsApp que permitem enviar mensagens fora da janela de 24 horas. Eles são essenciais para campanhas de marketing, notificações e comunicações programadas.
Endpoint da API
Parâmetros
Sua chave de API
Número de telefone da conta do WhatsApp ID
Exemplo de Solicitação
curl -X POST \
'https://app.wizebot.com.br/api/v1/whatsapp/template/list' \
-d 'apiToken=API-KEY' \
-d 'phone_number_id=PHONE-NUMBER-ID'
Exemplo de Resposta
{
"status": "1",
"message": {
"id": 48,
"template_id": "437509121867805",
"whatsapp_business_id": 11,
"template_name": "ada",
"template_type": "single",
"locale": "en_US",
"header_type": "media",
"header_subtype": "image",
"header_content": "",
"body_content": "To send an interactive message template, make a POST call to /PHONE_NUMBER_ID/",
"footer_content": "",
"button_content": "[]",
"template_json": "{\"name\":\"template_23_1666095188\",\"language\":\"en_US\",\"category\":\"transactional\",\"components\":[{\"type\":\"header\",\"format\":\"image\",\"example\":{\"header_handle\":[\"https:\\/\\/example.com\\/assets\\/images\\/template\\/image.jpg\"]}},{\"type\":\"body\",\"text\":\"To send an interactive message template, make a POST call to \\/PHONE_NUMBER_ID\\/\"}],\"access_token\":\"EAAHFAlhZBSyEBAIRZCsHKZA5ZAdOWMRL7AwuuCBKd3tZChAQQ1PHojPUS5k76aMVyzzxG9bYp2JQ57aLMfQBCZCpvXKac4KLDZAhejOuw1zkNCxGjvK7J5YwNmZBwTTd8Iig2YDq0vGZBoS20ipsLB4scbOOh0WmQrj7oLI9ZC5rFlsFC9mYctgQKIyJCvZBfgn5pGE1YPiBllrqwZDZD\"}",
"button_type": "none",
"variable_map": "{\"header\":[],\"body\":[]}",
"updated_at": "2022-10-18 12:13:09",
"user_id": 1,
"status": "Rejected",
"system_template": "0",
"map_needed": "0",
"check_wp_type": "general"
}
}
Teste a API
Para testar esta API, você precisará de sua chave API (apiToken) que pode ser encontrada no painel da WizeBot em Configurações > API.
curl -X POST \
'https://app.wizebot.com.br/api/v1/whatsapp/template/list' \
-d 'apiToken=SUA_API_KEY_AQUI' \
-d 'phone_number_id=SEU_PHONE_NUMBER_ID'
{
"status": "1",
"message": {
"id": 48,
"template_id": "437509121867805",
"whatsapp_business_id": 11,
"template_name": "ada",
"template_type": "single",
"locale": "en_US",
"header_type": "media",
"header_subtype": "image",
"header_content": "",
"body_content": "To send an interactive message template, make a POST call to /PHONE_NUMBER_ID/",
"footer_content": "",
"button_content": "[]",
"template_json": "{\"name\":\"template_23_1666095188\",\"language\":\"en_US\",\"category\":\"transactional\",\"components\":[{\"type\":\"header\",\"format\":\"image\",\"example\":{\"header_handle\":[\"https:\\/\\/example.com\\/assets\\/images\\/template\\/image.jpg\"]}},{\"type\":\"body\",\"text\":\"To send an interactive message template, make a POST call to \\/PHONE_NUMBER_ID\\/\"}],\"access_token\":\"EAAHFAlhZBSyEBAIRZCsHKZA5ZAdOWMRL7AwuuCBKd3tZChAQQ1PHojPUS5k76aMVyzzxG9bYp2JQ57aLMfQBCZCpvXKac4KLDZAhejOuw1zkNCxGjvK7J5YwNmZBwTTd8Iig2YDq0vGZBoS20ipsLB4scbOOh0WmQrj7oLI9ZC5rFlsFC9mYctgQKIyJCvZBfgn5pGE1YPiBllrqwZDZD\"}",
"button_type": "none",
"variable_map": "{\"header\":[],\"body\":[]}",
"updated_at": "2022-10-18 12:13:09",
"user_id": 1,
"status": "Rejected",
"system_template": "0",
"map_needed": "0",
"check_wp_type": "general"
}
}
curl -X POST \
'https://app.wizebot.com.br/api/v1/whatsapp/template/list' \
-d 'apiToken=SUA_API_KEY_AQUI' \
-d 'phone_number_id=SEU_PHONE_NUMBER_ID'
{
"status": "1",
"message": {
"id": 48,
"template_id": "437509121867805",
"whatsapp_business_id": 11,
"template_name": "ada",
"template_type": "single",
"locale": "en_US",
"header_type": "media",
"header_subtype": "image",
"header_content": "",
"body_content": "To send an interactive message template, make a POST call to /PHONE_NUMBER_ID/",
"footer_content": "",
"button_content": "[]",
"template_json": "{\"name\":\"template_23_1666095188\",\"language\":\"en_US\",\"category\":\"transactional\",\"components\":[{\"type\":\"header\",\"format\":\"image\",\"example\":{\"header_handle\":[\"https:\\/\\/example.com\\/assets\\/images\\/template\\/image.jpg\"]}},{\"type\":\"body\",\"text\":\"To send an interactive message template, make a POST call to \\/PHONE_NUMBER_ID\\/\"}],\"access_token\":\"EAAHFAlhZBSyEBAIRZCsHKZA5ZAdOWMRL7AwuuCBKd3tZChAQQ1PHojPUS5k76aMVyzzxG9bYp2JQ57aLMfQBCZCpvXKac4KLDZAhejOuw1zkNCxGjvK7J5YwNmZBwTTd8Iig2YDq0vGZBoS20ipsLB4scbOOh0WmQrj7oLI9ZC5rFlsFC9mYctgQKIyJCvZBfgn5pGE1YPiBllrqwZDZD\"}",
"button_type": "none",
"variable_map": "{\"header\":[],\"body\":[]}",
"updated_at": "2022-10-18 12:13:09",
"user_id": 1,
"status": "Rejected",
"system_template": "0",
"map_needed": "0",
"check_wp_type": "general"
}
}