# SmtpTemplates: Sendinblue SMTP Templates
Get the list of email templates
Retrieve a paginated list of all transactional email templates (including automation templates) with their details such as name, subject, sender, status, HTML content, and timestamps. Results default to 50 per page (max 1000) and are sorted in descending creation order unless overridden. You can filter by active/inactive status using `templateStatus` and by editor type using `editorType` (currently only `richTextEditor` is supported).
- Catalog: `Brevo`
- Schema: `TransactionalEmails`
- Primary Keys: `id`
- Label: SMTP Templates
Can retrieve data and change data using insert, update and delete.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `SmtpTemplates`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `editorType` | `` | ☐ | | Filter on the editor type used to create the template. Currently only `richTextEditor` is supported as a filter value. (Values: richTextEditor) |
| `templateStatus` | `` | ☐ | | Filter on the status of the template. Active = true, inactive = false |
## Columns of Table Function
The columns of the table function `SmtpTemplates` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `createdAt` | `varchar2` | Creation Date | ☐ | Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) |
| `customTemplateId` | `varchar2` | | ☐ | Custom template identifier, if one was assigned during template creation. Only present when the template has a custom ID. |
| `doiTemplate` | `char` | DOI Template | ☐ | It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call. |
| `htmlContent` | `varchar2` | HTML Content | ☐ | HTML content of the template |
| `id` | `int64` | ID | ☐ | ID of the template |
| `isActive` | `char` | Is Active | ☐ | Status of template (true=active, false=inactive) |
| `modifiedAt` | `varchar2` | Modified Date | ☐ | Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) |
| `name` | `varchar2` | Name | ☐ | Name of the template |
| `replyTo` | `varchar2` | Reply-to | ☐ | Email defined as the "Reply to" for the template |
| `sender_email` | `varchar2` | Sender Email Address | ☐ | From email for the template |
| `sender_id` | `varchar2` | Sender ID | ☐ | Sender id of the template |
| `sender_name` | `varchar2` | Sender Name | ☐ | Sender name for the template |
| `subject` | `varchar2` | Subject | ☐ | Subject of the template |
| `tag` | `varchar2` | Tag | ☐ | Tag of the template |
| `testSent` | `char` | Test Sent | ☐ | Status of test sending for the template (true=test email has been sent, false=test email has not been sent) |
| `toField` | `varchar2` | To Field | ☐ | Customisation of the "to" field for the template |