Skip to main content
GET
/
whatsapp
/
businesses
/
{wabaId}
/
templates
Listar 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": "pt_BR",
      "parameter_format": "POSITIONAL",
      "message_send_ttl_seconds": 600,
      "components": [
        {
          "type": "BODY",
          "text": "Seu código de verificação é *{{1}}*. Para sua segurança, não o compartilhe.",
          "add_security_recommendation": true,
          "example": {
            "body_text": [
              [
                "123456"
              ]
            ]
          }
        },
        {
          "type": "BUTTONS",
          "buttons": [
            {
              "type": "URL",
              "text": "Copiar código",
              "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 gerada no painel de Segurança do Hub Message

Path Parameters

wabaId
string
required

ID do WABA (obtido via Listar WABAs)

Example:

"428083093730937"

Response

Lista de templates

data
object[]