Templates

Templates are approved WhatsApp messages that can be used to send marketing messages or notifications. Templates must be approved by WhatsApp before they can be used.

Create a New Template

To create a new template:

"function">curl "keyword">-X POST https://omdaa.com/api/v1/templates \
  "keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN" \
  "keyword">-H "Content"keyword">-Type: application/json" \
  "keyword">-d '{
  "name": "welcome_template",
  "category": "MARKETING",
  "language": "en",
  "components": [
    {
      "type": "BODY",
      "text": "Hello {{1}}! Thank you for signing up with us."
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "QUICK_REPLY",
          "text": "Get Started"
        }
      ]
    }
  ]
}'

Template Categories

MARKETING
For marketing messages
UTILITY
For utility messages
AUTHENTICATION
For authentication messages

Get Templates

To get a list of all templates:

"function">curl "keyword">-X GET "https://omdaa.com/api/v1/templates" \
  "keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN"

💡 Important Notes

  • Templates must be approved by WhatsApp before they can be used
  • Only approved templates can be used to send messages
  • Use variables ({{1}}, {{2}}) in templates
  • Respect WhatsApp policies when creating templates