API referenceTemplates
Make an existing version the live one
POST
Rolls back (or forward) to any existing version without publishing new content. Sends using the alias render this version immediately. A key with guardrails cannot activate a version (403 policy_violation, policy_template_activation_not_allowed).
bearerAuthheader
AuthorizationBearer <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.
alias*stringversion*integerActivated.
application/json- response
alias?stringactive_version?integercurl -X POST 'https://api.emitd.com/v1/templates/string/versions/0/activate'Example Response
{ "alias": "string", "active_version": 0}