Skip to main content

@wildix/classound-client > ListWhatsAppTemplatesInput

ListWhatsAppTemplatesInput interface

Example WhatsApp get template response for /s2s/whatsapp/templates?did=+12026018832:

{
"type": "WHATSAPP.TEMPLATES",
"success": true,
"did": "+12026018832",
"data": [
{
"name": "template_with_variables",
"parameter_format": "NAMED",
"components": [
{
"type": "HEADER",
"format": "IMAGE",
"example": {
"header_handle": [
"https://scontent.whatsapp.net/v/t61.29466-34/475889752_969571525297748_5412250121960376443_n.jpg?...etc"
]
}
},
{
"type": "BODY",
"text": "Hi,\n\nthis is a test template from {{name}} to number {{did}} on date {{date}}.\nThis is a test number: {{number}}.\nThanks.",
"example": {
"body_text_named_params": [
{
"param_name": "name",
"example": "Alex"
},
{
"param_name": "did",
"example": "+380978128899"
},
{
"param_name": "date",
"example": "28.03.2025"
},
{
"param_name": "number",
"example": "5"
}
]
}
},
{
"type": "BUTTONS",
"buttons": [
{
"type": "QUICK_REPLY",
"text": "Quick Reply"
},
{
"type": "QUICK_REPLY",
"text": "Preconfigured Response"
}
]
}
],
"language": "en",
"status": "APPROVED",
"category": "MARKETING",
"id": "969571521964415"
}
]
}

Signature:

export interface ListWhatsAppTemplatesInput 

Properties

Property

Modifiers

Type

Description

did

string