> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/api-reference/internal/enrolment-and-messaging/email-templates.md). Agents can also search and read this documentation through its [MCP server](https://docs.thewalletcrew.io/~gitbook/mcp).

# Email Templates

## List e-mail templates

> Sorted by id, with the cultures each has design content for.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EmailTemplates"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.emailTemplate:read"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"EmailTemplateListItem":{"required":["cultures","id","tags"],"type":"object","properties":{"id":{"type":"string","description":"Identifier the platform sends the template by."},"cultures":{"type":"array","items":{"type":"string"},"description":"Sorted culture codes with a design source. A listed culture may still lack a compiled subject and body."},"tags":{"type":"array","items":{"type":"string"},"description":"Free-form labels of the template, shared by all its cultures. Empty when it has none."},"category":{"type":["null","string"],"description":"Category of the template: `blank`, `accountConfirmation`, `share` or `welcome`. Null when it has none, as for templates created before categories existed."}},"additionalProperties":false,"description":"E-mail template list entry."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/emailTemplates":{"get":{"tags":["EmailTemplates"],"summary":"List e-mail templates","description":"Sorted by id, with the cultures each has design content for.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"E-mail templates returned.","content":{"text/plain":{"schema":{"type":"array","items":{"description":"E-mail template list entry.","$ref":"#/components/schemas/EmailTemplateListItem"}}},"application/json":{"schema":{"type":"array","items":{"description":"E-mail template list entry.","$ref":"#/components/schemas/EmailTemplateListItem"}}},"text/json":{"schema":{"type":"array","items":{"description":"E-mail template list entry.","$ref":"#/components/schemas/EmailTemplateListItem"}}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.emailTemplate:read` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant does not exist.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Create e-mail template

> To duplicate a template, GET it and POST it back under a new id. To add a culture to an existing template, use \`PUT /emailTemplates/{id}\`.\
> Several cultures can be created in one call. Example: \`{ "id": "welcome", "tags": \["onboarding"], "category": "welcome", "cultures": { "en": { "html": "\<p>Hi\</p>", "css": "", "subject": "Welcome", "body": "\<p>Hi\</p>" } } }\`.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EmailTemplates"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.emailTemplate:write"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"CreateEmailTemplateRequest":{"required":["cultures","id"],"type":"object","properties":{"id":{"minLength":1,"type":"string","description":"Template identifier: 1 to 50 letters, digits, hyphens, underscores, dots or spaces; not `.` or `..`, else 400. 409 if it exists."},"cultures":{"type":"object","additionalProperties":{"description":"Design source and compiled content of one culture.","$ref":"#/components/schemas/EmailTemplateCultureContent"},"description":"Content per culture code. At least one entry; each code 1 to 10 letters, digits, hyphens or underscores, else 400."},"tags":{"type":["null","array"],"items":{"type":"string"},"description":"Free-form labels of the template, shared by all its cultures."},"category":{"type":["null","string"],"description":"Category of the template: `blank`, `accountConfirmation`, `share` or `welcome`, else 400. Omit for none."}},"additionalProperties":false,"description":"Request body to create an e-mail template."},"EmailTemplateCultureContent":{"required":["css","html"],"type":"object","properties":{"html":{"type":"string","description":"HTML design source, reloaded into the editor, not sent. Null is saved as empty."},"css":{"type":"string","description":"CSS design source, reloaded into the editor, not sent. Null is saved as empty."},"subject":{"type":["null","string"],"description":"Compiled subject used to send mail. Null in a response when the culture has no compiled content yet."},"body":{"type":["null","string"],"description":"Compiled body (HTML with Liquid placeholders) used to send mail. Null in a response when the culture has no compiled content yet."}},"additionalProperties":false,"description":"Design source and compiled content of one culture."},"EmailTemplateDefinition":{"required":["cultures","id","tags"],"type":"object","properties":{"id":{"type":"string","description":"Identifier the platform sends the template by."},"cultures":{"type":"object","additionalProperties":{"description":"Design source and compiled content of one culture.","$ref":"#/components/schemas/EmailTemplateCultureContent"},"description":"Content of every culture with a design source, keyed by culture code."},"tags":{"type":"array","items":{"type":"string"},"description":"Free-form labels of the template, shared by all its cultures. Empty when it has none."},"category":{"type":["null","string"],"description":"Category of the template: `blank`, `accountConfirmation`, `share` or `welcome`. Null when it has none."}},"additionalProperties":false,"description":"Full e-mail template definition."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/emailTemplates":{"post":{"tags":["EmailTemplates"],"summary":"Create e-mail template","description":"To duplicate a template, GET it and POST it back under a new id. To add a culture to an existing template, use `PUT /emailTemplates/{id}`.\nSeveral cultures can be created in one call. Example: `{ \"id\": \"welcome\", \"tags\": [\"onboarding\"], \"category\": \"welcome\", \"cultures\": { \"en\": { \"html\": \"<p>Hi</p>\", \"css\": \"\", \"subject\": \"Welcome\", \"body\": \"<p>Hi</p>\" } } }`.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Template id and the content of each culture.","content":{"application/json":{"schema":{"description":"Request body to create an e-mail template.","$ref":"#/components/schemas/CreateEmailTemplateRequest"}},"text/json":{"schema":{"description":"Request body to create an e-mail template.","$ref":"#/components/schemas/CreateEmailTemplateRequest"}},"application/*+json":{"schema":{"description":"Request body to create an e-mail template.","$ref":"#/components/schemas/CreateEmailTemplateRequest"}}},"required":true},"responses":{"201":{"description":"E-mail template created.","content":{"text/plain":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}},"application/json":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}},"text/json":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}}}},"400":{"description":"Invalid id, culture, tag or category, no culture, or a subject without a body (or the reverse).","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.emailTemplate:write` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"The tenant does not exist.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"409":{"description":"A template with this id already exists.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Get e-mail template

> Design source and, when available, compiled subject and body for every culture.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EmailTemplates"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.emailTemplate:read"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"EmailTemplateDefinition":{"required":["cultures","id","tags"],"type":"object","properties":{"id":{"type":"string","description":"Identifier the platform sends the template by."},"cultures":{"type":"object","additionalProperties":{"description":"Design source and compiled content of one culture.","$ref":"#/components/schemas/EmailTemplateCultureContent"},"description":"Content of every culture with a design source, keyed by culture code."},"tags":{"type":"array","items":{"type":"string"},"description":"Free-form labels of the template, shared by all its cultures. Empty when it has none."},"category":{"type":["null","string"],"description":"Category of the template: `blank`, `accountConfirmation`, `share` or `welcome`. Null when it has none."}},"additionalProperties":false,"description":"Full e-mail template definition."},"EmailTemplateCultureContent":{"required":["css","html"],"type":"object","properties":{"html":{"type":"string","description":"HTML design source, reloaded into the editor, not sent. Null is saved as empty."},"css":{"type":"string","description":"CSS design source, reloaded into the editor, not sent. Null is saved as empty."},"subject":{"type":["null","string"],"description":"Compiled subject used to send mail. Null in a response when the culture has no compiled content yet."},"body":{"type":["null","string"],"description":"Compiled body (HTML with Liquid placeholders) used to send mail. Null in a response when the culture has no compiled content yet."}},"additionalProperties":false,"description":"Design source and compiled content of one culture."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/emailTemplates/{id}":{"get":{"tags":["EmailTemplates"],"summary":"Get e-mail template","description":"Design source and, when available, compiled subject and body for every culture.","parameters":[{"name":"id","in":"path","description":"Template identifier.","required":true,"schema":{"type":"string"}},{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"E-mail template returned.","content":{"text/plain":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}},"application/json":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}},"text/json":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.emailTemplate:read` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"No culture of this template has a design source, or the tenant does not exist.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Save e-mail template

> Upserts the given cultures; others are untouched. Omit \`subject\` and \`body\` of a culture to keep its compiled content. Omit \`tags\` or \`category\` to keep them; send an empty array or an empty string to clear them.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EmailTemplates"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.emailTemplate:write"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"SaveEmailTemplateRequest":{"required":["cultures"],"type":"object","properties":{"cultures":{"type":"object","additionalProperties":{"description":"Design source and compiled content of one culture.","$ref":"#/components/schemas/EmailTemplateCultureContent"},"description":"Content to upsert per culture code; other cultures are untouched. At least one entry; each code 1 to 10 letters, digits, hyphens or underscores, else 400."},"tags":{"type":["null","array"],"items":{"type":"string"},"description":"Free-form labels of the template, shared by all its cultures. Omit to keep the current tags; an empty array clears them."},"category":{"type":["null","string"],"description":"Category of the template: `blank`, `accountConfirmation`, `share` or `welcome`, else 400. Omit to keep the current category; an empty string clears it."}},"additionalProperties":false,"description":"Request body to save culture content on an existing template."},"EmailTemplateCultureContent":{"required":["css","html"],"type":"object","properties":{"html":{"type":"string","description":"HTML design source, reloaded into the editor, not sent. Null is saved as empty."},"css":{"type":"string","description":"CSS design source, reloaded into the editor, not sent. Null is saved as empty."},"subject":{"type":["null","string"],"description":"Compiled subject used to send mail. Null in a response when the culture has no compiled content yet."},"body":{"type":["null","string"],"description":"Compiled body (HTML with Liquid placeholders) used to send mail. Null in a response when the culture has no compiled content yet."}},"additionalProperties":false,"description":"Design source and compiled content of one culture."},"EmailTemplateDefinition":{"required":["cultures","id","tags"],"type":"object","properties":{"id":{"type":"string","description":"Identifier the platform sends the template by."},"cultures":{"type":"object","additionalProperties":{"description":"Design source and compiled content of one culture.","$ref":"#/components/schemas/EmailTemplateCultureContent"},"description":"Content of every culture with a design source, keyed by culture code."},"tags":{"type":"array","items":{"type":"string"},"description":"Free-form labels of the template, shared by all its cultures. Empty when it has none."},"category":{"type":["null","string"],"description":"Category of the template: `blank`, `accountConfirmation`, `share` or `welcome`. Null when it has none."}},"additionalProperties":false,"description":"Full e-mail template definition."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/emailTemplates/{id}":{"put":{"tags":["EmailTemplates"],"summary":"Save e-mail template","description":"Upserts the given cultures; others are untouched. Omit `subject` and `body` of a culture to keep its compiled content. Omit `tags` or `category` to keep them; send an empty array or an empty string to clear them.","parameters":[{"name":"id","in":"path","description":"Template identifier.","required":true,"schema":{"type":"string"}},{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Content to save per culture.","content":{"application/json":{"schema":{"description":"Request body to save culture content on an existing template.","$ref":"#/components/schemas/SaveEmailTemplateRequest"}},"text/json":{"schema":{"description":"Request body to save culture content on an existing template.","$ref":"#/components/schemas/SaveEmailTemplateRequest"}},"application/*+json":{"schema":{"description":"Request body to save culture content on an existing template.","$ref":"#/components/schemas/SaveEmailTemplateRequest"}}},"required":true},"responses":{"200":{"description":"E-mail template saved; the body holds every culture.","content":{"text/plain":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}},"application/json":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}},"text/json":{"schema":{"description":"Full e-mail template definition.","$ref":"#/components/schemas/EmailTemplateDefinition"}}}},"400":{"description":"Invalid culture, tag or category, no culture, or a subject without a body (or the reverse).","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.emailTemplate:write` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"E-mail template not found, or the tenant does not exist.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Delete e-mail template

> Deletes the given culture, or every culture when culture is omitted.

```json
{"openapi":"3.1.1","info":{"title":"The Wallet Crew internal API","version":"v1"},"tags":[{"name":"EmailTemplates"}],"servers":[{"url":"https://api.thewalletcrew.io","description":"Production Server"},{"url":"https://api-qa.thewalletcrew.io","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.configuration.emailTemplate:write"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/emailTemplates/{id}":{"delete":{"tags":["EmailTemplates"],"summary":"Delete e-mail template","description":"Deletes the given culture, or every culture when culture is omitted.","parameters":[{"name":"id","in":"path","description":"Template identifier.","required":true,"schema":{"type":"string"}},{"name":"culture","in":"query","description":"Culture code to delete; omitted deletes the whole template.","schema":{"type":"string"}},{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"E-mail template (or culture) deleted. Deleting the last culture also deletes the template's tags and category."},"400":{"description":"Culture is invalid.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the `tenant.configuration.emailTemplate:write` scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"404":{"description":"E-mail template (or culture) not found, or the tenant does not exist.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after `Retry-After`.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/api-reference/internal/enrolment-and-messaging/email-templates.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
