Delete Template

Delete a template by ID or alias.

DELETE/templates/{template_id}

Requires a full_access API key.

Path Parameters

template_idstringrequired

The template ID (UUID) or alias string.

Response Fields

objectstring

Always "template".

idstring

The template ID.

deletedboolean

Always true.

curl -X DELETE 'https://api.postflare.app/templates/e5f6a7b8-c9d0-1234-efab-345678901234' \
  -H 'Authorization: Bearer re_xxxxxxxxx'
const response = await fetch(
  'https://api.postflare.app/templates/welcome-email',
  {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer re_xxxxxxxxx',
    },
  }
);

const data = await response.json();

Response

Response
{
  "object": "template",
  "id": "e5f6a7b8-c9d0-1234-efab-345678901234",
  "deleted": true
}