Delete Template
Delete a template by ID or alias.
DELETE
/templates/{template_id}Requires a full_access API key.
Path Parameters
template_idstringrequiredThe template ID (UUID) or alias string.
Response Fields
objectstringAlways "template".
idstringThe template ID.
deletedbooleanAlways 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
{
"object": "template",
"id": "e5f6a7b8-c9d0-1234-efab-345678901234",
"deleted": true
}