Templates
Retrieve a template
The template with its draft (what an update edits).
GET
The template with its draft (what an update edits).
bearerheader
AuthorizationBearer <token>id*stringThe template's id or alias
Success
application/json- response
A template with its draft: what a PATCH edits and the next publish makes live.
alias?string|nullcreated_at*stringcurrent_version_id*stringThe draft's version; a new one after an edit of the content.
Format
uuidfrom?string|nullhas_unpublished_versions*booleanThe content was edited since the last publish (always true before the first).
html*stringid*stringFormat
uuidname*stringobject*stringpublished_at?string|nullreply_to?array<string>|nullstatus*TemplateStatusdraft until the template is first published, then published.
Value in
"draft""published"subject?string|nulltext?string|nullupdated_at*stringvariables*array<>curl -X GET 'https://api.exx.sh/templates/string'Example Response
{ "alias": "string", "created_at": "string", "current_version_id": "158beffb-f9de-457f-bbee-873740e72504", "from": "string", "has_unpublished_versions": true, "html": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "object": "string", "published_at": "string", "reply_to": [ "string" ], "status": "draft", "subject": "string", "text": "string", "updated_at": "string", "variables": [ { "created_at": "string", "fallback_value": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "key": "string", "type": "string", "updated_at": "string" } ]}