WhatsApp Business API templates

WABA templates are a way to initiate a conversation with a client in the WhatsApp Business API channel.

To get a list of WABA templates that were created in Wazzup, send:

GET https://api.wazzup24.com/v3/templates/whatsapp

Request parameters

Name Type Description
limit number Records returned limit

Default: 100

offset number From which template to send the list. Useful if you have previously requested a list, but since then the user has created new templates and you only need to get new templates

Default: 0

Request example

curl --location --request GET 'https://api.wazzup24.com/v3/templates/whatsapp' \
--header 'Authorization: Bearer f6633fb8f4c648fasssf0e9f43a334c1b' \
--data-raw ''

Response parameters

Name Type Description
templateGuid string Template ID
accountId number Account ID
title string Template name in Wazzup account. It is used to find the template faster in the template list
name string Template name, that will be sent to Facebook
waba object Object filled with the information about Meta Business Account
waba.wabaId string Meta Business Account ID
waba.wabaName string Meta Business Account name
channels array Channel list to which templates are connected
category string Template category
language string Template language
status string Moderation status
rejected_reason string The reason for the rejection if the status is rejected
namespace string Facebook namespace
components Object (Array) List of template components
components.type  string Template component type: HEADER, FOOTER, BUTTONS, BODY
components.format string Format. Only for component HEADER: IMAGE, DOCUMENT, VIDEO, TEXT
components.text string Component text, if there’s any text
components.example String (Array) List of examples of filling variables for the corresponding template component
components.buttons Object (Array) List of buttons, if they are in the template
components.buttons.type string Button type: URL, QUICK_REPLY, PHONE_NUMBER
components.buttons.text string Button text
components.buttons.url string The link that the button will follow if it is a button of the URL type

Answer examples

HTTP/1.1 200 OK
{
templates: [
{
"templateGuid": "8d255e5d-aefd-44dc-8131-c3ad6c3ab28c",
"accountId": 70789196,
"title": "Name",
"name": "Name",
"waba": {
"wabaId": 194388939529290,
"wabaName": "Business Account name"
},
"channels": ["15959c11-5c8d-45c5-9825-d220473caff6"],
"category": "ACCOUNT_UPDATE",
"language": "en",
"status": "approved",
"rejected_reason": null,
"namespace": "c8ae5f90_307a_ca4c_b8f6_d1e2a2573574",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Hi {{1}}",
"example": ["Ann"]
},
{
"type": "BODY",
"text": "Service update"
},
{
"type": "FOOTER",
"text": "Best regards, Alex"
},
{
"type": "BUTTONS",
"buttons": [
{ "type": "URL", "text": "Learn more", "url": "#" }
]
}
]
}
],
totalCount: 1
}