- Home
- Models
- Templates
Templates
The template is used by workflows to send emails and SMS messages. It consists of HTML, with tags that are set on each field, i.e. {{full_name}}.
Templates fields
Field |
Type |
Fillable |
Reference |
id
|
Integer
|
|
|
The unique ID to identify the template
|
Templates relations
consents,
categories,
Templates endpoints
GET List all Templates /templates toggle
Paramaters
There are no parameters for this endpoint
Example response
GET Return data for a specified Template /templates/:id toggle
URL slugs
- id
-
Integer
The unique ID to identify the template
Paramaters
There are no parameters for this endpoint
Example response
POST Save, or update a Template /templates/:id? toggle
URL slugs
- id
-
Integer
The unique ID to identify the template
Paramaters
- body
-
HTML
Nullable
The HTML body to be used
- body_json
-
String
[No documentation available]
- disable_editor
-
String
[No documentation available]
- editor_type
-
String
[No documentation available]
- include_wrapper
-
Boolean
Control if the content should be wrapped in a template
- module
-
String
The name of the module the template belongs to
Required
- name
-
String
Nullable
The name of this template, for your reference
Required
- subject
-
String
Nullable
The subject, which will be used for emails
Required
- type
-
String
The type of the template
Required
DELETE Delete a Template /templates/:id toggle
URL slugs
- id
-
Integer
The unique ID to identify the template
Paramaters
There are no parameters for this endpoint