Select
Templates
A template resource represents the specific implementation of a template for a given communication type, organization, language and channel
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
type | query | string | false | Communication type. Allows EQ (type=password_reset), and CONTAINS (type[contains]=password) operations |
channel | query | string | false | Template channel |
language | query | string | false | Template language |
subject | query | string | false | Subject for email templates |
content | query | string | false | Search template by partial content |
limit | query | integer(int64) | false | Limit of results in the response |
offset | query | integer(int64) | false | Offset applied to results for pagination |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | SMS templates successful search | TemplatesResponseDto |
400 | Bad Request | Client error | ResponseErrorDto |
500 | Internal Server Error | Server error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | TemplateRequestDto | true | Template values |
Request body - instance of TemplateRequestDto
|
|
Name | Type | Required | Description |
---|---|---|---|
type | string | true | Communication type code according to the ones previously defined in the system |
language | string | true | Template language |
channel | string | true | Template channel |
data | TemplateRequestData | true | Data required for the template definition. It is different depending on the channel |
arguments | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array. This field is only required when previewing templates |
» additionalProperties | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array. This field is only required when previewing templates |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Communication template successfully updated | TemplateResponseDto |
400 | Bad Request | Client error | ResponseErrorDto |
500 | Internal Server Error | Server Error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | TemplateRequestDto | true | Template values |
Request body - instance of TemplateRequestDto
|
|
Name | Type | Required | Description |
---|---|---|---|
type | string | true | Communication type code according to the ones previously defined in the system |
language | string | true | Template language |
channel | string | true | Template channel |
data | TemplateRequestData | true | Data required for the template definition. It is different depending on the channel |
arguments | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array. This field is only required when previewing templates |
» additionalProperties | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array. This field is only required when previewing templates |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
202 | Accepted | Communication template successfully created | TemplateResponseDto |
400 | Bad Request | Client error | ResponseErrorDto |
500 | Internal Server Error | Server Error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
type | query | string | true | Communication type |
channel | query | string | true | Template channel |
language | query | string | true | Template language |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Template successfully deleted | TemplateResponseDto |
400 | Bad Request | Client error | ResponseErrorDto |
404 | Not Found | Template not found | ResponseErrorDto |
500 | Internal Server Error | Server error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | TemplateRequestDto | true | Template values |
Request body - instance of TemplateRequestDto
|
|
Name | Type | Required | Description |
---|---|---|---|
type | string | true | Communication type code according to the ones previously defined in the system |
language | string | true | Template language |
channel | string | true | Template channel |
data | TemplateRequestData | true | Data required for the template definition. It is different depending on the channel |
arguments | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array. This field is only required when previewing templates |
» additionalProperties | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array. This field is only required when previewing templates |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Template processed successfully | TemplateResponseDto |
400 | Bad Request | Client error | ResponseErrorDto |
500 | Internal Server Error | Server Error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | TemplateRequestDto | true | Template values |
Request body - instance of TemplateRequestDto
|
|
Name | Type | Required | Description |
---|---|---|---|
type | string | true | Communication type code according to the ones previously defined in the system |
language | string | true | Template language |
channel | string | true | Template channel |
data | TemplateRequestData | true | Data required for the template definition. It is different depending on the channel |
arguments | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array. This field is only required when previewing templates |
» additionalProperties | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array. This field is only required when previewing templates |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
202 | Accepted | Template validated successfully | TemplateValidationResponse |
400 | Bad Request | Client error | ResponseErrorDto |
500 | Internal Server Error | Server Error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | TemplateValidateRequestDto | true | Template filters |
Request body - instance of TemplateValidateRequestDto
|
|
Name | Type | Required | Description |
---|---|---|---|
type | string | true | Communication type code according to the ones previously defined in the system |
language | string | true | Template’s language (ISO 639-1) |
channel | string | true | Template’s channel |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
202 | Accepted | Template validated successfully | TemplateValidationResponse |
400 | Bad Request | Client error | ResponseErrorDto |
404 | Not Found | Template not found | ResponseErrorDto |
500 | Internal Server Error | Server Error | ResponseErrorDto |
Endpoints
CMS
Communications
Short URLs
Communication Types
Examples
Templates