Get Template Details
curl --request GET \
--url https://api.example.com/api/whatsapp/v1/Template/Getimport requests
url = "https://api.example.com/api/whatsapp/v1/Template/Get"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/whatsapp/v1/Template/Get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errorCode": 123,
"errorDescription": "<string>",
"data": "<string>"
}Templates
Get Template Details
Retrieve a WhatsApp template by its Meta template ID
Get Template Details
curl --request GET \
--url https://api.example.com/api/whatsapp/v1/Template/Getimport requests
url = "https://api.example.com/api/whatsapp/v1/Template/Get"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/whatsapp/v1/Template/Get', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errorCode": 123,
"errorDescription": "<string>",
"data": "<string>"
}Returns the structure, language, category, components, and example placeholder values for one template.
Request
string
required
Meta’s unique identifier for the template. The template must belong to a WABA available to the authenticated user.
curl --request GET \
--url "https://app.notify.ng/api/whatsapp/v1/Template/Get?MetaTemplateId=12121212212" \
--user "$CLIENT_ID:$API_KEY" \
--header "Accept: application/json"
Response
number
0 when the request succeeds; otherwise, an API error code.string
Human-readable result description.
string
A JSON-encoded string containing the template definition.
{
"errorCode": 0,
"errorDescription": "Template details fetched successfully",
"data": "{\"name\":\"order_update\",\"language\":\"en\",\"category\":\"UTILITY\",\"components\":[{\"type\":\"BODY\",\"text\":\"Hello {{1}}, your order {{2}} is ready.\"}]}"
}
data is JSON encoded inside a string. Parse the outer response first, then parse data to work with the template object.const result = await response.json();
const template = JSON.parse(result.data);

