1. Home
  2. Docs
  3. WhatsApp
  4. Manage WhatsApp Template
  5. Delete Template

Delete Template

To remove templates, you must provide the template name.

PARAMETERFORMATREQUIREDDESCRIPTIONDEFAULT
namestringYesTemplate name
idstringOptionalTemplate id

Sample request using CURL:

$ curl -X DELETE https://api.geniq.io/rest/v1/whatsapp/message_templates \
-H 'Authorization: Bearer [TOKEN]' \
-d "name=template1" 

Parameters returned in the API response:

PARAMETERFORMATDESCRIPTION
responseCodestringResponse code. Possible values:
0: Success
8: Account Invalid Configuration
88: General Failure
responseMessagestringResponse message

Sample Response:

{
"responseCode": "0",
"responseMessage": "Success",
"id":"778322986552978"
}