GET
/
whatsapp
/
templates

Fetches all message templates from the associated WhatsApp Business Account (WABA).

Query Parameters

  • agentId: The ID of the agent with WhatsApp configured.

Response

Returns a list of templates with their name, language, status, category, and components.

{
  "data": [
    {
      "name": "hello_world",
      "language": "en_US",
      "status": "APPROVED",
      "category": "MARKETING",
      "id": "1234567890",
      "components": [
        {
          "type": "BODY",
          "text": "Hello World!"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

agentId
string
required

ID of the agent with WhatsApp configured.

Response

200 - application/json
data
object[]