Delete a WhatsApp Template

Easily delete existing WhatsApp message templates using the DoubleTick API, ensuring efficient management of your templates. 🗑️✅

API Endpoint

Use the following endpoint to delete a WhatsApp message template:

DELETE https://public.doubletick.io/template

Request Headers

{
  "Authorization": "YOUR_API_KEY",
  "Content-Type": "application/json"
}

Request Body Parameters

{
  "name": "your_template_name",
  "wabaPhoneNumber": "sender_number"
}

Parameters

  • name (string, required): The name of the template to be deleted.
  • wabaPhoneNumber (string, required): Your registered WhatsApp Business Account phone number in international format.

Response

Success Response (201)

{
  "success": true
}

Bad Request (400)

{
  "message": "error_message",
  "error": "Bad Request",
  "statusCode": 400
}

Unauthorized (401)

{
  "message": "Invalid public api key",
  "error": "Unauthorized",
  "statusCode": 401
}

Unprocessable Entity (422)

{
  "message": "invalid file type for audio: text/html; charset=utf-8",
  "error": "Unprocessable Entity",
  "statusCode": 422
}

Best Practices

  • Double-check the template name before sending a delete request.
  • Ensure that the template is no longer required before deletion, as it cannot be restored.
  • Use the Manage Templates API to list all available templates before deleting.

What’s Next

Explore more message types and enhance your WhatsApp communication with DoubleTick API

Did this page help you?