List template variables
Read the variables of the template version being edited.
GET
/v1/emails/templates/{templateId}/variablesAuthorization
Bearer token
- Authorizationrequiredheader
Send your API key as
Bearer YOUR_API_KEY.
Path parameters
templateIdrequiredstringThe template ID.
Response
application/json200 OK
Variables are ordered by key. See Variables for what each field means.
This lists the variables of the draft when the template has one, otherwise of the published version. Sends always use the published version: to see exactly what a send needs while a draft exists, read published_version.variables from Retrieve a template.