Skip to Content
Docs
API referenceTemplates

Delete a template and every version

DELETE
/v1/templates/{alias}

Removes the template and all its versions. The alias becomes reusable immediately; sends that still use it start failing.

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <key>. Looked up by SHA-256 hash (email_core::sha256_hex) against api_keys.hash; revoked keys and keys belonging to a suspended tenant are rejected. See the top-level Authentication section for permission levels.

Path Parameters

alias*string

Response Body

Deleted.

application/json
  1. response
deleted?boolean
alias?string
Example Request
curl -X DELETE 'https://api.emitd.com/v1/templates/string'
Example Response
{  "deleted": true,  "alias": "string"}