Get email template

Reads one published template: content, variables and their JSON Schema. With `draft=true`, reads the editable draft instead.

GET
/email/templates/{template}

Reads one published template: content, variables and their JSON Schema. With draft=true, reads the editable draft instead.

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Path Parameters

template*string

Alias or id

Query Parameters

version?integer

A published version number; the current one when left out.

Formatint32
draft?boolean

true reads the editable draft instead, published or not, with whether it differs from the current version.

Response Body

The template's published version, or its draft with draft=true.

Example Request
curl -X GET 'https://api.relevate.app/email/templates/string'
Example Response
Empty