v1
latestOpenAPI 3.0.12026-07-243266138.0 KBEndpoints
Get a list of templates
This endpoint retrieves a list of available templates stored in eTrusted.
The result set can be filtered by adding request parameters.
get/templates
Query parameters
type'QUESTIONNAIRE' | 'INVITE' | 'REMINDER' | 'DOUBLE_OPT_IN_REVIEW' | 'REVIEW_REPLY'
The template type.
Filter for a specific template type. Existing template types include:
- QUESTIONNAIRE
- INVITE
- REMINDER
- DOUBLE_OPT_IN_REVIEW
- REVIEW_REPLY
If you do not set a template filter, the response will contain all templates available to you.
transport'EMAIL' | 'SMS'
the template transport type.
Example:EMAIL
Filter for a specific transport type.
versionstring
Filter for a template specific version. Versions have the format '2.1', with major and minor version numbers.
isGlobalboolean
Filter for global templates.
isDefaultboolean
Filter for default templates.
hasTranslationsboolean
Filter for templates that have translations.
Headers
Authorizationstring required
An OAuth2 authorization header with an access token, see OAuth2
Response
All templates matching the filter settings of the request.
Example response
[
{
"id": "tmp-xxxxxxxx-yyyy-xxxx-yyyy-xxxxxxxxxxxx",
"name": "exampleTemplate",
"version": "2.1",
"description": "An example description.",
"transport": "EMAIL",
"locales": [
"de_DE",
"en_GB"
],
"hasTranslations": true,
"createdAt": "2018-02-01T17:09:41.790Z",
"updatedAt": "2018-02-01T17:09:41.790Z"
}
]