Zum Hauptinhalt springen
GET
/
template
/
{id}
Get template details
curl --request GET \
  --url https://demo.enneo.ai/api/mind/template/{id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "id": 12,
  "tagId": 101,
  "emailTemplateId": 5,
  "description": "Reminder: please send your meter reading",
  "message": "<p>Hallo {{contract.firstName}},</p><p>bitte sende uns den Stand.</p>",
  "template": "<p>Hallo {{contract.firstName}},</p>%MESSAGE%<p>Viele Grüße</p>",
  "mergedTemplate": "<p>Hallo {{contract.firstName}},</p><p>bitte sende uns den Stand.</p><p>Viele Grüße</p>",
  "subject": "Wir benötigen deinen Zählerstand",
  "exampleTicketIds": [
    8812
  ],
  "attachments": []
}

Authorizations

Authorization
string
header
required

JWT-based authentication

Path Parameters

id
integer
required

Template ID

Response

Successful operation

id
integer

The id of the template

Example:

1

tagId
integer

The id of the tag that the template belongs to

Example:

1

emailTemplateId
integer

The id of the email template that is used for wrapping

Example:

1

description
string

The description of the intent template

Example:

"Zählerstand erfolgreich hinterlegt"

message
string

The template itself

Example:

"<p>Wir haben den Zählerstand von {{intent.data.reading}} kWh für den {{formatDateDE intent.data.date}} erfasst und im System hinterlegt.</p>"

subject
string

The subject of the email for outgoing emails

Example:

"Wir brauchen Deine Unterstützung"

exampleTicketIds
integer[]

The ids of the tickets that are used as examples for the intent template

mergedTemplate
string

The merged template

Example:

"Wir haben den Zählerstand von 123 kWh für den 01.01.2022 erfasst und im System hinterlegt."

template
string

The template itself

Example:

"<p>Wir haben den Zählerstand von 123 kWh für den 01.01.2022 erfasst und im System hinterlegt.</p>"

success
boolean

If true, the template is successful

Example:

true