# SmtpTemplateById: Sendinblue SMTP Template by ID Returns the template information Retrieve the full details of a specific transactional email template by its numeric ID or custom template identifier string. The response includes the template name, subject, sender information, HTML content, active status, creation and modification timestamps, reply-to address, tag, and a `doiTemplate` flag indicating whether the template is a double opt-in template (detected by the presence of optin-related tags or variables in the content). - Catalog: `Brevo` - Schema: `TransactionalEmails` - Label: SMTP Template by ID This is a read-only table function. The Sendinblue API may not support changing the data or the Invantive UniversalSQL driver for Sendinblue does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Sendinblue API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `SmtpTemplateById`. 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 | |---|:---:|:---:|:---:|---| | `templateId` | `` | ☑ | | ID of the template. Can be a numeric template ID or a custom template identifier string (alphanumeric, hyphens, and underscores only, max 64 characters, must start with a letter). | ## Columns of Table Function The columns of the table function `SmtpTemplateById` are shown below. Each column has an SQL data type. | 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 |