GET
/api/templatesAuthenticatedList available email templates
Lists the react-email templates in this server's catalog. Accepts either a mail-server API key or an admin access token.
operationId
listEmailTemplatesTemplatesAuthentication & permissionsAuthenticated
Any authenticated user
- Accepted credentials
- Mail-server API key (Bearer)
Authorization: Bearer <token> - Access token (Bearer)
Authorization: Bearer <JWT> - Access token (cookie)
cookie "access_token_schemavaults-mail"
- Mail-server API key (Bearer)
- Who may call
- Any authenticated user
- Notes
- Access tokens must belong to an admin (other users get 403). Any valid mail-server API key may list templates.
Responses
application/json
| Property | Type | Description |
|---|---|---|
| success* | true | |
| data* | EmailTemplateListItem[] | |
| id* | string | Template name, usable as |
| description* | string |
JSONExample
"success"true
"data"
"id""mailing-list-confirmation"
"description""string"
Example request
bashcurl
curl -X GET 'https://mail.schemavaults.com/api/templates' \
-H 'Authorization: Bearer <access_token>'