WhatsApp
Send WhatsApp Template
Send WhatsApp messages using Meta-approved templates
POST
Overview
Send WhatsApp messages to your contacts using pre-approved templates. Perfect for:- Transactional notifications: Order updates, booking confirmations
- Customer support: Appointment reminders, service updates
- Marketing messages: Product launches, promotional offers (with opt-in)
- Authentication: OTP codes, verification messages
WhatsApp Template Requirements
Unlike emails, WhatsApp messages must use templates approved by Meta (Facebook). This ensures:- User privacy and experience
- Compliance with WhatsApp Business Policy
- Reduced spam and unwanted messages
Template Approval Process
- Create template in Minimo dashboard
- Submit for approval to Meta
- Wait 24-48 hours for review
- Use approved template via API
Template Categories
WhatsApp templates must be categorized:
*Marketing templates require user opt-in and are subject to the 24-hour messaging window.
Phone Number Format
WhatsApp requires phone numbers in E.164 format:- ✅
+393391234567(Italy) - ✅
+12025551234(US) - ✅
+447700900123(UK) - ❌
3391234567(missing country code) - ❌
+39 339 123 4567(contains spaces) - ❌
+39-339-123-4567(contains dashes)
Always validate and format phone numbers before sending. Invalid numbers will result in failed messages and count
against your quality score.
Template Variables
Templates support dynamic content through placeholders. Meta allows two placeholder styles, and the style is fixed when the template is created:- Positional: numbered placeholders like
{{1}},{{2}} - Named: descriptive placeholders like
{{customer_name}},{{order_id}}
Positional Variables
Template Example (created in dashboard):Variable numbering starts at
{{1}}, not {{0}}. Order matters - map parameters in the exact sequence defined in your template.Named Variables
For templates with named placeholders, addparameter_name to each body parameter to state which placeholder the value fills:
Template Example (created in dashboard):
parameter_name is recommended but optional. If you omit it, Minimo resolves the names automatically from the approved template definition, matching your parameters by position: the first parameter fills the first placeholder appearing in the template body, and so on. When relying on this fallback, the order of your parameters must follow the order in which the placeholders appear in the template.WhatsApp Message Components
Templates can have multiple components:Header (Optional)
- Text, image, document, or video
- Single dynamic variable supported
Body (Required)
- Main message content
- Supports multiple variables
- Maximum 1024 characters
Footer (Optional)
- Additional info (e.g., “Reply STOP to opt-out”)
- No variables allowed
Buttons (Optional)
- Call-to-action buttons
- Quick reply buttons
- URL buttons with dynamic parameters
Use Cases
Order Confirmation
Order Confirmation
Send instant confirmation when an order is placed:
Appointment Reminder
Appointment Reminder
Remind customers about upcoming appointments:
OTP Verification
OTP Verification
Send one-time passwords securely:
Shipping Update
Shipping Update
Notify customers about delivery status:
Best Practices
Message Quality Score
WhatsApp monitors your message quality. Maintain a high quality score by:- ✅ Only sending to users who opted in
- ✅ Sending relevant, timely messages
- ✅ Using clear, professional language
- ✅ Respecting the 24-hour window for marketing
- ❌ Avoid spam-like behavior
- ❌ Don’t send unsolicited messages
- ❌ Don’t exceed rate limits
Phone Number Validation
Always validate before sending:Template Design Guidelines
- Be concise: Keep messages short and clear
- Add context: Include order numbers, dates, etc.
- Include branding: Mention your company name
- Provide value: Every message should be useful
- Call-to-action: Make next steps obvious
Rate Limits & Messaging Tiers
WhatsApp enforces tiered messaging limits:
Start at Tier 1, advance automatically with good performance.
Common Errors
Tracking & Analytics
Monitor message delivery and engagement:- Delivery status: Sent, delivered, read
- Failure reasons: Why messages didn’t deliver
- Response rate: How many users reply
24-Hour Messaging Window
For Marketing Templates
After a user-initiated conversation, you have a 24-hour window to send marketing messages without requiring a new opt-in. User-initiated means:- User sends a message to your WhatsApp number
- User clicks a WhatsApp link
- User interacts with your WhatsApp ad
UTILITY templates (order confirmations, booking updates) can be sent anytime, regardless of the 24-hour window.
Compliance & Opt-In
User Consent Required
- Get explicit opt-in before sending WhatsApp messages
- Keep records of consent
- Honor opt-out requests immediately
- Follow GDPR and local privacy regulations
Opt-Out Handling
Include opt-out instructions in templates:Related Endpoints
- List WhatsApp Templates - View all available templates
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Phone number of the recipient including country code
Example:
"393471234567"
Type of message to send
Available options:
text, template Example:
"template"
Plain text message (used only if type is 'text')
Example:
"Hello, this is a plain text message."
Response
Message sent successfully