templates

Create Template

Create a new template.

Subject (EMAIL only) and body can include variables using the {{variable_name}} syntax. Variables will be automatically extracted and stored.

Template titles must be unique within a workspace.

Example:

{
    "title": "Welcome Email",
    "subject": "Welcome to {{company}}",
    "body": "Hello {{name}},\n\nWelcome to {{company}}!\n\nBest regards,\n{{sender}}",
    "template_type": "EMAIL"
}
post/v1/templates/

Request

  • Base URL
    https://api.mentium.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Headers

mentium-workspace-idstring nullable

Request body

titlestring required
subjectstring nullable
bodystring required
template_type'EMAIL' | 'SMS'
is_activeboolean
is_defaultboolean
use_signatureboolean
twilio_languagestring
twilio_approval_categorystring

Response

Successful Response

idstring uuid required
organization_idstring uuid required
workspace_idstring uuid required
titlestring required
subjectstring nullable
bodystring required
template_type'EMAIL' | 'SMS' required
is_activeboolean required
is_defaultboolean
use_signatureboolean
twilio_content_sidstring nullable
twilio_approval_namestring nullable
twilio_approval_statusstring nullable
twilio_approval_categorystring nullable
twilio_approval_errorstring nullable
twilio_languagestring nullable
twilio_variable_orderstring[] nullable
whatsapp_review_warningsstring[]
variablesstring[]
created_atstring date-time required
updated_atstring date-time required
deleted_atstring date-time nullable

Changes

No recorded changes to this operation across all 2 revisions of this API.