List message templates

View as MarkdownOpen in Claude
Returns the message templates for your Space, optionally filtered by WhatsApp Business Account or approval status. A template must have `template_status` of `approved` before it can be used to send messages. #### Permissions The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Numbers_. [Learn more about API scopes](/docs/platform/your-signalwire-api-space).

Authentication

AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token. The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password. Example: ``` Authorization: Basic base64(project_id:token) ```

Query parameters

whatsapp_business_idstringOptionalformat: "uuid"
Filter to templates belonging to a specific WhatsApp Business Account.
statusenumOptional
Filter by approval status.

Response

The request has succeeded.
datalist of objects
List of message templates.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error