Appearance
GET
/communication/template-text/template-texts/{id}/historyRequired scope:
templatetext:readReturns the last 20 history snapshots for a template, ordered newest first. Each row contains the full canonicalBody at that point in time plus the optional AI prompt that produced it.
Response ​
The history list.
JSON
[
{
"historyId": "...",
"canonicalBody": "...",
"prompt": "...",
"createdAt": "2024-08-14T12:34:56.412",
"createdBy": "..."
}
]
| Error code | Description |
|---|---|
template-not-found | No template with the given code exists for the current company. |