1
Set up your WhatsApp channel
Before you can create or send templates, you must connect a WhatsApp number to Visito AI.Follow the channel setup guide: Add a channel.
2
Get the channelId for your WhatsApp number
In Visito AI, every connected WhatsApp number is stored as a channel.
The channelId is the unique identifier for that channel, and it tells Visito which WhatsApp number to use when creating, listing, or sending templates.Use the GETIn this example, id is the channelId →
The channelId is the unique identifier for that channel, and it tells Visito which WhatsApp number to use when creating, listing, or sending templates.Use the GET
/channels?type=whatsapp endpoint to list all available WhatsApp channels:65e1548d667ec3f751a1e20e You’ll use this channelId in endpoints like:- POST /whatsapp-templates/channelId (create a template)
- GET /whatsapp-templates/channelId (list templates)
- POST /whatsapp-templates/channelId/send (send a template from that WhatsApp number) sd
3
Create a WhatsApp message template
Use the POST Templates can be created with parameters (like
/whatsapp-templates/{channelId} endpoint to create a new template.{{1}}) or without parameters.For advanced components (HEADER, FOOTER, BUTTONS, etc.), refer to the official Meta documentation: WhatsApp Message TemplatesTemplates require approval by WhatsApp/Meta. Approval can take up to 24 hours, and templates may be rejected. Templates that are in review or rejected cannot be sent.
4
Send a template message
Use the POST If the request succeeds, you’ll receive a The response includes:
/whatsapp-templates/{channelId}/send endpoint to send a template to a specific phone number.200 response like this:- The destination phone number under
contacts - The WhatsApp
message idandmessage_status - The Visito AI
conversationID for tracking and history