Email - Templates

Get email template by id

get/v4/email/templates/{id}

Request

  • Base URL: https://api.inmobile.com
  • URL: https://api.inmobile.com/v4/email/templates/{id}
  • Auth: one of:
    • HTTP basic
    • API key in query parameter apikey

Path parameters

idstring required

Response

An email template

idstring

The id of the email template.

namestring

The name of the email template.

htmlstring

The Html of the email template.

textstring

The text version of the Html.

subjectstring

The subject of the email template.

preheaderstring

The preheader of the email.

placeholdersstring[]

A list of the placeholders found in the template html, text and subject.

createdstring

When the email template was created e.g. 2001-02-30T14:50:23Z (UTC time).

lastUpdatedstring

When the email template was last updated e.g. 2001-02-30T14:50:23Z (UTC time).

Example response

{
  "id": "c9b6c7a8-aa22-4a59-b6d5-fdbbeced27bc",
  "name": "My email template",
  "html": "<!DOCTYPE html><html><head></head><body><p>Hello {name} {lastname}. This is an email to be sent</p></body></html>",
  "text": "Hello {name} This is the text version of the email",
  "subject": "Hello {lastname} This is the subject of the email",
  "preheader": "This is the preheader of the email",
  "placeholders": [
    "{name}",
    "{lastname}"
  ],
  "created": "2001-02-30T14:50:23Z",
  "lastUpdated": "2001-02-30T14:50:23Z"
}

Changes

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