Azeer API Documentation
  1. Messages
Azeer API Documentation
  • Welcome 👋
  • API Authentication
  • API Endpoints
    • Messages
      • Messages Overview
      • Get Templates List
        GET
      • Send a Template Message
        POST
      • Send a Text Message
        POST
      • Send a Document
        POST
      • Send an Image
        POST
    • Agents
      • List All Agents
      • Get an Agent Details
      • Assign Contact to an Agent
    • Contacts
      • Create a Contact
      • Get Contact Details
    • Webhooks
      • Webhooks Overview
      • List All Webhooks
      • Get Webhook Details
      • Create Webhook
      • Delete Webhook
    • Tags
      • Create a Tag
      • List All Tags
      • Adding Tag to a Contact
  1. Messages

Get Templates List

GET
https://api.mottasl.ai/v1partner/templates
Last modified:2026-01-18 10:13:00
Retrieve the complete list of WhatsApp templates configured for your account. This endpoint returns all templates with their approval status, structure, components, and variable placeholders—allowing you to identify which templates are ready to use and understand their exact format before sending messages.
Use this endpoint to:
View all available templates with their IDs, categories (MARKETING, UTILITY, AUTHENTICATION), and approval status
Inspect template components (HEADER, BODY, FOOTER, BUTTONS) and variable placeholders ({{1}}, {{2}}, etc.)
Verify which templates are approved and ready for messaging
Preview example data and media references
Key points:
Only templates with "status": "approved" can be used in live messaging
Template structure in your API request must exactly match the components and variable order
Body variables ({{1}}, {{2}}, {{3}}) must be provided in positional order
Media headers require valid, publicly accessible URLs
Template language must match
💡
Implementation Notes:
1.
Match the exact structure: Your messaging API payload must include components in the same order as the template (HEADER → BODY → BUTTONS).
2.
Body variables are positional: BODY: ["value1", "value2"] fills {{1}} and {{2}} in sequence.
3.
Headers are optional: Only include HEADER if the template has a header component. For media headers, provide a valid public URL.
4.
Button payloads vs labels: BUTTONS[] values are tracking payloads, not the visible button text shown to users.
5.
Filter by status and language: Use only approved templates in the correct language to avoid API failures.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.mottasl.ai/v1partner/templates' \
--header 'Authorization: Bearer <token>'

Responses

🟢200Success
application/json
Body

Example
{}
🔴500InternelError
🟠400BadRequest
Modified at 2026-01-18 10:13:00
Previous
Messages Overview
Next
Send a Template Message
Built with