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

# Get message templates

Get message templates. GET /api/ext/v3/messageTemplates.

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:read`, `messagetemplatev3: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": {
    "/api/ext/v3/messageTemplates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get message templates",
        "operationId": "MessageTemplate_GetMessageTemplates",
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "description": "Name or phone number of the channel (null for default channel).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_number",
            "in": "query",
            "description": "Page number (1-based).",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Number of items per page (max 100).",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the message templates.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMessageTemplatesResponse"
                },
                "example": {
                  "templates": [
                    {
                      "id": "template_123",
                      "name": "Welcome Message",
                      "category": "MARKETING",
                      "sub_category": "STANDARD",
                      "hsm": "Hello {{1}}, welcome to our service!",
                      "hsm_original": "Hello {{1}}, welcome to our service!",
                      "custom_params": [
                        {
                          "name": "name",
                          "value": "customer_name"
                        }
                      ],
                      "status": "APPROVED",
                      "language_option": {
                        "key": "English (US)",
                        "value": "en_US",
                        "text": "English (US)"
                      },
                      "last_modified": "2024-01-15T10:30:00Z",
                      "type": "TEXT",
                      "body": "Hello {{1}}, welcome to our service!",
                      "body_original": "Hello {{1}}, welcome to our service!",
                      "buttons": [],
                      "carousel_cards": [],
                      "expires_in": 0,
                      "include_expiry_time": false,
                      "add_security_recommendation": false,
                      "is_url_btn_click_tracking_enabled": false,
                      "quality": "GREEN",
                      "creation_method": "HUMAN"
                    }
                  ],
                  "page_number": 1,
                  "page_size": 10,
                  "total": 1
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvalidRequestResponse"
                }
              }
            }
          },
          "401": {
            "description": "The request is unauthorized."
          },
          "403": {
            "description": "The request is forbidden. 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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenRequestResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Either the rate limit has been exceeded or usage limits have been reached."
          },
          "500": {
            "description": "Unexpected error occurred. Please try again.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnexpectedErrorResponse"
                }
              }
            }
          }
        },
        "description": "Get message templates. GET /api/ext/v3/messageTemplates.\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:read`, `messagetemplatev3: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",
                "messagetemplatev3:read"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "03c6d4bc1590408c569e65602f969c6a596672e3"
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ButtonMessageTemplateComponentDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of button component.",
            "nullable": true
          },
          "parameter": {
            "$ref": "#/components/schemas/ButtonMessageTemplateComponentParameterDto"
          }
        },
        "additionalProperties": false,
        "description": "Represents a button component for a message template."
      },
      "ButtonMessageTemplateComponentParameterDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The button text.",
            "nullable": true
          },
          "phone_number": {
            "type": "string",
            "description": "The phone number for call buttons.",
            "nullable": true
          },
          "url": {
            "type": "string",
            "description": "The URL for URL buttons.",
            "nullable": true
          },
          "url_original": {
            "type": "string",
            "description": "The original URL content.",
            "nullable": true
          },
          "url_type": {
            "type": "string",
            "description": "The type of URL.",
            "nullable": true
          },
          "button_param_mapping": {
            "$ref": "#/components/schemas/TemplateParamDto"
          },
          "copy_offer_code": {
            "type": "string",
            "description": "The copy offer code.",
            "nullable": true
          },
          "order_details": {
            "$ref": "#/components/schemas/OrderDetailsParametersDto"
          }
        },
        "additionalProperties": false,
        "description": "Represents parameters for a button component."
      },
      "CarouselMessageTemplateViewModelDto": {
        "type": "object",
        "properties": {
          "header": {
            "$ref": "#/components/schemas/HeaderMessageTemplateComponentDto"
          },
          "body": {
            "type": "string",
            "description": "The body content.",
            "nullable": true
          },
          "body_original": {
            "type": "string",
            "description": "The original body content.",
            "nullable": true
          },
          "body_param_mapping": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateParamDto"
            },
            "description": "The body parameter mapping.",
            "nullable": true
          },
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ButtonMessageTemplateComponentDto"
            },
            "description": "The list of buttons.",
            "nullable": true
          },
          "buttons_type": {
            "type": "string",
            "description": "The type of buttons.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a carousel message template view model."
      },
      "CatalogInfoDto": {
        "type": "object",
        "properties": {
          "catalog_id": {
            "type": "string",
            "description": "The catalog identifier.",
            "nullable": true
          },
          "thumbnail_product": {
            "$ref": "#/components/schemas/CatalogProductDto"
          },
          "is_active": {
            "type": "boolean",
            "description": "Whether the catalog is active."
          }
        },
        "additionalProperties": false,
        "description": "Represents catalog information for a message template."
      },
      "CatalogProductDto": {
        "type": "object",
        "properties": {
          "product_retailer_id": {
            "type": "string",
            "description": "The product retailer identifier.",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "The product identifier.",
            "nullable": true
          },
          "retailer_product_group_id": {
            "type": "string",
            "description": "The retailer product group identifier.",
            "nullable": true
          },
          "price": {
            "type": "string",
            "description": "The product price.",
            "nullable": true
          },
          "sale_price": {
            "type": "string",
            "description": "The sale price.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The product name.",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "description": "The currency.",
            "nullable": true
          },
          "image_url": {
            "type": "string",
            "description": "The image URL.",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductErrorDto"
            },
            "description": "The list of product errors.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a catalog product."
      },
      "ForbiddenRequestResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents the result of a forbidden request, containing error details."
      },
      "GetMessageTemplatesResponse": {
        "type": "object",
        "properties": {
          "templates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MessageTemplateDto"
            },
            "description": "The list of message templates.",
            "nullable": true
          },
          "page_number": {
            "type": "integer",
            "description": "The current page number.",
            "format": "int32"
          },
          "page_size": {
            "type": "integer",
            "description": "The number of items per page.",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "description": "The total number of message templates available.",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Response model for getting message templates."
      },
      "HeaderMessageTemplateComponentDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of header component.",
            "nullable": true
          },
          "text": {
            "type": "string",
            "description": "The text content of the header.",
            "nullable": true
          },
          "link": {
            "type": "string",
            "description": "The link associated with the header.",
            "nullable": true
          },
          "media_header_id": {
            "type": "string",
            "description": "The media header identifier.",
            "nullable": true
          },
          "media_from_pc": {
            "type": "string",
            "description": "The media from PC identifier.",
            "nullable": true
          },
          "header_original": {
            "type": "string",
            "description": "The original header content.",
            "nullable": true
          },
          "header_param_mapping": {
            "$ref": "#/components/schemas/TemplateParamDto"
          }
        },
        "additionalProperties": false,
        "description": "Represents a header component for a message template."
      },
      "InvalidRequestResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents the result of a bad request, containing error details."
      },
      "LanguageOptionDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "The language key identifier.",
            "nullable": true
          },
          "value": {
            "type": "string",
            "description": "The language value.",
            "nullable": true
          },
          "text": {
            "type": "string",
            "description": "The display text for the language option.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a language option for a message template."
      },
      "LimitedTimeOfferDto": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The offer text description.",
            "nullable": true
          },
          "has_expiration": {
            "type": "boolean",
            "description": "Whether the offer has an expiration time."
          },
          "expiration_time": {
            "type": "string",
            "description": "The expiration date and time of the offer.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents a limited time offer configuration for a message template."
      },
      "MessageTemplateDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the message template.",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The name of the message template.",
            "nullable": true
          },
          "category": {
            "type": "string",
            "description": "The category of the template.",
            "nullable": true
          },
          "sub_category": {
            "type": "string",
            "description": "The subcategory of the template.",
            "nullable": true
          },
          "catalog_info": {
            "$ref": "#/components/schemas/CatalogInfoDto"
          },
          "hsm": {
            "type": "string",
            "description": "The HSM (Highly Structured Message) content.",
            "nullable": true
          },
          "hsm_original": {
            "type": "string",
            "description": "The original HSM content.",
            "nullable": true
          },
          "custom_params": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateParameterDto"
            },
            "description": "The list of custom parameters associated with this template.",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "The current status of the template.",
            "nullable": true
          },
          "language_option": {
            "$ref": "#/components/schemas/LanguageOptionDto"
          },
          "last_modified": {
            "type": "string",
            "description": "The last modification date of the template.",
            "format": "date-time"
          },
          "type": {
            "type": "string",
            "description": "The type of the message template.",
            "nullable": true
          },
          "header": {
            "$ref": "#/components/schemas/HeaderMessageTemplateComponentDto"
          },
          "body": {
            "type": "string",
            "description": "The body content of the template.",
            "nullable": true
          },
          "body_original": {
            "type": "string",
            "description": "The original body content of the template.",
            "nullable": true
          },
          "footer": {
            "type": "string",
            "description": "The footer content of the template.",
            "nullable": true
          },
          "buttons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ButtonMessageTemplateComponentDto"
            },
            "description": "The list of button components.",
            "nullable": true
          },
          "buttons_type": {
            "type": "string",
            "description": "The type of buttons used in the template.",
            "nullable": true
          },
          "carousel_cards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CarouselMessageTemplateViewModelDto"
            },
            "description": "The list of carousel cards for the template.",
            "nullable": true
          },
          "expires_in": {
            "type": "integer",
            "description": "Expiration time in seconds.",
            "format": "int32"
          },
          "include_expiry_time": {
            "type": "boolean",
            "description": "Whether to include expiry time."
          },
          "add_security_recommendation": {
            "type": "boolean",
            "description": "Whether to add security recommendation."
          },
          "is_url_btn_click_tracking_enabled": {
            "type": "boolean",
            "description": "Whether URL button click tracking is enabled."
          },
          "limited_time_offer": {
            "$ref": "#/components/schemas/LimitedTimeOfferDto"
          },
          "quality": {
            "type": "string",
            "description": "The quality rating of the template.",
            "nullable": true
          },
          "creation_method": {
            "type": "string",
            "description": "The method used to create the template.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a message template with its configuration and parameters."
      },
      "OrderDetailsParametersDto": {
        "type": "object",
        "properties": {
          "reference_id": {
            "type": "string",
            "description": "The reference identifier.",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "The parameter type.",
            "nullable": true
          },
          "payment_configuration": {
            "type": "string",
            "description": "The payment configuration.",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "description": "The currency.",
            "nullable": true
          },
          "total_amount": {
            "type": "string",
            "description": "The total amount.",
            "nullable": true
          },
          "order": {
            "type": "string",
            "description": "The order details.",
            "nullable": true
          },
          "payment_type": {
            "type": "string",
            "description": "The payment type.",
            "nullable": true
          },
          "beneficiaries": {
            "type": "string",
            "description": "The list of beneficiaries.",
            "nullable": true
          },
          "payment_settings": {
            "type": "string",
            "description": "The payment settings.",
            "nullable": true
          },
          "shipping_info": {
            "type": "string",
            "description": "The shipping information.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents order details parameters."
      },
      "ProductErrorDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The error title.",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "The error type.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a product error."
      },
      "TemplateParamDto": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "description": "The parameter index.",
            "format": "int32"
          },
          "param_name": {
            "type": "string",
            "description": "The parameter name.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a template parameter."
      },
      "TemplateParameterDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the template parameter.",
            "nullable": true
          },
          "value": {
            "type": "string",
            "description": "The value of the template parameter.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a parameter used within a message template."
      },
      "UnexpectedErrorResponse": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The error code associated with the error.",
            "format": "int32"
          },
          "message": {
            "type": "string",
            "description": "The descriptive error message explaining what went wrong.",
            "nullable": true
          },
          "timestamp": {
            "type": "string",
            "description": "The timestamp indicating when the error was recorded.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Represents an unexpected error."
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```