Runs examples for real against your account. Test keys only; kept in this tab, never stored on our side. Get a key
ZapSMTP / Docs / Templates

Delete a template

DELETE/v1/templates/{id}

Delete a template.

Requires a full-access live key; test keys get 403 test_key_restricted.

Path parameters

idstringrequired
Template id or alias

Errors

restricted_api_keyHTTP 403
test_key_restrictedHTTP 403
test-mode keys can send test email and read, not change the account: use a live key
not_foundHTTP 404
template not found
DELETE/v1/templates/{id}
curl -X DELETE 'https://zapsmtp.xyz/v1/templates/welcome' \
  -H "Authorization: Bearer $ZAP_API_KEY"
Set ZAP_API_KEY in your environment.
Response 200 OK
{
  "object": "template",
  "id": "019a1f23-7f80-7192-8b3c-4d5e6f7a8b9c",
  "deleted": true
}