Skip to navigation

List templates

Retrieves the active GENERAL templates of the account, with the variables each one expects. If there are none, an empty array is returned.

Authentication

x-api-keystring

Account authentication key. The App-Key must have the Email channel enabled and a sender (mailing output) linked; it cannot be used against the endpoints of other channels.

OR
AuthorizationBearer

OAuth 2.0 access token issued by POST /api/oauth/token (client-credentials). Takes precedence over x-api-key when both are sent. See the Authentication section.

Response

List of templates.
_idstringOptional

Value to use as template_id when sending.

namestringOptional
variableslist of stringsOptional

Placeholders ({{variable}}) found in the template HTML, without repetitions. All of them must be sent in variables.

created_atdatetimeOptional
updated_atdatetimeOptional

Errors

401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error