Skip to main content
GET
/
whatsapp
/
businesses
/
{wabaId}
/
templates
List templates
curl --request GET \
  --url https://api.hubmessage.io/whatsapp/businesses/{wabaId}/templates \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "1900296177408890",
      "name": "confirm_account",
      "status": "APPROVED",
      "category": "AUTHENTICATION",
      "language": "en_US",
      "parameter_format": "POSITIONAL",
      "message_send_ttl_seconds": 600,
      "components": [
        {
          "type": "BODY",
          "text": "Your verification code is *{{1}}*. For your security, do not share it.",
          "add_security_recommendation": true,
          "example": {
            "body_text": [
              [
                "123456"
              ]
            ]
          }
        },
        {
          "type": "BUTTONS",
          "buttons": [
            {
              "type": "URL",
              "text": "Copy code",
              "url": "https://www.whatsapp.com/otp/code/?otp_type=COPY_CODE&code=otp{{1}}",
              "example": [
                "https://www.whatsapp.com/otp/code/?otp_type=COPY_CODE&code=otp123456"
              ]
            }
          ]
        }
      ]
    }
  ]
}

Overview

Returns all templates registered in a WABA. The components structure returned varies according to each template’s category and configuration.
The wabaId is obtained from the List WABAs endpoint.

Authorizations

Authorization
string
header
required

Secret Key generated in the Hub Message Security panel

Path Parameters

wabaId
string
required

WABA ID (obtained via List WABAs)

Example:

"428083093730937"

Response

List of templates

data
object[]