---
updatedAt: 2026-10-30T08:42:35.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Get templates

Compatibility reference for existing integrations. Use the V3 contract for this supported operation; do not copy the legacy payload or success semantics. Recommended V3 route: `/api/ext/v3/messageTemplates`.

Get templates. GET /{tenantId}/api/v2/getMessageTemplates.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:read`, `messagetemplatev2:read`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Templates",
      "description": "Manage and send WhatsApp message templates."
    }
  ],
  "paths": {
    "/{tenantId}/api/v2/getMessageTemplates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get templates",
        "responses": {
          "200": {
            "description": "Get templates success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "result": {
                      "type": "string",
                      "description": "Result status of the request (e.g. 'success')."
                    },
                    "messageTemplates": {
                      "type": "array",
                      "description": "List of available message templates.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique identifier of the message template."
                          },
                          "wabaId": {
                            "description": "WhatsApp Business Account ID associated with this template, or null if not bound."
                          },
                          "elementName": {
                            "type": "string",
                            "description": "Internal name of the template."
                          },
                          "category": {
                            "type": "string",
                            "description": "Template category (e.g. MARKETING, UTILITY)."
                          },
                          "subCategory": {
                            "type": "string",
                            "description": "Template sub-category (e.g. STANDARD)."
                          },
                          "catalogInfo": {
                            "description": "Catalog information if the template is linked to a product catalog, otherwise null."
                          },
                          "hsm": {
                            "description": "Deprecated/legacy HSM payload, usually null in newer templates."
                          },
                          "hsmOriginal": {
                            "description": "Original HSM definition if applicable, usually null."
                          },
                          "customParams": {
                            "description": "Custom parameters associated with the template, empty array if none."
                          },
                          "status": {
                            "type": "string",
                            "description": "Approval status of the template (e.g. APPROVED, REJECTED, PENDING)."
                          },
                          "language": {
                            "type": "object",
                            "description": "Language information of the template.",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Human readable language name (e.g. 'English (US)')."
                              },
                              "value": {
                                "type": "string",
                                "description": "Language code (e.g. 'en_US')."
                              },
                              "text": {
                                "type": "string",
                                "description": "Display text of the language."
                              }
                            }
                          },
                          "lastModified": {
                            "type": "string",
                            "description": "Last modification date/time of the template."
                          },
                          "type": {
                            "type": "string",
                            "description": "Template type, usually 'template'."
                          },
                          "header": {
                            "description": "Header content of the template, null if no header."
                          },
                          "body": {
                            "type": "string",
                            "description": "Rendered template body with parameter placeholders."
                          },
                          "bodyOriginal": {
                            "type": "string",
                            "description": "Original body definition before parameter mapping."
                          },
                          "footer": {
                            "type": "string",
                            "description": "Footer text shown at the bottom of the message."
                          },
                          "buttons": {
                            "type": "array",
                            "description": "List of buttons configured for the template.",
                            "items": {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "description": "Button type (e.g. 'url')."
                                },
                                "parameter": {
                                  "type": "object",
                                  "description": "Button configuration parameters.",
                                  "properties": {
                                    "text": {
                                      "type": "string",
                                      "description": "Button display text."
                                    },
                                    "phoneNumber": {
                                      "type": "string",
                                      "description": "Phone number associated with the button, if any."
                                    },
                                    "url": {
                                      "type": "string",
                                      "description": "URL the button directs to, if type is 'url'."
                                    },
                                    "urlOriginal": {
                                      "description": "Original URL before mapping, if applicable."
                                    },
                                    "urlType": {
                                      "type": "string",
                                      "description": "URL type (e.g. 'static' or 'dynamic')."
                                    },
                                    "buttonParamMapping": {
                                      "description": "Mapping of parameters used by the button, if any."
                                    },
                                    "copyOfferCode": {
                                      "description": "Offer code to be copied when button is pressed, if applicable."
                                    },
                                    "orderDetails": {
                                      "description": "Order related information for commerce templates, if applicable."
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "buttonsType": {
                            "type": "string",
                            "description": "Type of buttons configuration (e.g. 'quick_reply_and_call_to_action')."
                          },
                          "carouselCards": {
                            "description": "Carousel cards configuration, empty array if not used."
                          },
                          "expiresIn": {
                            "type": "integer",
                            "description": "Lifetime of the template in seconds, 0 means no expiry."
                          },
                          "includeExpiryTime": {
                            "type": "boolean",
                            "description": "Indicates whether an expiry time is included."
                          },
                          "addSecurityRecommendation": {
                            "type": "boolean",
                            "description": "Indicates whether security recommendation text is added."
                          },
                          "isUrlBtnClickTrackingEnabled": {
                            "type": "boolean",
                            "description": "Whether URL button click tracking is enabled."
                          },
                          "limitedTimeOffer": {
                            "description": "Limited time offer information, if configured, otherwise null."
                          },
                          "quality": {
                            "type": "integer",
                            "description": "Quality score of the template (0 for default)."
                          },
                          "creationMethod": {
                            "type": "integer",
                            "description": "Indicates how the template was created (internal enum)."
                          }
                        }
                      }
                    },
                    "link": {
                      "type": "object",
                      "description": "Pagination information of the template list.",
                      "properties": {
                        "prevPage": {
                          "description": "Previous page token or URL, null if there is no previous page."
                        },
                        "nextPage": {
                          "description": "Next page token or URL, null if there is no next page."
                        },
                        "pageNumber": {
                          "type": "integer",
                          "description": "Current page number."
                        },
                        "pageSize": {
                          "type": "integer",
                          "description": "Number of items per page."
                        },
                        "total": {
                          "type": "integer",
                          "description": "Total number of templates available."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "result": "success",
                  "messageTemplates": [
                    {
                      "id": "6920666bec7d1bbf4522fdb2",
                      "wabaId": null,
                      "elementName": "test_123",
                      "category": "MARKETING",
                      "subCategory": "STANDARD",
                      "catalogInfo": null,
                      "hsm": null,
                      "hsmOriginal": null,
                      "customParams": [],
                      "status": "APPROVED",
                      "language": {
                        "key": "English (US)",
                        "value": "en_US",
                        "text": "English (US)"
                      },
                      "lastModified": "2025-11-21T14:20:30.634Z",
                      "type": "template",
                      "header": null,
                      "body": "Make your messages personal using variables like and get more replies!",
                      "bodyOriginal": "Make your messages personal using variables like and get more replies!",
                      "footer": "Powered by wati.io",
                      "buttons": [
                        {
                          "type": "url",
                          "parameter": {
                            "text": "Visit us",
                            "phoneNumber": "",
                            "url": "https://www.wati.io",
                            "urlOriginal": null,
                            "urlType": "static",
                            "buttonParamMapping": null,
                            "copyOfferCode": null,
                            "orderDetails": null
                          }
                        }
                      ],
                      "buttonsType": "quick_reply_and_call_to_action",
                      "carouselCards": [],
                      "expiresIn": 0,
                      "includeExpiryTime": false,
                      "addSecurityRecommendation": false,
                      "isUrlBtnClickTrackingEnabled": false,
                      "limitedTimeOffer": null,
                      "quality": 0,
                      "creationMethod": 0
                    },
                    {
                      "id": "6920666bec7d1bbf4522fdb4",
                      "wabaId": "100305956451869",
                      "elementName": "test_123",
                      "category": "MARKETING",
                      "subCategory": "STANDARD",
                      "catalogInfo": null,
                      "hsm": null,
                      "hsmOriginal": null,
                      "customParams": [],
                      "status": "APPROVED",
                      "language": {
                        "key": "English (US)",
                        "value": "en_US",
                        "text": "English (US)"
                      },
                      "lastModified": "2025-11-21T13:19:16.14Z",
                      "type": "template",
                      "header": null,
                      "body": "Make your messages personal using variables like and get more replies!",
                      "bodyOriginal": "Make your messages personal using variables like and get more replies!",
                      "footer": "Powered by wati.io",
                      "buttons": [
                        {
                          "type": "url",
                          "parameter": {
                            "text": "Visit us",
                            "phoneNumber": "",
                            "url": "https://www.wati.io",
                            "urlOriginal": null,
                            "urlType": "static",
                            "buttonParamMapping": null,
                            "copyOfferCode": null,
                            "orderDetails": null
                          }
                        }
                      ],
                      "buttonsType": "quick_reply_and_call_to_action",
                      "carouselCards": [],
                      "expiresIn": 0,
                      "includeExpiryTime": false,
                      "addSecurityRecommendation": false,
                      "isUrlBtnClickTrackingEnabled": false,
                      "limitedTimeOffer": null,
                      "quality": 0,
                      "creationMethod": 0
                    }
                  ],
                  "link": {
                    "prevPage": null,
                    "nextPage": null,
                    "pageNumber": 1,
                    "pageSize": 20,
                    "total": 2
                  }
                }
              }
            }
          },
          "403": {
            "description": "Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope."
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "pageSize",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Page Size"
          },
          {
            "in": "query",
            "name": "pageNumber",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Page Number"
          },
          {
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "description": "Template name filter"
          },
          {
            "in": "query",
            "name": "wabaId",
            "schema": {
              "type": "string"
            },
            "description": "WhatsApp Business Account ID filter"
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "description": "Your WATI workspace (tenant) ID. This required path segment identifies the WATI account for legacy v1 and v2 API requests.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "getMessageTemplatesV2",
        "description": "Compatibility reference for existing integrations. Use the V3 contract for this supported operation; do not copy the legacy payload or success semantics. Recommended V3 route: `/api/ext/v3/messageTemplates`.\n\nGet templates. GET /{tenantId}/api/v2/getMessageTemplates.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:read`, `messagetemplatev2:read`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.",
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "wati_integration:read",
                "messagetemplatev2:read"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "03c6d4bc1590408c569e65602f969c6a596672e3"
        },
        "x-wati-documentation": {
          "discovery": "compatibility-link-only",
          "recommendedPath": "/api/ext/v3/messageTemplates",
          "reason": "Use the V3 contract for this supported operation; do not copy the legacy payload or success semantics."
        },
        "x-internal": true
      },
      "parameters": [
        {
          "name": "tenantId",
          "in": "path",
          "required": true,
          "description": "Your WATI workspace (tenant) ID. This required path segment identifies the WATI account for legacy v1 and v2 API requests.",
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```