WhatsAble
API v1Templates

Delete a template

deletehttps://api.whatsable.app/v1/templates/{id}
Build a request to copy

This page never sends a request. Fill in the fields, then copy the request and run it from your server.

Request
curl -X DELETE 'https://api.whatsable.app/v1/templates/string'

Deletes a template at Meta and in WhatsAble. It cannot be undone, and a message that uses the template can no longer be sent.

A template belongs to a WhatsApp Business Account, which several numbers can share. A key limited to some numbers can delete it only if the key may use every connected number of that account, otherwise 403 number_not_allowed_for_key.

When no number of the account is connected, WhatsAble cannot ask Meta, and the call answers 409 template_waba_not_connected. A template that a broadcast uses answers 409 template_used_by_broadcast. Both keep the template in WhatsAble, and neither asks Meta, except for a broadcast created during the call.

Authorization

bearerAuth
headerAuthorizationBearer <nfy_live_<32 characters>>

An API key from Settings > API keys, sent as Authorization: Bearer <key>.

Path Parameters

id*string

The template id.

Length1 <= length <= 64

Response Body

The template was deleted.

application/json
  1. response
object*string
id*string
Length1 <= length <= 64
deleted*boolean
Example Request
curl -X DELETE 'https://api.whatsable.app/v1/templates/string'
Example Response
{  "object": "template",  "id": "string",  "deleted": true}