Invia codici di accesso WhatsApp tramite API
Invia codici monouso e altri messaggi WhatsApp transazionali da un template approvato con POST /v3/whatsapp/sendMessage, poi leggi ogni evento di consegna.

Come funziona
curl --request POST \
--url https://api.brevo.com/v3/whatsapp/sendMessage \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"contactNumbers": [
"4915778559164"
],
"templateId": 465118589032810,
"senderNumber": "917878172050"
}'
Use the whatsapp_management_send_whatsapp_message tool to send template 123 from my WhatsApp number 919876543210 to 4915778559164, passing the code 482913 in params.
curl --request POST \
--url https://api.brevo.com/v3/whatsappCampaigns/template \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'api-key: YOUR_API_KEY' \
--data '{
"category": "MARKETING",
"name": "Test template",
"language": "en",
"mediaUrl": "https://attachment.domain.com",
"bodyText": "making it look like readable English",
"headerText": "Test WhatsApp campaign"
}'
Use the whatsapp_management_create_whats_app_template tool to create an English UTILITY template named otp_code with a short code message, then submit it for approval with whatsapp_campaigns_send_whats_app_template_approval.
curl --request GET \
--url 'https://api.brevo.com/v3/whatsapp/statistics/events?limit=50&offset=0&startDate=2024-01-01&endDate=2024-01-31' \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY'
Show my WhatsApp delivery report for the last 7 days.
Il pannello di invio cURL è un messaggio template senza variabili. Per inserire il codice nel messaggio, passalo in params come fa il prompt MCP, e provalo prima sul tuo account.
API WhatsApp: i fatti
API. Invia un messaggio WhatsApp transazionale con POST /v3/whatsapp/sendMessage. Per il primo messaggio usa un templateId.
Hosting in UE. I server di hosting su cui Brevo elabora e archivia i propri database si trovano tutti nell'Unione Europea. Brevo utilizza OVH in Francia e Germania e i dati sono archiviati su Google Cloud in Belgio.