v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-25173140700.7 KB
Template

Create an email template

Create a new email template for the current user's tenant.

post/templates/

Query parameters

tenant_idinteger
cookie_namestring nullable

Request body

namestring nullable

Human-readable label for the template. Max 100 characters.

text_bodystring required

Plain-text body of the email.

html_bodystring nullable

Optional HTML body of the email.

Example request

{
  "name": "Welcome email",
  "text_body": "Welcome to Neuland AI Hub!",
  "html_body": "<p>Welcome to Neuland AI Hub!</p>"
}

Response

Successful Response

idinteger required

Unique identifier of the template.

namestring nullable required

Human-readable label for the template.

text_bodystring required

Plain-text body of the email.

html_bodystring nullable required

HTML body of the email, or null if none.

Example response

{
  "id": 42,
  "name": "Welcome email",
  "text_body": "Welcome to Neuland AI Hub!",
  "html_body": "<p>Welcome to Neuland AI Hub!</p>"
}