Template Deployment


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
language query string false Template language
channel query string false Template channel

Request example

1
2
3
4
5

curl -X GET https://communications.masstack.com/v2/orgs/yoigo/deployment/changes?type='password_reset'&language='en'&channel='sms' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
200 OK Returned a list of elements validated DeploymentValidationResponseDTO
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 DeploymentValidationRequestDTO false Validation values not mandatory

Request body - instance of DeploymentValidationRequestDTO

1
2
3
4
5
{
  "type": "password_reset",
  "language": "es",
  "channel": "sms"
}
Name Type Required Description
type string false Communication type code according to the ones previously defined in the system
language string false Template language
channel ChannelTypeDTO false Tipul canalului pentru comunicare. Valorile acceptate sunt ‘sms’ sau ‘email’.

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

curl -X POST https://communications.masstack.com/v2/orgs/yoigo/deployment/invalidation \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'type': 'password_reset',
  'language': 'es',
  'channel': 'sms'
}" 

Responses

Code Meaning Description Schema
200 OK Returned a list of elements validated DeploymentValidationResponseDTO
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 false Communication type. Allows EQ (type=password_reset), and CONTAINS (type[contains]=password) operations
language query string false Template language
channel query string false Template channel

Request example

1
2
3
4
5

curl -X GET https://communications.masstack.com/v2/orgs/yoigo/deployment/getAllVersions?type='password_reset'&language='en'&channel='sms' \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
200 OK Returned a deployment version list DeploymentTemplateVersionsDTO
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 DeploymentValidationRequestDTO false Validation values not mandatory

Request body - instance of DeploymentValidationRequestDTO

1
2
3
4
5
{
  "type": "password_reset",
  "language": "es",
  "channel": "sms"
}
Name Type Required Description
type string false Communication type code according to the ones previously defined in the system
language string false Template language
channel ChannelTypeDTO false Tipul canalului pentru comunicare. Valorile acceptate sunt ‘sms’ sau ‘email’.

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

curl -X POST https://communications.masstack.com/v2/orgs/yoigo/deployment/validation \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'type': 'password_reset',
  'language': 'es',
  'channel': 'sms'
}" 

Responses

Code Meaning Description Schema
200 OK Returned a list of elements validated DeploymentValidationResponseDTO
400 Bad Request Client error ResponseErrorDto
500 Internal Server Error Server Error ResponseErrorDto

Endpoints

CMS

    Communications

      Short URLs

        Communication Types

          Templates

            Examples

              Template Deployment