Skip to main content

Overview

Retrieve all WhatsApp message templates associated with a connected WhatsApp Business phone number. These templates can be used when creating WhatsApp campaigns or configuring WhatsApp AI Agents.

Prerequisites

  • Bearer Token authentication
  • A connected WhatsApp Business phone number

Request

string
required
Bearer token for authenticated workspace access.
string
required
Unique identifier of the connected WhatsApp Business phone number.

Response

boolean
Indicates whether the request completed successfully.
integer
HTTP status code returned by the API.
string
Confirmation message indicating the templates were fetched successfully.
array
List of available WhatsApp templates.
string
Unique identifier of the template.
string
Template name registered in WhatsApp Business.
string
Language supported by the template.
string
Template category such as Utility, Marketing, or Authentication.
string
Current approval status of the template.

Error Handling

Only templates that are available for the selected WhatsApp Business phone number are returned.
Related endpoints:
  • GET /api/whatsapp/get-variable-by-template-id/{phoneNumberId}/{templateId} — Retrieve variables for a template.
  • GET /api/whatsapp/get-all-templates — Retrieve all templates stored in the workspace.