Skip to Content
Docs
API referenceTemplates

Create a template

POST
/v1/templates

Creates the template shell only — call POST /v1/templates/{alias}/versions to give it renderable content. alias must be unique per tenant.

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.

Request Body

application/json
  1. body
alias*string
name*string

Response Body

Created.

application/json
  1. response
id?string
alias?string
name?string
Example Request
curl -X POST 'https://api.emitd.com/v1/templates' \  -H 'Content-Type: application/json' \  -d '{  "alias": "string",  "name": "string"}'
Example Response
{  "id": "string",  "alias": "string",  "name": "string"}