Messaging Templates
The request allows to resolve the selected message template. The response will include the entire text of the message, as well as the data that is substituted into the variables inside this template.
resolverServiceType - possible values: EMAIL, CHAT, SMS, WHATSAPP
templateName - name of the message template, which can be viewed in the Designer
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
resolverServiceType path parameter
templateName path parameter
Resolved template content
Success
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
POST /{tenantName}/{instanceName}/patients/{patientId}/{resolverServiceType}/message-templates/resolve/{templateName} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"resolvedText": "text",
"resolvedEmailEditorJson": "text",
"textType": "PLAIN_TEXT",
"subject": "text",
"dataContentVariables": [
{
"contentType": "TEXT",
"variableName": "text",
"textData": "text",
"columns": [
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"structureData": [
{
"ANY_ADDITIONAL_PROPERTY": "text"
}
],
"separatorType": "DASH",
"borderType": "SOLID",
"image": "text",
"fileType": 1,
"fileName": "text",
"width": 1,
"height": 1
}
]
}Last updated
Was this helpful?