Templates

Retrieve a template

The template with its draft (what an update edits).

GET
/templates/{id}

The template with its draft (what an update edits).

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string

The template's id or alias

Response Body

Success

application/json
  1. response

A template with its draft: what a PATCH edits and the next publish makes live.

alias?string|null
created_at*string
current_version_id*string

The draft's version; a new one after an edit of the content.

Formatuuid
from?string|null
has_unpublished_versions*boolean

The content was edited since the last publish (always true before the first).

html*string
id*string
Formatuuid
name*string
object*string
published_at?string|null
reply_to?array<string>|null
status*TemplateStatus

draft until the template is first published, then published.

Value in"draft""published"
subject?string|null
text?string|null
updated_at*string
variables*array<>
Example Request
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"    }  ]}