Skip to Content
Templates

Delete a template

DELETE
/v1/numbers/{phone_number}/templates/{name}

Delete a template in every language, or one language with hsm_id.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

phone_number*string

Your WhatsApp number, digits only, e.g. 393401234567.

name*string

Name of the template. Deletes every language unless hsm_id is set.

Query Parameters

hsm_id?|

ID of one language of the template. Without it, every language is deleted.

Response Body

OK

application/json
  1. response

WhatsApp's response, passed through unchanged.

[key: string]?any
Example Request
curl -X DELETE 'https://api.wapiu.ai/v1/numbers/393401234567/templates/order_shipped'
Example Response
{}