Skip to main content

Delete Template

Delete a WhatsApp template from Arsel and from Meta. It can no longer be sent.

Meta keeps the name of a deleted approved template reserved for 30 days, so creating a template with the same name and language may be refused until then.

Endpoint​

DELETE /whatsapp/templates/:id

Returns: 200 OK

Headers​

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Path Parameters​

ParameterTypeDescription
idstringThe template ID

Response​

{
"object": "whatsapp_template",
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"deleted": true
}

Examples​

curl -X DELETE "https://api.arsel.sa/v1/whatsapp/templates/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer $ARSEL_API_KEY"

Error Responses​

{
"status_code": 404,
"name": "not_found",
"message": "Template not found"
}