Templates

Retrieve a template

Retrieve a single template by id, including html (which List templates omits). Use this to read the body, then save changes with Update a template. Requires the templates:read capability.

get/email/templates/{id}

Request

  • Base URL: https://www.unitpost.com/api/v1
  • URL: https://www.unitpost.com/api/v1/email/templates/{id}
  • Auth: HTTP bearer

Response

The template.

object'template' required
idstring required
namestring required
subjectstring nullable required
status'draft' | 'published' required
kind'simple' | 'designed' required

Which kind of email this is. simple: a plain, personal email (the dashboard's Simple editor) — update its body with text. designed: a designed or raw-HTML email (the Design / Code editor) — update its body with html. Sending the other field converts the template to that kind, so keep the kind unless the user asked to switch.

htmlstring nullable
warningsstring[]

Create or update with text only: markup or styling the Simple format doesn't support that was removed or couldn't be used (an unsupported tag, CSS property or font, an image that can't be sent), in plain words. Absent when nothing was.

created_atstring required
updated_atstring required

Changes

No recorded changes to this operation across all 1 revision of this API.