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.
Request
- Base URLapi.etrusted.com (relative, and the document’s source URL is not known)
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
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.
the template transport type.
Filter for a specific transport type.
Filter for a template specific version. Versions have the format '2.1', with major and minor version numbers.
Filter for global templates.
Filter for default templates.
Filter for templates that have translations.
Headers
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"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.