Delete a template
Delete a template
此页面暂无中文版本。显示默认语言(English)。
Delete a template
DELETE
https://api.cekat.ai/templates/{wa_template_id}Deletes a template from Meta and from Cekat. Scheduled campaigns that use the template will fail when they run.
Authorization
api_keystringheaderrequired
Your Cekat API key, from Settings → Developers & API in the Cekat dashboard.
Path parameters
wa_template_idstringrequired
The template's wa_template_id.
Response
200
400
401
404
429
Template deleted.
successboolean
status_codeinteger
The template's inbox is not a WhatsApp inbox, or Meta refused the deletion.
successboolean
status_codeinteger
errorobject
Show child attributes
messagestring
The API key is missing or invalid.
successboolean
status_codeinteger
errorobject
Show child attributes
messagestring
No template with this ID belongs to your business.
successboolean
status_codeinteger
errorobject
Show child attributes
messagestring
Rate limit exceeded. Wait and retry.
messagestring
DELETE/templates/{wa_template_id}
cURL
JavaScript
Python
PHP
curl --request DELETE \
--url 'https://api.cekat.ai/templates/3c90c3cc-0d44-4b50-8888-8dd25736052a' \
--header 'api_key: YOUR_API_KEY'
const response = await fetch('https://api.cekat.ai/templates/3c90c3cc-0d44-4b50-8888-8dd25736052a', {
method: 'DELETE',
headers: { 'api_key': 'YOUR_API_KEY' },
});
const data = await response.json();
console.log(data);
import requests
url = "https://api.cekat.ai/templates/3c90c3cc-0d44-4b50-8888-8dd25736052a"
headers = {"api_key": "YOUR_API_KEY"}
response = requests.delete(url, headers=headers)
print(response.json())
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.cekat.ai/templates/3c90c3cc-0d44-4b50-8888-8dd25736052a',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['api_key: YOUR_API_KEY'],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Response
200
400
401
404
429
{
"success": true,
"status_code": 1
}
{
"success": true,
"status_code": 1,
"error": {
"message": "<string>"
}
}
{
"success": true,
"status_code": 1,
"error": {
"message": "<string>"
}
}
{
"success": true,
"status_code": 1,
"error": {
"message": "<string>"
}
}
{
"message": "<string>"
}