API referenceTemplates
Create a template
POST
Creates the template shell only — call POST /v1/templates/{alias}/versions to give it renderable content. alias must be unique per tenant.
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.
application/json- body
alias*stringname*stringCreated.
application/json- response
id?stringalias?stringname?stringcurl -X POST "https://example.com/v1/templates" \ -H "Content-Type: application/json" \ -d '{ "alias": "string", "name": "string" }'{ "id": "string", "alias": "string", "name": "string"}