Templates
Delete template
Session onlyDELETE
/api/v1/templates/{id|alias}Requires a dashboard session (API key → 403). 204.
Path Parameters
id|aliasstringrequired
Notes
Verified 2026-11-02 in Postman with a dashboard session by alias (API key -> 403): 204 No Content, empty body. Unknown id / starter errors are ASSUMED (verify live).
Errors
| Status | Case | Body |
|---|---|---|
| 403 | errorApiKey | {"error": {"code": "Forbidden", "message": "You do not have permission to perform this action."}} |
| 403 | errorStarter | {"error": {"code": "Forbidden", "message": "Starter templates cannot be modified. Duplicate it first."}} |
Snippets use the MailCraftApi (C#) and MailCraft (Python) helpers from Introduction → Helpers.