MillionSend Docs

/templates/{id}

GET
/templates/{id}

Path Parameters

id*string

Template id or alias

Length1 <= length

Response Body

Template by id or alias. Templates have no draft/publish cycle: every save is live, so status is always published. from, reply_to and variables are not supported yet and read as null, null and [].

application/json
  1. response
id*string
Formatuuid
name*string
alias*string
status*"published"
Value in"published"
published_at*string
created_at*string
updated_at*string
object*"template"
Value in"template"
current_version_id*string
Formatuuid
from*unknown
subject*string
reply_to*unknown
html*string
text*string
variables*array<unknown>

Always empty

has_unpublished_versions*false
Value infalse
Example Request
curl -X GET 'https://api.millionsend.com/templates/string'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "alias": "string",  "status": "published",  "published_at": "string",  "created_at": "string",  "updated_at": "string",  "object": "template",  "current_version_id": "158beffb-f9de-457f-bbee-873740e72504",  "from": null,  "subject": "string",  "reply_to": null,  "html": "string",  "text": "string",  "variables": [    null  ],  "has_unpublished_versions": false}