MasCommunications API
- Production
- Staging
- Authentication
- Bearer · JWT
- Contact
- MasCommunications Squad · cuco@masmovil.com
About this API
I am MasCommunications API. My intention is to provide the necessary functionality to allow the management and sending of multi-channel and multi-language communications to the organization customers
Resources 11
- CMS 7 endpoints
A CMS resource represents the management of content for various communication channels
- POST Create Managed Folder
/orgs /{org} /cms /managedFolders - DELETE Delete Managed Folder
/orgs /{org} /cms /managedFolders - GET Get Object
/orgs /{org} /cms /object - POST Create Object
/orgs /{org} /cms /object - PUT Update Object
/orgs /{org} /cms /object
- POST Create Managed Folder
- Batch Communications 1 endpoint
Batch communication operations for sending multiple communications in a single request
- Communications 11 endpoints
Communications Blacklist defines the endpoint to delete entries from the blacklist
- GET Search entries in blacklist
/blacklist - POST Add entry to blacklist
/blacklist - DELETE Delete a blacklist entry
/blacklist - GET Search communications
/orgs /{org} /communications - POST Send communication
/orgs /{org} /communications
- GET Search entries in blacklist
- Short URLs 4 endpoints
This resource describes the shortened links and the metadata associated to them
- Communication Types 5 endpoints
Communication types define the available communications catalog in the product in terms of the purpose of the communication and regardless the different templates implementations (depending on channel, language or organization) that can exist for that type
- Examples 6 endpoints
An example resource represents the expected communication data given a template (defined by its type, organization, language and channel) and some specific input arguments
- GET Get example
/orgs /{org} /examples /{exampleId} - PUT Update example
/orgs /{org} /examples /{exampleId} - DELETE Delete example
/orgs /{org} /examples /{exampleId} - GET Search examples
/orgs /{org} /examples - POST Add example
/orgs /{org} /examples
- GET Get example
- Templates 7 endpoints
A template resource represents the specific implementation of a template for a given communication type, organization, language and channel
- GET Search templates
/orgs /{org} /templates - POST Create template
/orgs /{org} /templates - PUT Update template
/orgs /{org} /templates - DELETE Delete template
/orgs /{org} /templates - POST Preview a template
/orgs /{org} /templates /preview
- GET Search templates
- Communication Types Beta 5 endpoints
Communication types define the available communications catalog in the product in terms of the purpose of the communication and regardless the different templates implementations (depending on channel, language or organization) that can exist for that type
- Examples Beta 6 endpoints
An example resource represents the expected communication data given a template (defined by its type, organization, language and channel) and some specific input arguments
- GET Get example
/beta /orgs /{org} /examples /{exampleId} - PUT Update example
/beta /orgs /{org} /examples /{exampleId} - DELETE Delete example
/beta /orgs /{org} /examples /{exampleId} - GET Search examples
/beta /orgs /{org} /examples - POST Add example
/beta /orgs /{org} /examples
- GET Get example
- Templates Beta 9 endpoints
A template resource represents the specific implementation of a template for a given communication type, organization, language and channel
- GET Search templates
/beta /orgs /{org} /templates - POST Create template
/beta /orgs /{org} /templates - PUT Update template
/beta /orgs /{org} /templates - DELETE Delete template
/beta /orgs /{org} /templates - POST Download deployment package
/beta /orgs /{org} /templates /download
- GET Search templates
- Templates Commit Beta 2 endpoints
MasCommunications API
- Production
- Staging
- Authentication
- Bearer · JWT
- Contact
- MasCommunications Squad · cuco@masmovil.com
About this API
I am MasCommunications API. My intention is to provide the necessary functionality to allow the management and sending of multi-channel and multi-language communications to the organization customers
Resources 11
- CMS 7 endpoints
A CMS resource represents the management of content for various communication channels
- POST Create Managed Folder
/orgs /{org} /cms /managedFolders - DELETE Delete Managed Folder
/orgs /{org} /cms /managedFolders - GET Get Object
/orgs /{org} /cms /object - POST Create Object
/orgs /{org} /cms /object - PUT Update Object
/orgs /{org} /cms /object
- POST Create Managed Folder
- Batch Communications 1 endpoint
Batch communication operations for sending multiple communications in a single request
- Communications 11 endpoints
Communications Blacklist defines the endpoint to delete entries from the blacklist
- GET Search entries in blacklist
/blacklist - POST Add entry to blacklist
/blacklist - DELETE Delete a blacklist entry
/blacklist - GET Search communications
/orgs /{org} /communications - POST Send communication
/orgs /{org} /communications
- GET Search entries in blacklist
- Short URLs 4 endpoints
This resource describes the shortened links and the metadata associated to them
- Communication Types 5 endpoints
Communication types define the available communications catalog in the product in terms of the purpose of the communication and regardless the different templates implementations (depending on channel, language or organization) that can exist for that type
- Examples 6 endpoints
An example resource represents the expected communication data given a template (defined by its type, organization, language and channel) and some specific input arguments
- GET Get example
/orgs /{org} /examples /{exampleId} - PUT Update example
/orgs /{org} /examples /{exampleId} - DELETE Delete example
/orgs /{org} /examples /{exampleId} - GET Search examples
/orgs /{org} /examples - POST Add example
/orgs /{org} /examples
- GET Get example
- Templates 7 endpoints
A template resource represents the specific implementation of a template for a given communication type, organization, language and channel
- GET Search templates
/orgs /{org} /templates - POST Create template
/orgs /{org} /templates - PUT Update template
/orgs /{org} /templates - DELETE Delete template
/orgs /{org} /templates - POST Preview a template
/orgs /{org} /templates /preview
- GET Search templates
- Communication Types Beta 5 endpoints
Communication types define the available communications catalog in the product in terms of the purpose of the communication and regardless the different templates implementations (depending on channel, language or organization) that can exist for that type
- Examples Beta 6 endpoints
An example resource represents the expected communication data given a template (defined by its type, organization, language and channel) and some specific input arguments
- GET Get example
/beta /orgs /{org} /examples /{exampleId} - PUT Update example
/beta /orgs /{org} /examples /{exampleId} - DELETE Delete example
/beta /orgs /{org} /examples /{exampleId} - GET Search examples
/beta /orgs /{org} /examples - POST Add example
/beta /orgs /{org} /examples
- GET Get example
- Templates Beta 9 endpoints
A template resource represents the specific implementation of a template for a given communication type, organization, language and channel
- GET Search templates
/beta /orgs /{org} /templates - POST Create template
/beta /orgs /{org} /templates - PUT Update template
/beta /orgs /{org} /templates - DELETE Delete template
/beta /orgs /{org} /templates - POST Download deployment package
/beta /orgs /{org} /templates /download
- GET Search templates
- Templates Commit Beta 2 endpoints
CMS
Create Managed Folder
/orgs /{org} /cms /managedFolders Authenticated with a bearer token in the Authorization header Authentication
Creates a new managed folder in a specific bucket for a given organization.
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Managed Folder creation values
-
folderPathstring RequiredPath of the managed folder
-
userstring RequiredEmail address of the user
Responses
Managed folder successfully created
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstring RequiredGCS folder id
-
namestring RequiredName of folder
-
bucketstring RequiredName of the bucket
-
metadataobjectMetadata associated with the resource
object -
createdTimestring (date-time) RequiredCreation date and time
-
updatedTimestring (date-time) RequiredUpdate date and time
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
CMS
Delete Managed Folder
/orgs /{org} /cms /managedFolders Authenticated with a bearer token in the Authorization header Authentication
Deletes a folder for CMS
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
userstringRequiredUser
namestringRequiredFolder Name
Responses
Folder deleted successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstring RequiredGCS folder id
-
namestring RequiredName of folder
-
bucketstring RequiredName of the bucket
-
metadataobjectMetadata associated with the resource
object -
createdTimestring (date-time) RequiredCreation date and time
-
updatedTimestring (date-time) RequiredUpdate date and time
-
User is not the owner hence not allowed to delete
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Folder created within 24 hours
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
CMS
Get Object
/orgs /{org} /cms /object Authenticated with a bearer token in the Authorization header Authentication
Retrieves a CMS object based on the provided object name.
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
objectNamestringRequiredName of the CMS object to retrieve
Responses
Successfully retrieved the CMS object
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique identifier of the resource
-
selfLinkstringLink to the resource
-
bucketstringName of the bucket containing the resource
-
namestringName of the resource
-
sizestringSize of the resource in bytes
-
createdTimestringTime the resource was created
-
updatedTimestringTime the resource was last updated
-
metadataobjectMetadata associated with the resource
object -
mediaLinkstringMedia link to access the resource content
-
contentTypestringContent type of the resource
-
Object not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
CMS
Create Object
/orgs /{org} /cms /object Authenticated with a bearer token in the Authorization header Authentication
Creates a new object inside a specific bucket (and inside a specific folder if required), based on Cloud Storage buckets inside the Google Cloud project. This service can only be called by MasCommunications administration service accounts
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
CMS values
-
userstring RequiredEmail address of the user
-
objectNamestring RequiredObject name
-
fileContentstring RequiredFile path
Responses
CMS object successfully created
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique identifier of the resource
-
selfLinkstringLink to the resource
-
bucketstringName of the bucket containing the resource
-
namestringName of the resource
-
sizestringSize of the resource in bytes
-
createdTimestringTime the resource was created
-
updatedTimestringTime the resource was last updated
-
metadataobjectMetadata associated with the resource
object -
mediaLinkstringMedia link to access the resource content
-
contentTypestringContent type of the resource
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
CMS
Update Object
/orgs /{org} /cms /object Authenticated with a bearer token in the Authorization header Authentication
Updates an existing CMS object based on the provided object name and user information.
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Update the CMS object values
-
sourceObjectNamestring RequiredName of the source object to be updated
-
updatedObjectNamestring RequiredName of the object after the update
-
userstring RequiredEmail address of the user
Responses
CMS object successfully updated
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique identifier of the resource
-
selfLinkstringLink to the resource
-
bucketstringName of the bucket containing the resource
-
namestringName of the resource
-
sizestringSize of the resource in bytes
-
createdTimestringTime the resource was created
-
updatedTimestringTime the resource was last updated
-
metadataobjectMetadata associated with the resource
object -
mediaLinkstringMedia link to access the resource content
-
contentTypestringContent type of the resource
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
CMS
Delete Object
/orgs /{org} /cms /object Authenticated with a bearer token in the Authorization header Authentication
Delete Object for CMS
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
objectNamestringRequiredName of the CMS object to retrieve
userstringRequiredUser
Responses
Object deleted successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique identifier of the resource
-
selfLinkstringLink to the resource
-
bucketstringName of the bucket containing the resource
-
namestringName of the resource
-
sizestringSize of the resource in bytes
-
createdTimestringTime the resource was created
-
updatedTimestringTime the resource was last updated
-
metadataobjectMetadata associated with the resource
object -
mediaLinkstringMedia link to access the resource content
-
contentTypestringContent type of the resource
-
User is not the owner hence not allowed to delete
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Object created within 24 hours
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
CMS
Get Content Tree
/orgs /{org} /cms /contentTree Authenticated with a bearer token in the Authorization header Authentication
Retrieves the content tree for the CMS.
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Responses
Successfully retrieved the CMS content tree
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
namestring RequiredName of the bucket
-
creationDatestring (date-time)Creation date of the bucket
-
treeListobject[]-
namestringThe name of the item.
-
publicUrlstringThe public URL of the item.
-
sizestringThe size of the item in bytes.
-
typestringThe type of the item.
-
creationDatestringThe creation date of the item.
-
updatedDatestringThe last updated date of the item.
-
metadataobjectThe user who created or last updated the item.
object
-
-
sizestringSize of the resource in bytes
-
Internal server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Batch Communications
Send batch communications
/batch /communications Send multiple communications in a single batch request. Each communication in the batch can have different types, languages, and channels.
Request body application/json Required
Batch communication request containing a list of communications to send
-
idstring (uuid) -
communicationListobject[]-
idstring (uuid)Unique identifier for the batch processing line.
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredCommunication language(ISO 639-1)
-
channelsstring[]Channels list through which the communication will be sent, allowed values are: "sms", "email". If not specified, all channels with a defined template are used
-
scheduledTimestringProgrammed time for the communication to be sent that can be reprogrammed to fit delivery window.
-
smsInputobjectSpecific parameters needed for SMS channel, mandatory if SMS channel requested. No need to provide it when previewing a communication
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstring RequiredDestination phone number without international prefix
-
-
emailInputobjectSpecific parameters needed for email channel, mandatory if email channel requested. No need to provide it when previewing a communication
-
destinationEmailstring RequiredThe intended recipient's email address
-
destinationNamestringThe intended recipient's name
-
-
whatsAppInputobjectSpecific parameters needed for whatsApp channel, mandatory if whatsApp channel requested. No need to provide it when previewing a communication
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstring RequiredDestination phone number without international prefix
-
-
externalIdstringClient internal reference
-
argumentsobjectParameters 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
object -
usingDraftbooleanUse the template draft
-
orgstring
-
Responses
Batch communications sent successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
communicationListobject[]-
idstring (uuid)Unique ID assigned to the communication
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
clientIdstringEntity that requested the communication sending
-
agentIdstringAgent that requested the communication sending
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
smsobjectInformation of the sent SMS
-
idstring (uuid)Unique ID assigned to the sent SMS.
-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
contentstringSms content text
-
realTimeRequiredbooleanSMS delivery time criticality indicator. SMS with real time requirement are handled with higher priority than the others in case of overload
-
scheduledTimestringScheduled delivery date and time for the SMS. Format according to ISO 8601
-
updatedTimestringLast time when the SMS stored info has been updated. Format according to ISO 8601
-
deliveryStatusstringSms status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED, DELIVERED, EXPIRED, UNDELIVERABLE, REJECTED, ACCEPTED, DELETED
-
sendingTypestringProvider used to send the SMS
-
codeinteger (int32)Response code of SMS provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the SMS was processed but another unexpected error occurred in SMS's provider, this field contains a message about what happened
-
errorstringError message explaining why the SMS could not be processed
-
-
emailobjectInformation of the sent email
-
idstring (uuid)Unique ID assigned to the processed email
-
fromobject-
emailstringEmail address used to deliver the message
-
namestringA name or title associated with the sending email address
-
-
toobject-
emailstringThe intended recipient's email address
-
namestringThe intended recipient's name
-
-
subjectstringProcessed email's subject
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
deliveryStatusstringProcessed email's status, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: SUBMITTED, DROPPED, DEFERRED, REJECTED, DELIVERED, UNDELIVERABLE, OPEN, CLICKED
-
mimeTypestringProcessed email's content mimeType. This field is only present when sending a communication
-
contentstringProcessed email's content. This field is only present when sending a communication
-
scheduledTimestringScheduled delivery date and time for the email. Format according to ISO 8601
-
updatedTimestringLast time when the email info has been updated. Format according to ISO 8601
-
attachmentsstring[]Processed email attachments' file names. This field is only present when sending communications
-
codeinteger (int32)Response code of email provider
-
warningstringWhen the email was submitted but another unexpected error occurred in email's provider, this field contains a message about what happened
-
errorstringError message explaining why the email could not be submitted
-
-
whatsappobjectInformation of the sent WhatsAppMessage
-
idstring (uuid)Unique ID assigned to the processed email
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
updatedTimestringLast time when the WhatsApp stored info has been updated. Format according to ISO 8601
-
handoffIdstringWhatsApp handoff identifier
-
contentstringThe actual WhatsApp message content sent to the user
-
deliveryStatusstringWhatsApp status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED
-
codeinteger (int32)Response code of WhatsApp provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the WhatsApp was processed but another unexpected error occurred in WhatsApp's provider, this field contains a message about what happened
-
errorstringError message explaining why the WhatsApp could not be processed
-
-
requestTimestringTime and date when the communication was originally requested by its origin system. Format according to ISO 8601
-
warningstringWhen the communication was processed but another unexpected error occurred this field contains a message about what happened
-
scheduledTimestringTime and date when the communication was originally scheduled by its origin system. Format according to ISO 8601
-
usingDraftbooleanUse the template draft
-
serviceNamestringService name that created the communication
-
-
Partial success - some communications failed
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
communicationListobject[]-
idstring (uuid)Unique ID assigned to the communication
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
clientIdstringEntity that requested the communication sending
-
agentIdstringAgent that requested the communication sending
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
smsobjectInformation of the sent SMS
-
idstring (uuid)Unique ID assigned to the sent SMS.
-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
contentstringSms content text
-
realTimeRequiredbooleanSMS delivery time criticality indicator. SMS with real time requirement are handled with higher priority than the others in case of overload
-
scheduledTimestringScheduled delivery date and time for the SMS. Format according to ISO 8601
-
updatedTimestringLast time when the SMS stored info has been updated. Format according to ISO 8601
-
deliveryStatusstringSms status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED, DELIVERED, EXPIRED, UNDELIVERABLE, REJECTED, ACCEPTED, DELETED
-
sendingTypestringProvider used to send the SMS
-
codeinteger (int32)Response code of SMS provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the SMS was processed but another unexpected error occurred in SMS's provider, this field contains a message about what happened
-
errorstringError message explaining why the SMS could not be processed
-
-
emailobjectInformation of the sent email
-
idstring (uuid)Unique ID assigned to the processed email
-
fromobject-
emailstringEmail address used to deliver the message
-
namestringA name or title associated with the sending email address
-
-
toobject-
emailstringThe intended recipient's email address
-
namestringThe intended recipient's name
-
-
subjectstringProcessed email's subject
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
deliveryStatusstringProcessed email's status, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: SUBMITTED, DROPPED, DEFERRED, REJECTED, DELIVERED, UNDELIVERABLE, OPEN, CLICKED
-
mimeTypestringProcessed email's content mimeType. This field is only present when sending a communication
-
contentstringProcessed email's content. This field is only present when sending a communication
-
scheduledTimestringScheduled delivery date and time for the email. Format according to ISO 8601
-
updatedTimestringLast time when the email info has been updated. Format according to ISO 8601
-
attachmentsstring[]Processed email attachments' file names. This field is only present when sending communications
-
codeinteger (int32)Response code of email provider
-
warningstringWhen the email was submitted but another unexpected error occurred in email's provider, this field contains a message about what happened
-
errorstringError message explaining why the email could not be submitted
-
-
whatsappobjectInformation of the sent WhatsAppMessage
-
idstring (uuid)Unique ID assigned to the processed email
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
updatedTimestringLast time when the WhatsApp stored info has been updated. Format according to ISO 8601
-
handoffIdstringWhatsApp handoff identifier
-
contentstringThe actual WhatsApp message content sent to the user
-
deliveryStatusstringWhatsApp status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED
-
codeinteger (int32)Response code of WhatsApp provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the WhatsApp was processed but another unexpected error occurred in WhatsApp's provider, this field contains a message about what happened
-
errorstringError message explaining why the WhatsApp could not be processed
-
-
requestTimestringTime and date when the communication was originally requested by its origin system. Format according to ISO 8601
-
warningstringWhen the communication was processed but another unexpected error occurred this field contains a message about what happened
-
scheduledTimestringTime and date when the communication was originally scheduled by its origin system. Format according to ISO 8601
-
usingDraftbooleanUse the template draft
-
serviceNamestringService name that created the communication
-
-
Bad Request - invalid batch request
No body.
Internal Server Error
No body.
Communications
Search entries in blacklist
/blacklist Search entries in the communications blacklist
Query parameters
typestringType of blacklist entry to filter
countryCodestringCountry code to filter phone blacklist entries
searchstringSearch term to filter blacklist entries
Responses
Blacklist entries retrieved successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
typestring -
valuestring -
countryCodestring -
itemsobject[]-
idstring (uuid)Unique ID assigned to the blacklist entry
-
typestringBlacklist entry type, allowed values are: EMAIL, PHONE
-
valuestringBlacklist entry value, can be an email address or a phone number
-
countryCodestringCountry code associated with the phone number
-
reasonstringReason for blacklisting the entry
-
userstringUser who created the blacklist entry
-
datestringDate and time when the blacklist entry was created according to ISO 8601 format
-
-
limitinteger (int32) -
offsetinteger (int32) -
totalinteger (int32)
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Add entry to blacklist
/blacklist Adds a new entry to the communications blacklist
Request body application/json Required
Blacklist entry to add
-
typestring RequiredBlacklist entry type, allowed values are: EMAIL, PHONE
-
valuestring RequiredBlacklist entry value, can be an email address or a phone number
-
countryCodestringCountry code in ISO 3166-1 alpha-2 format or in E.164 format
-
reasonstringReason for blacklisting the entry
Responses
Blacklist entry already exists
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstring (uuid)Unique ID assigned to the blacklist entry
-
typestringBlacklist entry type, allowed values are: EMAIL, PHONE
-
valuestringBlacklist entry value, can be an email address or a phone number
-
countryCodestringCountry code associated with the phone number
-
reasonstringReason for blacklisting the entry
-
userstringUser who created the blacklist entry
-
datestringDate and time when the blacklist entry was created according to ISO 8601 format
-
Blacklist entry created successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstring (uuid)Unique ID assigned to the blacklist entry
-
typestringBlacklist entry type, allowed values are: EMAIL, PHONE
-
valuestringBlacklist entry value, can be an email address or a phone number
-
countryCodestringCountry code associated with the phone number
-
reasonstringReason for blacklisting the entry
-
userstringUser who created the blacklist entry
-
datestringDate and time when the blacklist entry was created according to ISO 8601 format
-
Bad Request - Invalid or missing required fields
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Delete a blacklist entry
/blacklist Authenticated with a bearer token in the Authorization header Authentication
Removes an entry from the blacklist (e.g., if a user re-subscribes). The entry is identified by its type and value. If the entry does not exist, a 404 error is returned.
Request body application/json Required
Blacklist entry details to delete
-
typestring RequiredBlacklist entry type, allowed values are: EMAIL, PHONE
-
valuestring RequiredBlacklist entry value, can be an email address or a phone number
-
countryCodestringCountry code in ISO 3166-1 alpha-2 format or in E.164 format
-
reasonstringReason for blacklisting the entry
Responses
Blacklist entry deleted successfully (No Content)
No body.
Bad Request - Invalid or missing required fields
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Blacklist entry not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Internal Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Search communications
/orgs /{org} /communications Authenticated with a bearer token in the Authorization header Authentication
This service returns the list of sent communications for the given filters, ordered by request time in descending order
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
destinationEmailstringRequiredQueried communication's email destination address
terminatingNumberinteger (int64)RequiredQueried communication's SMS terminating number without country code
countryCodeinteger (int64)Queried communication's SMS country code without + symbol
requestTime[gt]stringReturn requests with request time greater (later) than the one specified
requestTime[lt]stringReturn requests with request time lower (earlier) than the one specified
clientIdstringQueried communication's client id taken from audience header
limitinteger (int64)Limit of results in the response
offsetinteger (int64)Offset applied to results for pagination
externalIdstringRequiredInternal reference provided by the client system that could be used in later queries
channelstringTemplate channel
Responses
Successful communications search
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
itemsobject[]Communications matching the provided criteria
-
idstring (uuid)Unique ID assigned to the communication
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
clientIdstringEntity that requested the communication sending
-
agentIdstringAgent that requested the communication sending
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
smsobjectInformation of the sent SMS
-
idstring (uuid)Unique ID assigned to the sent SMS.
-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
contentstringSms content text
-
realTimeRequiredbooleanSMS delivery time criticality indicator. SMS with real time requirement are handled with higher priority than the others in case of overload
-
scheduledTimestringScheduled delivery date and time for the SMS. Format according to ISO 8601
-
updatedTimestringLast time when the SMS stored info has been updated. Format according to ISO 8601
-
deliveryStatusstringSms status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED, DELIVERED, EXPIRED, UNDELIVERABLE, REJECTED, ACCEPTED, DELETED
-
sendingTypestringProvider used to send the SMS
-
codeinteger (int32)Response code of SMS provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the SMS was processed but another unexpected error occurred in SMS's provider, this field contains a message about what happened
-
errorstringError message explaining why the SMS could not be processed
-
-
emailobjectInformation of the sent email
-
idstring (uuid)Unique ID assigned to the processed email
-
fromobject-
emailstringEmail address used to deliver the message
-
namestringA name or title associated with the sending email address
-
-
toobject-
emailstringThe intended recipient's email address
-
namestringThe intended recipient's name
-
-
subjectstringProcessed email's subject
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
deliveryStatusstringProcessed email's status, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: SUBMITTED, DROPPED, DEFERRED, REJECTED, DELIVERED, UNDELIVERABLE, OPEN, CLICKED
-
mimeTypestringProcessed email's content mimeType. This field is only present when sending a communication
-
contentstringProcessed email's content. This field is only present when sending a communication
-
scheduledTimestringScheduled delivery date and time for the email. Format according to ISO 8601
-
updatedTimestringLast time when the email info has been updated. Format according to ISO 8601
-
attachmentsstring[]Processed email attachments' file names. This field is only present when sending communications
-
codeinteger (int32)Response code of email provider
-
warningstringWhen the email was submitted but another unexpected error occurred in email's provider, this field contains a message about what happened
-
errorstringError message explaining why the email could not be submitted
-
-
whatsappobjectInformation of the sent WhatsAppMessage
-
idstring (uuid)Unique ID assigned to the processed email
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
updatedTimestringLast time when the WhatsApp stored info has been updated. Format according to ISO 8601
-
handoffIdstringWhatsApp handoff identifier
-
contentstringThe actual WhatsApp message content sent to the user
-
deliveryStatusstringWhatsApp status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED
-
codeinteger (int32)Response code of WhatsApp provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the WhatsApp was processed but another unexpected error occurred in WhatsApp's provider, this field contains a message about what happened
-
errorstringError message explaining why the WhatsApp could not be processed
-
-
requestTimestringTime and date when the communication was originally requested by its origin system. Format according to ISO 8601
-
warningstringWhen the communication was processed but another unexpected error occurred this field contains a message about what happened
-
scheduledTimestringTime and date when the communication was originally scheduled by its origin system. Format according to ISO 8601
-
usingDraftbooleanUse the template draft
-
serviceNamestringService name that created the communication
-
-
typestringCommunication's type used to filter
-
clientIdstringCommunication's client id used to filter
-
countryCodestringCommunication's SMS country code used to filter
-
terminatingNumberstringCommunication's terminating number used to filter
-
destinationEmailstringCommunication's email destination address used to filter
-
limitinteger (int32)Max number of communications retrieved
-
offsetinteger (int32)Offset used to paginate in conjunction with limit
-
Client error on request
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Send communication
/orgs /{org} /communications Authenticated with a bearer token in the Authorization header Authentication
Send a communication of certain type in the specified language via the required channels
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Information needed to send a communication
-
idstring (uuid)Unique identifier for the batch processing line.
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredCommunication language(ISO 639-1)
-
channelsstring[]Channels list through which the communication will be sent, allowed values are: "sms", "email". If not specified, all channels with a defined template are used
-
scheduledTimestringProgrammed time for the communication to be sent that can be reprogrammed to fit delivery window.
-
smsInputobjectSpecific parameters needed for SMS channel, mandatory if SMS channel requested. No need to provide it when previewing a communication
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstring RequiredDestination phone number without international prefix
-
-
emailInputobjectSpecific parameters needed for email channel, mandatory if email channel requested. No need to provide it when previewing a communication
-
destinationEmailstring RequiredThe intended recipient's email address
-
destinationNamestringThe intended recipient's name
-
-
whatsAppInputobjectSpecific parameters needed for whatsApp channel, mandatory if whatsApp channel requested. No need to provide it when previewing a communication
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstring RequiredDestination phone number without international prefix
-
-
externalIdstringClient internal reference
-
argumentsobjectParameters 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
object -
usingDraftbooleanUse the template draft
Responses
Successfully sent communication
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstring (uuid)Unique ID assigned to the communication
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
clientIdstringEntity that requested the communication sending
-
agentIdstringAgent that requested the communication sending
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
smsobjectInformation of the sent SMS
-
idstring (uuid)Unique ID assigned to the sent SMS.
-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
contentstringSms content text
-
realTimeRequiredbooleanSMS delivery time criticality indicator. SMS with real time requirement are handled with higher priority than the others in case of overload
-
scheduledTimestringScheduled delivery date and time for the SMS. Format according to ISO 8601
-
updatedTimestringLast time when the SMS stored info has been updated. Format according to ISO 8601
-
deliveryStatusstringSms status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED, DELIVERED, EXPIRED, UNDELIVERABLE, REJECTED, ACCEPTED, DELETED
-
sendingTypestringProvider used to send the SMS
-
codeinteger (int32)Response code of SMS provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the SMS was processed but another unexpected error occurred in SMS's provider, this field contains a message about what happened
-
errorstringError message explaining why the SMS could not be processed
-
-
emailobjectInformation of the sent email
-
idstring (uuid)Unique ID assigned to the processed email
-
fromobject-
emailstringEmail address used to deliver the message
-
namestringA name or title associated with the sending email address
-
-
toobject-
emailstringThe intended recipient's email address
-
namestringThe intended recipient's name
-
-
subjectstringProcessed email's subject
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
deliveryStatusstringProcessed email's status, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: SUBMITTED, DROPPED, DEFERRED, REJECTED, DELIVERED, UNDELIVERABLE, OPEN, CLICKED
-
mimeTypestringProcessed email's content mimeType. This field is only present when sending a communication
-
contentstringProcessed email's content. This field is only present when sending a communication
-
scheduledTimestringScheduled delivery date and time for the email. Format according to ISO 8601
-
updatedTimestringLast time when the email info has been updated. Format according to ISO 8601
-
attachmentsstring[]Processed email attachments' file names. This field is only present when sending communications
-
codeinteger (int32)Response code of email provider
-
warningstringWhen the email was submitted but another unexpected error occurred in email's provider, this field contains a message about what happened
-
errorstringError message explaining why the email could not be submitted
-
-
whatsappobjectInformation of the sent WhatsAppMessage
-
idstring (uuid)Unique ID assigned to the processed email
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
updatedTimestringLast time when the WhatsApp stored info has been updated. Format according to ISO 8601
-
handoffIdstringWhatsApp handoff identifier
-
contentstringThe actual WhatsApp message content sent to the user
-
deliveryStatusstringWhatsApp status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED
-
codeinteger (int32)Response code of WhatsApp provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the WhatsApp was processed but another unexpected error occurred in WhatsApp's provider, this field contains a message about what happened
-
errorstringError message explaining why the WhatsApp could not be processed
-
-
requestTimestringTime and date when the communication was originally requested by its origin system. Format according to ISO 8601
-
warningstringWhen the communication was processed but another unexpected error occurred this field contains a message about what happened
-
scheduledTimestringTime and date when the communication was originally scheduled by its origin system. Format according to ISO 8601
-
usingDraftbooleanUse the template draft
-
serviceNamestringService name that created the communication
-
Communication sent with with some kind of failure, e.g:the e-mail and whatsapp have been successfully sent but the SMS failed in a multi-channel communication
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstring (uuid)Unique ID assigned to the communication
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
clientIdstringEntity that requested the communication sending
-
agentIdstringAgent that requested the communication sending
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
smsobjectInformation of the sent SMS
-
idstring (uuid)Unique ID assigned to the sent SMS.
-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
contentstringSms content text
-
realTimeRequiredbooleanSMS delivery time criticality indicator. SMS with real time requirement are handled with higher priority than the others in case of overload
-
scheduledTimestringScheduled delivery date and time for the SMS. Format according to ISO 8601
-
updatedTimestringLast time when the SMS stored info has been updated. Format according to ISO 8601
-
deliveryStatusstringSms status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED, DELIVERED, EXPIRED, UNDELIVERABLE, REJECTED, ACCEPTED, DELETED
-
sendingTypestringProvider used to send the SMS
-
codeinteger (int32)Response code of SMS provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the SMS was processed but another unexpected error occurred in SMS's provider, this field contains a message about what happened
-
errorstringError message explaining why the SMS could not be processed
-
-
emailobjectInformation of the sent email
-
idstring (uuid)Unique ID assigned to the processed email
-
fromobject-
emailstringEmail address used to deliver the message
-
namestringA name or title associated with the sending email address
-
-
toobject-
emailstringThe intended recipient's email address
-
namestringThe intended recipient's name
-
-
subjectstringProcessed email's subject
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
deliveryStatusstringProcessed email's status, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: SUBMITTED, DROPPED, DEFERRED, REJECTED, DELIVERED, UNDELIVERABLE, OPEN, CLICKED
-
mimeTypestringProcessed email's content mimeType. This field is only present when sending a communication
-
contentstringProcessed email's content. This field is only present when sending a communication
-
scheduledTimestringScheduled delivery date and time for the email. Format according to ISO 8601
-
updatedTimestringLast time when the email info has been updated. Format according to ISO 8601
-
attachmentsstring[]Processed email attachments' file names. This field is only present when sending communications
-
codeinteger (int32)Response code of email provider
-
warningstringWhen the email was submitted but another unexpected error occurred in email's provider, this field contains a message about what happened
-
errorstringError message explaining why the email could not be submitted
-
-
whatsappobjectInformation of the sent WhatsAppMessage
-
idstring (uuid)Unique ID assigned to the processed email
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
updatedTimestringLast time when the WhatsApp stored info has been updated. Format according to ISO 8601
-
handoffIdstringWhatsApp handoff identifier
-
contentstringThe actual WhatsApp message content sent to the user
-
deliveryStatusstringWhatsApp status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED
-
codeinteger (int32)Response code of WhatsApp provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the WhatsApp was processed but another unexpected error occurred in WhatsApp's provider, this field contains a message about what happened
-
errorstringError message explaining why the WhatsApp could not be processed
-
-
requestTimestringTime and date when the communication was originally requested by its origin system. Format according to ISO 8601
-
warningstringWhen the communication was processed but another unexpected error occurred this field contains a message about what happened
-
scheduledTimestringTime and date when the communication was originally scheduled by its origin system. Format according to ISO 8601
-
usingDraftbooleanUse the template draft
-
serviceNamestringService name that created the communication
-
The response for client error when some field in the request is missing or invalid
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Get communication attachments
/orgs /{org} /communications /{communicationId} /attachments Authenticated with a bearer token in the Authorization header Authentication
Retrieve attachments for a given communication
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
communicationIdstringRequiredThe communication identifier
Responses
Successfully found attachments
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
communicationIdstring (uuid)Unique ID assigned to the communication
-
attachmentsobjectAttachments associated with the resource
object
-
Communication not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Get communication qr image
/qr Authenticated with a bearer token in the Authorization header Authentication
Retrieve a qr image related to a sent communication
Query parameters
qrTokenstringRequiredThe communication encrypted data for generating QR Image
Responses
Successfully created QR code image
No body.
Invalid, missing or expired QR token
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error while retrieving image
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Get communication
/orgs /{org} /communications /{communicationId} Authenticated with a bearer token in the Authorization header Authentication
Get latest info of a sent communication
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
communicationIdstringRequiredThe communication identifier
Responses
Successfully found communication
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstring (uuid)Unique ID assigned to the communication
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
clientIdstringEntity that requested the communication sending
-
agentIdstringAgent that requested the communication sending
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
smsobjectInformation of the sent SMS
-
idstring (uuid)Unique ID assigned to the sent SMS.
-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
contentstringSms content text
-
realTimeRequiredbooleanSMS delivery time criticality indicator. SMS with real time requirement are handled with higher priority than the others in case of overload
-
scheduledTimestringScheduled delivery date and time for the SMS. Format according to ISO 8601
-
updatedTimestringLast time when the SMS stored info has been updated. Format according to ISO 8601
-
deliveryStatusstringSms status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED, DELIVERED, EXPIRED, UNDELIVERABLE, REJECTED, ACCEPTED, DELETED
-
sendingTypestringProvider used to send the SMS
-
codeinteger (int32)Response code of SMS provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the SMS was processed but another unexpected error occurred in SMS's provider, this field contains a message about what happened
-
errorstringError message explaining why the SMS could not be processed
-
-
emailobjectInformation of the sent email
-
idstring (uuid)Unique ID assigned to the processed email
-
fromobject-
emailstringEmail address used to deliver the message
-
namestringA name or title associated with the sending email address
-
-
toobject-
emailstringThe intended recipient's email address
-
namestringThe intended recipient's name
-
-
subjectstringProcessed email's subject
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
deliveryStatusstringProcessed email's status, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: SUBMITTED, DROPPED, DEFERRED, REJECTED, DELIVERED, UNDELIVERABLE, OPEN, CLICKED
-
mimeTypestringProcessed email's content mimeType. This field is only present when sending a communication
-
contentstringProcessed email's content. This field is only present when sending a communication
-
scheduledTimestringScheduled delivery date and time for the email. Format according to ISO 8601
-
updatedTimestringLast time when the email info has been updated. Format according to ISO 8601
-
attachmentsstring[]Processed email attachments' file names. This field is only present when sending communications
-
codeinteger (int32)Response code of email provider
-
warningstringWhen the email was submitted but another unexpected error occurred in email's provider, this field contains a message about what happened
-
errorstringError message explaining why the email could not be submitted
-
-
whatsappobjectInformation of the sent WhatsAppMessage
-
idstring (uuid)Unique ID assigned to the processed email
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstringDestination phone number without international prefix
-
updatedTimestringLast time when the WhatsApp stored info has been updated. Format according to ISO 8601
-
handoffIdstringWhatsApp handoff identifier
-
contentstringThe actual WhatsApp message content sent to the user
-
deliveryStatusstringWhatsApp status description, see https://developers.masstack.com/en/guides/communications/delivery_info for details. Possible values are: FAILED, REGISTERED, SUBMITTED
-
codeinteger (int32)Response code of WhatsApp provider
-
externalIdstringInternal reference provided by the client system that could be used in later queries
-
warningstringWhen the WhatsApp was processed but another unexpected error occurred in WhatsApp's provider, this field contains a message about what happened
-
errorstringError message explaining why the WhatsApp could not be processed
-
-
requestTimestringTime and date when the communication was originally requested by its origin system. Format according to ISO 8601
-
warningstringWhen the communication was processed but another unexpected error occurred this field contains a message about what happened
-
scheduledTimestringTime and date when the communication was originally scheduled by its origin system. Format according to ISO 8601
-
usingDraftbooleanUse the template draft
-
serviceNamestringService name that created the communication
-
Sent communication not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Validate fixed phone number
/validate /fixed Validates if the fixed number is correct
Request body application/json Required
Phone number to validate
-
phoneNumberstring RequiredPhone number to validate
-
countryCodestringCountry code in ISO 3166-1 alpha-2 format
Responses
OK
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
messagestring -
validboolean
-
Bad Request
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Validate mobile phone number
/validate /mobile Validates if the mobile number is correct
Request body application/json Required
Phone number to validate
-
phoneNumberstring RequiredPhone number to validate
-
countryCodestringCountry code in ISO 3166-1 alpha-2 format
Responses
OK
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
messagestring -
validboolean
-
Bad Request
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communications
Preview a communication
/orgs /{org} /communications /preview Authenticated with a bearer token in the Authorization header Authentication
Preview a communication of certain type in the specified language for provided channels
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Information needed to preview a communication
-
idstring (uuid)Unique identifier for the batch processing line.
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredCommunication language(ISO 639-1)
-
channelsstring[]Channels list through which the communication will be sent, allowed values are: "sms", "email". If not specified, all channels with a defined template are used
-
scheduledTimestringProgrammed time for the communication to be sent that can be reprogrammed to fit delivery window.
-
smsInputobjectSpecific parameters needed for SMS channel, mandatory if SMS channel requested. No need to provide it when previewing a communication
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstring RequiredDestination phone number without international prefix
-
-
emailInputobjectSpecific parameters needed for email channel, mandatory if email channel requested. No need to provide it when previewing a communication
-
destinationEmailstring RequiredThe intended recipient's email address
-
destinationNamestringThe intended recipient's name
-
-
whatsAppInputobjectSpecific parameters needed for whatsApp channel, mandatory if whatsApp channel requested. No need to provide it when previewing a communication
-
countryCodestringInternational prefix without '+'. When not introduced, the application takes the Spanish prefix (34) as default
-
terminatingNumberstring RequiredDestination phone number without international prefix
-
-
externalIdstringClient internal reference
-
argumentsobjectParameters 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
object -
usingDraftbooleanUse the template draft
Responses
Communication previewed successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
smsobjectPreview information of the SMS
-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms content text
-
realTimeRequiredbooleanSMS delivery time criticality indicator. SMS with real time requirement are handled with higher priority than the others in case of overload
-
-
emailobjectPreview information of the email
-
fromobject-
emailstringEmail address used to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringEmail's subject
-
mimeTypestringEmail's content mimeType
-
contentstringEmail's content
-
-
whatsappobjectPreview information of the WhatsApp
-
contentstringWhatsApp content contains only the handoff value
-
-
warningstringCommunication can be processed using the default language since the template with the one provided could not be found
-
usingDraftbooleanUse the template draft
-
The request could be successfully processed but some alteration in the process
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
smsobjectPreview information of the SMS
-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms content text
-
realTimeRequiredbooleanSMS delivery time criticality indicator. SMS with real time requirement are handled with higher priority than the others in case of overload
-
-
emailobjectPreview information of the email
-
fromobject-
emailstringEmail address used to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringEmail's subject
-
mimeTypestringEmail's content mimeType
-
contentstringEmail's content
-
-
whatsappobjectPreview information of the WhatsApp
-
contentstringWhatsApp content contains only the handoff value
-
-
warningstringCommunication can be processed using the default language since the template with the one provided could not be found
-
usingDraftbooleanUse the template draft
-
The response for client error when some field in the request is missing or invalid
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Short URLs
Search Short URLs
/orgs /{org} /short-urls Authenticated with a bearer token in the Authorization header Authentication
Returns the list of registered URLs with provided filters
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
customSuffixbooleanFilter for customSuffixed Short-URL
longUrlstringFilter for long URL shortened
updatedAgentstringFilter for last updated agentId
updatedTime[eq]stringFilter for last updated timestamp (equals)
updatedTime[gt]stringFilter for last updated timestamp (greater/later than)
updatedTime[gte]stringFilter for last updated timestamp (greater/later than or equal to)
updatedTime[lt]stringFilter for last updated timestamp (less/sooner than)
updatedTime[lte]stringFilter for last updated timestamp (less/sooner than or equal to)
limitinteger (int64)Limit of results in the response
offsetinteger (int64)Offset applied to results for pagination
Responses
Successful URL search
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique id for the short URL, usable to do queries about its metadata
-
longUrlstringLong URL the created link redirects to
-
linkstringShortened link
-
createdTimestringShort URL creation timestamp according to ISO 8601
-
updatedTimestringShort URL update timestamp according to ISO 8601
-
createdClientIdstringClient who created the shortened link
-
createdAgentIdstringAuthor who created the shortened link
-
updatedClientIdstringClient who last updated the shortened link
-
updatedAgentIdstringAuthor who last updated the shortened link
-
customSuffixbooleanFlag to indicate whether the shortened link has a custom suffix
-
Bad Request
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Short URLs
Shorten URL
/orgs /{org} /short-urls Authenticated with a bearer token in the Authorization header Authentication
A shortened URL is returned for the provided long URL
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Long URL to be shortened
-
longUrlstringLong URL that is required to be shortened
-
customSuffixstringCustom suffix to use instead of generating a random string
-
lengthstringUser-defined length of the link
Responses
Already shortened URL
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique id for the short URL, usable to do queries about its metadata
-
longUrlstringLong URL the created link redirects to
-
linkstringShortened link
-
createdTimestringShort URL creation timestamp according to ISO 8601
-
updatedTimestringShort URL update timestamp according to ISO 8601
-
createdClientIdstringClient who created the shortened link
-
createdAgentIdstringAuthor who created the shortened link
-
updatedClientIdstringClient who last updated the shortened link
-
updatedAgentIdstringAuthor who last updated the shortened link
-
customSuffixbooleanFlag to indicate whether the shortened link has a custom suffix
-
Successful URL shortening
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique id for the short URL, usable to do queries about its metadata
-
longUrlstringLong URL the created link redirects to
-
linkstringShortened link
-
createdTimestringShort URL creation timestamp according to ISO 8601
-
updatedTimestringShort URL update timestamp according to ISO 8601
-
createdClientIdstringClient who created the shortened link
-
createdAgentIdstringAuthor who created the shortened link
-
updatedClientIdstringClient who last updated the shortened link
-
updatedAgentIdstringAuthor who last updated the shortened link
-
customSuffixbooleanFlag to indicate whether the shortened link has a custom suffix
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Short URLs
Get Short URL
/orgs /{org} /short-urls /{linkDomain} /{linkSuffix} Authenticated with a bearer token in the Authorization header Authentication
Returns the persisted URL with the provided ID
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
linkDomainstringRequiredDomain of link
linkSuffixstringRequiredSuffix of link
Responses
Successful URL search
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique id for the short URL, usable to do queries about its metadata
-
longUrlstringLong URL the created link redirects to
-
linkstringShortened link
-
createdTimestringShort URL creation timestamp according to ISO 8601
-
updatedTimestringShort URL update timestamp according to ISO 8601
-
createdClientIdstringClient who created the shortened link
-
createdAgentIdstringAuthor who created the shortened link
-
updatedClientIdstringClient who last updated the shortened link
-
updatedAgentIdstringAuthor who last updated the shortened link
-
customSuffixbooleanFlag to indicate whether the shortened link has a custom suffix
-
URL not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Short URLs
Update URL
/orgs /{org} /short-urls /{linkDomain} /{linkSuffix} Authenticated with a bearer token in the Authorization header Authentication
An updated short link is returned for the provided ID with requested long URL
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
linkDomainstringRequiredDomain of link
linkSuffixstringRequiredSuffix of link
Request body application/json Required
Long URL to update current one
-
longUrlstringLong URL that is required to be shortened
-
customSuffixstringCustom suffix to use instead of generating a random string
-
lengthstringUser-defined length of the link
Responses
Successful URL update
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
idstringUnique id for the short URL, usable to do queries about its metadata
-
longUrlstringLong URL the created link redirects to
-
linkstringShortened link
-
createdTimestringShort URL creation timestamp according to ISO 8601
-
updatedTimestringShort URL update timestamp according to ISO 8601
-
createdClientIdstringClient who created the shortened link
-
createdAgentIdstringAuthor who created the shortened link
-
updatedClientIdstringClient who last updated the shortened link
-
updatedAgentIdstringAuthor who last updated the shortened link
-
customSuffixbooleanFlag to indicate whether the shortened link has a custom suffix
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
URL not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types
Get communication type
/types /{typeCode} Authenticated with a bearer token in the Authorization header Authentication
Get info of a communication type according to its code
Path parameters
typeCodestringRequiredThe communication type code
Responses
Found communication type
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
Communication type not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types
Update communication type
/types /{typeCode} Authenticated with a bearer token in the Authorization header Authentication
This service allows the modification of communication type's fields and add new arguments
Path parameters
typeCodestringRequiredThe communication type code
Request body application/json Required
Communication type values
-
codestring RequiredUnique identification code for the communication type. It can only contain alphanumeric characters separated with underscores. It is validated under this regular expression: ^[a-z0-9][a-z0-9_]{0,38}[a-z0-9]$
-
descriptionstring RequiredLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. It is used to define the time slot in which the communication can be sent. Possible values are always preceded by ANYDAY_ and any valid window within the same day. For example: ANYDAY_ANYTIME, ANYDAY_8AM8PM, ANYDAY_8AM12PM, ANYDAY_12PM4PM or ANYDAY_4PM8PM.
-
sendingTypestringIf set to EXTERNAL, an external provider will be used to send the communication SMS. Possible values are: DEFAULT, EXTERNAL, BATCH, PREPAID
-
argumentsobject[] RequiredVariable arguments that can be used in the communication and its type: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage or QrInfo
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
requestRefstringReference of issue where example was requested
Responses
Communication type successfully updated
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
Client error in the request
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types
Delete communication type
/types /{typeCode} Authenticated with a bearer token in the Authorization header Authentication
Deletes the communication type according to its code
Path parameters
typeCodestringRequiredThe communication type code
Responses
Communication type deleted successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication type not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types
Get all communication types
/types Authenticated with a bearer token in the Authorization header Authentication
Get all communication types in mas-comms database
Query parameters
typestringCommunication type. Allows EQ (type=password_reset), IN (type[in]=password_reset,portability_ok), and CONTAINS(type[contains]=reset) operations
descriptionstringDescription for communication type. Allows CONTAINS (description[contains]=password) operation
realTimeRequiredbooleanRealtime sending of communication type. Allows EQ (realTimeRequired=true) operation
deliveryWindowstringDelivery window of communication type. Allows EQ (deliveryWindow=ANYDAY_ANYTIME), and IN (delivery_window[in]=ANYDAY_ANYTIME,ANYDAY_8AM8PM) operations
sendingTypestringSending provider for communication type. Allows EQ (sendingType=DEFAULT) operation
argumentstringArgument present in communication type. Allows EQ (argument=name), and CONTAINS (argument[contains]=nam) operations
sensitivestringSensitive argument present in communication type. Allows EQ (sensitive=true) operations
limitinteger (int64)Limit of results in the response
offsetinteger (int64)Offset applied to results for pagination
Responses
Requested types
-
commitstringService version handling the request
-
itemsobject[]All types available in database
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
-
typestringType used for search
-
descriptionstringDescription used for search
-
realTimeRequiredstringSearch based on real time required
-
deliveryWindowstringDelivery window used for search
-
sendingTypestringSending type used for search
-
argumentstringArgument used for search
-
sensitivestringSearch based on sensitive arguments
-
limitinteger (int32)Max number of communication types retrieved
-
offsetinteger (int32)Offset used to paginate in conjunction with limit
-
totalinteger (int32)Total number of records
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types
Create communication type
/types Authenticated with a bearer token in the Authorization header Authentication
This service allows the creation of new communication types to be used in any organization.This service can be call only by MasCommunications administration service accounts
Request body application/json Required
Communication type values
-
codestring RequiredUnique identification code for the communication type. It can only contain alphanumeric characters separated with underscores. It is validated under this regular expression: ^[a-z0-9][a-z0-9_]{0,38}[a-z0-9]$
-
descriptionstring RequiredLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. It is used to define the time slot in which the communication can be sent. Possible values are always preceded by ANYDAY_ and any valid window within the same day. For example: ANYDAY_ANYTIME, ANYDAY_8AM8PM, ANYDAY_8AM12PM, ANYDAY_12PM4PM or ANYDAY_4PM8PM.
-
sendingTypestringIf set to EXTERNAL, an external provider will be used to send the communication SMS. Possible values are: DEFAULT, EXTERNAL, BATCH, PREPAID
-
argumentsobject[] RequiredVariable arguments that can be used in the communication and its type: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage or QrInfo
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
requestRefstringReference of issue where example was requested
Responses
Communication type successfully created
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
Client error in the request
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples
Get example
/orgs /{org} /examples /{exampleId} Authenticated with a bearer token in the Authorization header Authentication
Get an example by its Id
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
exampleIdstringRequiredThe example Id
Responses
Example found and returned
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
Example not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples
Update example
/orgs /{org} /examples /{exampleId} Authenticated with a bearer token in the Authorization header Authentication
Updates an existing example
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
exampleIdstringRequiredThe example Id
Request body application/json Required
Request body to create an example in JSON format
-
idstring (uuid)UUID to be used as identifier of the example. It must be unique in the system
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredExample's language(ISO 639-1)
-
channelstring RequiredChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
expectedOutputobject | object | object RequiredExpected output required for the example definition. It is different depending on the channel
One of-
senderInfostring RequiredSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredExample content, multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredExpected email from address
-
namestringExpected name or title associated with the email from address
-
-
subjectstring RequiredExpected email's subject
-
contentstring RequiredWhatsApp rendered content as JSON object
-
-
argumentsobjectInput arguments used in the example. Name and value of arguments must be coherent with registered type's arguments.
object
Responses
Communication example successfully updated
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples
Delete example
/orgs /{org} /examples /{exampleId} Authenticated with a bearer token in the Authorization header Authentication
Deletes an example by its ID
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
exampleIdstringRequiredThe example Id
Responses
Deleted example
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
Example not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples
Search examples
/orgs /{org} /examples Authenticated with a bearer token in the Authorization header Authentication
This service returns the list of communication examples for the given filters
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
typestringCommunication type. Allows EQ (type=password_reset), and CONTAINS (type[contains]=password) operations
languagestringTemplate language
channelstringTemplate channel
descriptionstringExample description. Allows EQ (description=Shipping in transit), and CONTAINS (description[contains]=shipping) operations
requestRefstringExample request reference. Allows EQ (requestRef=https://jira.com/CUCO-123), and CONTAINS (requestRef[contains]=CUCO-123) operations
subjectstringEmail example expected subject. Allows EQ (subject=Welcome to masmovil), and CONTAINS (subject[contains]=Welcome) operations
contentstringExpected content for example. Allows EQ (content=Your portability is done), and CONTAINS (content[contains]=portability) operations
limitinteger (int64)Limit of results in the response
offsetinteger (int64)Offset applied to results for pagination
Responses
Found examples
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
itemsobject[]Examples matching the provided criteria
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject -
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
-
limitinteger (int32)Max number of examples retrieved
-
offsetinteger (int32)Offset used to paginate in conjunction with limit
-
totalinteger (int32)Total number of records
-
typestringCommunication type filter
-
languagestringLanguage filter
-
channelstringChannel filter
-
descriptionstringDescription filter
-
requestRefstringRequest reference filter
-
contentstringContent filter
-
subjectstringEmail subject filter
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples
Add example
/orgs /{org} /examples Authenticated with a bearer token in the Authorization header Authentication
Adds a new example of a specific type, channel, language and set of arguments. This service can only be called by MasCommunications administration service accounts
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Request body to create an example in JSON format
-
idstring (uuid)UUID to be used as identifier of the example. It must be unique in the system
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredExample's language(ISO 639-1)
-
channelstring RequiredChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
expectedOutputobject | object | object RequiredExpected output required for the example definition. It is different depending on the channel
One of-
senderInfostring RequiredSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredExample content, multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredExpected email from address
-
namestringExpected name or title associated with the email from address
-
-
subjectstring RequiredExpected email's subject
-
contentstring RequiredWhatsApp rendered content as JSON object
-
-
argumentsobjectInput arguments used in the example. Name and value of arguments must be coherent with registered type's arguments.
object
Responses
Communication example successfully created
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples
Validate example
/orgs /{org} /examples /{exampleId} /validate Authenticated with a bearer token in the Authorization header Authentication
Validate an example against its previously loaded template
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
exampleIdstringRequiredThe example Id
Responses
Example validated successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectReport of validated examples against the template
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
idstring (uuid)UUID of the registered example
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language (ISO 639-1)
-
channelstringChannel of example
-
descriptionstringComprehensive description of the purpose of the example
-
changeTypestringIndicates if the change type.
-
outputobject | object | objectExample's output data
One of-
senderInfostringActual sender info output
-
contentstringActual sms content output
-
fromobject-
emailstringProcessed template's from email address
-
namestringProcessed template's from name
-
-
subjectstringActual subject output
-
contentstringActual email content output
-
contentstringActual WhatsApp JSON content as string
-
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Example not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates
Search templates
/orgs /{org} /templates Authenticated with a bearer token in the Authorization header Authentication
Search templates that matches criteria (channel, type, etc...) provided in the query
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
typestringCommunication type. Allows EQ (type=password_reset), and CONTAINS (type[contains]=password) operations
channelstringTemplate channel
languagestringTemplate language
subjectstringSubject for email templates
contentstringSearch template by partial content
limitinteger (int64)Limit of results in the response
offsetinteger (int64)Offset applied to results for pagination
Responses
SMS templates successful search
-
commitstringService version handling the request
-
itemsobject[]Templates matching the provided criteria
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
-
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel through which the communication will be sent
-
subjectstringSubject of the email template
-
limitinteger (int32)Max number of templates retrieved
-
offsetinteger (int32)Offset used to paginate in conjunction with limit
-
totalinteger (int32)Total number of records
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates
Create template
/orgs /{org} /templates Authenticated with a bearer token in the Authorization header Authentication
Creates a new template of a specific type, channel and language. This service can be call only by MasCommunications administration service accounts
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template values
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate language
-
channelstring RequiredTemplate channel
-
dataobject | object | object RequiredData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredTemplate content encoded in base64 , multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredEmail address used to deliver the message Base64 encoded
-
namestringA name or title associated with the sending email address Base64 encoded
-
-
subjectstringEmail's subject Base64 encoded
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstring RequiredBase64 encoded content for the email template
-
contentstring RequiredWhatsApp example content as JSON (handoffId + numbered variables)
-
-
argumentsobjectParameters 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
object -
requestRefstringReference of issue where example was requested
Responses
Communication template successfully created
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates
Update template
/orgs /{org} /templates Authenticated with a bearer token in the Authorization header Authentication
Updates the template uniquely associated with provided type, channel and language. This service can be call only by MasCommunications administration service accounts
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template values
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate language
-
channelstring RequiredTemplate channel
-
dataobject | object | object RequiredData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredTemplate content encoded in base64 , multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredEmail address used to deliver the message Base64 encoded
-
namestringA name or title associated with the sending email address Base64 encoded
-
-
subjectstringEmail's subject Base64 encoded
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstring RequiredBase64 encoded content for the email template
-
contentstring RequiredWhatsApp example content as JSON (handoffId + numbered variables)
-
-
argumentsobjectParameters 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
object -
requestRefstringReference of issue where example was requested
Responses
Communication template successfully updated
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates
Delete template
/orgs /{org} /templates Authenticated with a bearer token in the Authorization header Authentication
Delete the template with type, language and channel provided in the query
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
typestringRequiredCommunication type
channelstringRequiredTemplate channel
languagestringRequiredTemplate language
Responses
Template successfully deleted
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Template not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates
Preview a template
/orgs /{org} /templates /preview Authenticated with a bearer token in the Authorization header Authentication
Returns a preview of the template for provided type, channel, language and given arguments
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template values
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate language
-
channelstring RequiredTemplate channel
-
dataobject | object | object RequiredData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredTemplate content encoded in base64 , multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredEmail address used to deliver the message Base64 encoded
-
namestringA name or title associated with the sending email address Base64 encoded
-
-
subjectstringEmail's subject Base64 encoded
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstring RequiredBase64 encoded content for the email template
-
contentstring RequiredWhatsApp example content as JSON (handoffId + numbered variables)
-
-
argumentsobjectParameters 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
object -
requestRefstringReference of issue where example was requested
Responses
Template processed successfully
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates
Validate template preview
/orgs /{org} /templates /preview /validate Authenticated with a bearer token in the Authorization header Authentication
Validates a template preview checking against its examples
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template values
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate language
-
channelstring RequiredTemplate channel
-
dataobject | object | object RequiredData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredTemplate content encoded in base64 , multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredEmail address used to deliver the message Base64 encoded
-
namestringA name or title associated with the sending email address Base64 encoded
-
-
subjectstringEmail's subject Base64 encoded
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstring RequiredBase64 encoded content for the email template
-
contentstring RequiredWhatsApp example content as JSON (handoffId + numbered variables)
-
-
argumentsobjectParameters 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
object -
requestRefstringReference of issue where example was requested
Responses
Template validated successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate's language (ISO 639-1)
-
channelstringTemplate's channel
-
reportobject[]Report of validated examples against the template
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
idstring (uuid)UUID of the registered example
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language (ISO 639-1)
-
channelstringChannel of example
-
descriptionstringComprehensive description of the purpose of the example
-
changeTypestringIndicates if the change type.
-
outputobject | object | objectExample's output data
One of-
senderInfostringActual sender info output
-
contentstringActual sms content output
-
fromobject -
subjectstringActual subject output
-
contentstringActual email content output
-
contentstringActual WhatsApp JSON content as string
-
-
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates
Validate template
/orgs /{org} /templates /validate Authenticated with a bearer token in the Authorization header Authentication
Validates a template against its examples
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template filters
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate's language (ISO 639-1)
-
channelstring RequiredTemplate's channel
-
changeTypestringChange type of template, default is stable. Valid values: stable, draft.
Responses
Template validated successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate's language (ISO 639-1)
-
channelstringTemplate's channel
-
reportobject[]Report of validated examples against the template
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
idstring (uuid)UUID of the registered example
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language (ISO 639-1)
-
channelstringChannel of example
-
descriptionstringComprehensive description of the purpose of the example
-
changeTypestringIndicates if the change type.
-
outputobject | object | objectExample's output data
One of-
senderInfostringActual sender info output
-
contentstringActual sms content output
-
fromobject -
subjectstringActual subject output
-
contentstringActual email content output
-
contentstringActual WhatsApp JSON content as string
-
-
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Template not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types Beta
Get communication type
/beta /types /{typeCode} Authenticated with a bearer token in the Authorization header Authentication
Get info of a communication type according to its code
Path parameters
typeCodestringRequiredThe communication type code
Query parameters
changeTypestringExample changeType. Values can be 'draft', 'archived' or 'deleted'.Defaults is stable.
Responses
Found communication type
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
Communication type not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types Beta
Update communication type
/beta /types /{typeCode} Authenticated with a bearer token in the Authorization header Authentication
This service allows the modification of communication type's fields and add new arguments
Path parameters
typeCodestringRequiredThe communication type code
Request body application/json Required
Communication type values
-
codestring RequiredUnique identification code for the communication type. It can only contain alphanumeric characters separated with underscores. It is validated under this regular expression: ^[a-z0-9][a-z0-9_]{0,38}[a-z0-9]$
-
descriptionstring RequiredLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. It is used to define the time slot in which the communication can be sent. Possible values are always preceded by ANYDAY_ and any valid window within the same day. For example: ANYDAY_ANYTIME, ANYDAY_8AM8PM, ANYDAY_8AM12PM, ANYDAY_12PM4PM or ANYDAY_4PM8PM.
-
sendingTypestringIf set to EXTERNAL, an external provider will be used to send the communication SMS. Possible values are: DEFAULT, EXTERNAL, BATCH, PREPAID
-
argumentsobject[] RequiredVariable arguments that can be used in the communication and its type: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage or QrInfo
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
requestRefstringReference of issue where example was requested
Responses
Communication type successfully updated
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
Client error in the request
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types Beta
Delete communication type
/beta /types /{typeCode} Authenticated with a bearer token in the Authorization header Authentication
Deletes the communication type according to its code
Path parameters
typeCodestringRequiredThe communication type code
Query parameters
changeTypestringExample changeType. Values can be 'draft'.Defaults to including 'stable' and 'draft'.
Responses
Communication type deleted successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication type not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types Beta
Get all communication types
/beta /types Authenticated with a bearer token in the Authorization header Authentication
Get all communication types in mas-comms database
Query parameters
typestringCommunication type. Allows EQ (type=password_reset), IN (type[in]=password_reset,portability_ok), and CONTAINS(type[contains]=reset) operations
descriptionstringDescription for communication type. Allows CONTAINS (description[contains]=password) operation
realTimeRequiredbooleanRealtime sending of communication type. Allows EQ (realTimeRequired=true) operation
deliveryWindowstringDelivery window of communication type. Allows EQ (deliveryWindow=ANYDAY_ANYTIME), and IN (delivery_window[in]=ANYDAY_ANYTIME,ANYDAY_8AM8PM) operations
sendingTypestringSending provider for communication type. Allows EQ (sendingType=DEFAULT) operation
argumentstringArgument present in communication type. Allows EQ (argument=name), and CONTAINS (argument[contains]=nam) operations
sensitivestringSensitive argument present in communication type. Allows EQ (sensitive=true) operations
limitinteger (int64)Limit of results in the response
offsetinteger (int64)Offset applied to results for pagination
changeTypestringCommunication changeType. Values can be 'draft', 'stable', 'archived' or 'deleted'.Defaults is stable.
Responses
Requested types
-
commitstringService version handling the request
-
itemsobject[]All types available in database
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
-
typestringType used for search
-
descriptionstringDescription used for search
-
realTimeRequiredstringSearch based on real time required
-
deliveryWindowstringDelivery window used for search
-
sendingTypestringSending type used for search
-
argumentstringArgument used for search
-
sensitivestringSearch based on sensitive arguments
-
limitinteger (int32)Max number of communication types retrieved
-
offsetinteger (int32)Offset used to paginate in conjunction with limit
-
totalinteger (int32)Total number of records
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Communication Types Beta
Create communication type
/beta /types Authenticated with a bearer token in the Authorization header Authentication
This service allows the creation of new communication types to be used in any organization.This service can be call only by MasCommunications administration service accounts
Request body application/json Required
Communication type values
-
codestring RequiredUnique identification code for the communication type. It can only contain alphanumeric characters separated with underscores. It is validated under this regular expression: ^[a-z0-9][a-z0-9_]{0,38}[a-z0-9]$
-
descriptionstring RequiredLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. It is used to define the time slot in which the communication can be sent. Possible values are always preceded by ANYDAY_ and any valid window within the same day. For example: ANYDAY_ANYTIME, ANYDAY_8AM8PM, ANYDAY_8AM12PM, ANYDAY_12PM4PM or ANYDAY_4PM8PM.
-
sendingTypestringIf set to EXTERNAL, an external provider will be used to send the communication SMS. Possible values are: DEFAULT, EXTERNAL, BATCH, PREPAID
-
argumentsobject[] RequiredVariable arguments that can be used in the communication and its type: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage or QrInfo
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
requestRefstringReference of issue where example was requested
Responses
Communication type successfully created
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringCommunication type id string
-
objectTypestringObject type
-
codestringUnique identification code for the communication type
-
descriptionstringLong text description of the communication purpose
-
realTimeRequiredbooleanFlag indicating if the communication early delivery is critical. Communications with real time requirement are handled with higher priority than the others in case of overload
-
deliveryWindowstringCommunication's delivery window. If another scheduled time is defined, this value will be ignored. Possible values are: ANYDAY_ANYTIME, ANYDAY_8AM8PM
-
sendingTypestringProvider that will be used to send SMS communications. Possible values are: DEFAULT, EXTERNAL
-
createdTimestringCommunication type's creation date and time. Format according to ISO 8601
-
updatedTimestringLast time the communication type was modified. Format according to ISO 8601
-
deletedTimestringThe time when communication type was deleted. Format according to ISO 8601
-
argumentsobject[]Variable arguments that can be used in the communication and its type
-
namestring RequiredArgument name that could be used in communication templates
-
typestring RequiredData type of the argument. Possible values are: String, StringList, StringMap, Number, Link,LocaleRegion, Date, Boolean, Attachment, EmbeddedImage, QrInfo or MasDocument
-
sensitivebooleanWhether the argument is sensitive or not. Sensitive arguments are not persisted
-
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
versionstringVersion of item
-
Client error in the request
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples Beta
Get example
/beta /orgs /{org} /examples /{exampleId} Authenticated with a bearer token in the Authorization header Authentication
Get an example by its Id
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
exampleIdstringRequiredThe example Id
Query parameters
changeTypestringExample changeType. Values can be 'draft', 'stable', 'archived' or 'deleted'Defaults is stable.
Responses
Example found and returned
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
Example not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples Beta
Update example
/beta /orgs /{org} /examples /{exampleId} Authenticated with a bearer token in the Authorization header Authentication
Updates an existing example
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
exampleIdstringRequiredThe example Id
Request body application/json Required
Request body to create an example in JSON format
-
idstring (uuid)UUID to be used as identifier of the example. It must be unique in the system
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredExample's language(ISO 639-1)
-
channelstring RequiredChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
expectedOutputobject | object | object RequiredExpected output required for the example definition. It is different depending on the channel
One of-
senderInfostring RequiredSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredExample content, multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredExpected email from address
-
namestringExpected name or title associated with the email from address
-
-
subjectstring RequiredExpected email's subject
-
contentstring RequiredWhatsApp rendered content as JSON object
-
-
argumentsobjectInput arguments used in the example. Name and value of arguments must be coherent with registered type's arguments.
object
Responses
Communication example successfully updated
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples Beta
Delete example
/beta /orgs /{org} /examples /{exampleId} Authenticated with a bearer token in the Authorization header Authentication
Deletes an example by its ID
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
exampleIdstringRequiredThe example Id
Query parameters
changeTypestringExample changeType. Values can be 'draft'.Defaults to including 'stable' and 'draft'.
Responses
Deleted example
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
Example not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples Beta
Search examples
/beta /orgs /{org} /examples Authenticated with a bearer token in the Authorization header Authentication
This service returns the list of communication examples for the given filters
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
typestringCommunication type. Allows EQ (type=password_reset), and CONTAINS (type[contains]=password) operations
languagestringTemplate language
channelstringTemplate channel
descriptionstringExample description. Allows EQ (description=Shipping in transit), and CONTAINS (description[contains]=shipping) operations
requestRefstringExample request reference. Allows EQ (requestRef=https://jira.com/CUCO-123), and CONTAINS (requestRef[contains]=CUCO-123) operations
subjectstringEmail example expected subject. Allows EQ (subject=Welcome to masmovil), and CONTAINS (subject[contains]=Welcome) operations
contentstringExpected content for example. Allows EQ (content=Your portability is done), and CONTAINS (content[contains]=portability) operations
limitinteger (int64)Limit of results in the response
offsetinteger (int64)Offset applied to results for pagination
changeTypestringExample changeType. Values can be 'draft', 'stable', 'archived' or 'deleted'.Defaults is stable.
Responses
Found examples
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
itemsobject[]Examples matching the provided criteria
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject -
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
-
limitinteger (int32)Max number of examples retrieved
-
offsetinteger (int32)Offset used to paginate in conjunction with limit
-
totalinteger (int32)Total number of records
-
typestringCommunication type filter
-
languagestringLanguage filter
-
channelstringChannel filter
-
descriptionstringDescription filter
-
requestRefstringRequest reference filter
-
contentstringContent filter
-
subjectstringEmail subject filter
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples Beta
Add example
/beta /orgs /{org} /examples Authenticated with a bearer token in the Authorization header Authentication
Adds a new example of a specific type, channel, language and set of arguments. This service can only be called by MasCommunications administration service accounts
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Request body to create an example in JSON format
-
idstring (uuid)UUID to be used as identifier of the example. It must be unique in the system
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredExample's language(ISO 639-1)
-
channelstring RequiredChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
expectedOutputobject | object | object RequiredExpected output required for the example definition. It is different depending on the channel
One of-
senderInfostring RequiredSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredExample content, multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredExpected email from address
-
namestringExpected name or title associated with the email from address
-
-
subjectstring RequiredExpected email's subject
-
contentstring RequiredWhatsApp rendered content as JSON object
-
-
argumentsobjectInput arguments used in the example. Name and value of arguments must be coherent with registered type's arguments.
object
Responses
Communication example successfully created
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
objectIdstringExample id string
-
objectTypestringObject type
-
idstring (uuid)UUID of the registered example as generated by database
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language(ISO 639-1)
-
channelstringChannel of example
-
requestRefstringReference of issue where example was requested
-
descriptionstringComprehensive description of the purpose of the example
-
argumentsobjectInput arguments used in the example
object -
expectedOutputobject | object | objectExpected content of example for set of provided arguments. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms example content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
contentstringWhatsApp example content as string (handoffId + numbered variables)
-
-
createdTimestringExample's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the example was modified. Format according to ISO 8601
-
deletedTimestringThe time when example was deleted. Format according to ISO 8601
-
createdClientIdstringSystem or frontend that created the example identified by its audience.
-
updatedClientIdstringSystem or frontend that requested the last example update identified by its audience.
-
createdAgentIdstringId of the agent that made the request if available, otherwise N/A.
-
updatedAgentIdstringAgentId that requested example update if available, otherwise N/A.
-
changeTypestringIndicates if the change type (stable/draft/validated).
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Examples Beta
Validate example
/beta /orgs /{org} /examples /{exampleId} /validate Authenticated with a bearer token in the Authorization header Authentication
Validate an example against its previously loaded template
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
exampleIdstringRequiredThe example Id
Query parameters
changeTypestringExample changeType. Values can be 'draft'.Defaults is 'stable'.
Responses
Example validated successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectReport of validated examples against the template
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
idstring (uuid)UUID of the registered example
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language (ISO 639-1)
-
channelstringChannel of example
-
descriptionstringComprehensive description of the purpose of the example
-
changeTypestringIndicates if the change type.
-
outputobject | object | objectExample's output data
One of-
senderInfostringActual sender info output
-
contentstringActual sms content output
-
fromobject-
emailstringProcessed template's from email address
-
namestringProcessed template's from name
-
-
subjectstringActual subject output
-
contentstringActual email content output
-
contentstringActual WhatsApp JSON content as string
-
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Example not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Search templates
/beta /orgs /{org} /templates Authenticated with a bearer token in the Authorization header Authentication
Search templates that matches criteria (channel, type, etc...) provided in the query
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
typestringCommunication type. Allows EQ (type=password_reset), and CONTAINS (type[contains]=password) operations
channelstringTemplate channel
languagestringTemplate language
subjectstringSubject for email templates
contentstringSearch template by partial content
limitinteger (int64)Limit of results in the response
offsetinteger (int64)Offset applied to results for pagination
changeTypestringTemplates changeType. Values can be 'draft', 'stable', 'archived' or 'deleted'.Defaults is stable.
Responses
SMS templates successful search
-
commitstringService version handling the request
-
itemsobject[]Templates matching the provided criteria
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
-
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel through which the communication will be sent
-
subjectstringSubject of the email template
-
limitinteger (int32)Max number of templates retrieved
-
offsetinteger (int32)Offset used to paginate in conjunction with limit
-
totalinteger (int32)Total number of records
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Create template
/beta /orgs /{org} /templates Authenticated with a bearer token in the Authorization header Authentication
Creates a new template of a specific type, channel and language. This service can be call only by MasCommunications administration service accounts
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template values
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate language
-
channelstring RequiredTemplate channel
-
dataobject | object | object RequiredData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredTemplate content encoded in base64 , multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredEmail address used to deliver the message Base64 encoded
-
namestringA name or title associated with the sending email address Base64 encoded
-
-
subjectstringEmail's subject Base64 encoded
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstring RequiredBase64 encoded content for the email template
-
contentstring RequiredWhatsApp example content as JSON (handoffId + numbered variables)
-
-
argumentsobjectParameters 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
object -
requestRefstringReference of issue where example was requested
Responses
Communication template successfully created
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Update template
/beta /orgs /{org} /templates Authenticated with a bearer token in the Authorization header Authentication
Updates the template uniquely associated with provided type, channel and language. This service can be call only by MasCommunications administration service accounts
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template values
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate language
-
channelstring RequiredTemplate channel
-
dataobject | object | object RequiredData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredTemplate content encoded in base64 , multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredEmail address used to deliver the message Base64 encoded
-
namestringA name or title associated with the sending email address Base64 encoded
-
-
subjectstringEmail's subject Base64 encoded
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstring RequiredBase64 encoded content for the email template
-
contentstring RequiredWhatsApp example content as JSON (handoffId + numbered variables)
-
-
argumentsobjectParameters 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
object -
requestRefstringReference of issue where example was requested
Responses
Communication template successfully updated
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Delete template
/beta /orgs /{org} /templates Authenticated with a bearer token in the Authorization header Authentication
Delete the template with type, language and channel provided in the query
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Query parameters
typestringRequiredCommunication type
channelstringRequiredTemplate channel
languagestringRequiredTemplate language
changeTypestringExample changeType. Values can be 'draft'.Defaults to including 'stable' and 'draft'.
Responses
Template successfully deleted
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Template not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Download deployment package
/beta /orgs /{org} /templates /download Authenticated with a bearer token in the Authorization header Authentication
Download deployment package
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Deployment selection for the export package. Allows cherry-picking specific objects to include in the deployment.
-
downloadobject[]List of objects to download for the deployment package
-
objectIdstringObject identifier
-
objectTypestringType of object to download
-
Responses
Returns a JSON deployment package as an attachment.
-
itemsobject[]List of export objects (templates, examples, communication types) in this package. Each object contains its full database snapshot as JSON.
-
communicationTypeCodestringThe code of the communication type associated with this object
-
objectIdstringObject ID from the database. Represents Long as String for templates/types or UUID for examples.
-
objectTypestringType of object being exported (e.g., 'sms_template', 'email_example', 'communication_type').
-
objectSnapshotobjectFull database row snapshot as a flexible JSON object. Contains all columns, including nested 'arguments' for examples/types.
object
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
deployment package not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Import deployment package
/beta /orgs /{org} /templates /import Authenticated with a bearer token in the Authorization header Authentication
Synchronize production configuration based on a deployment package JSON file.
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body multipart/form-data Required
Deployment package JSON file
-
filestring (binary) RequiredDeployment package JSON file
Responses
Deployment package imported successfully
-
overallStatusstringOverall status of the import operation (SUCCESS, FAILED, PARTIAL_SUCCESS)
-
countsobjectImport statistics
-
totalinteger (int32)total
-
errorsinteger (int32)errors
-
successinteger (int32)success
-
-
communicationTypesobject[]Results for imported communication types
-
objectTypestringobjectType
-
objectIdstringobjectId
-
communicationTypeCodestringcommunicationTypeCode
-
channelstringchannel
-
languagestringlanguage
-
statusstringstatus
-
operationstringoperation
-
errorMessagestringerrorMessage
-
-
templatesobject[]Results for imported templates
-
objectTypestringobjectType
-
objectIdstringobjectId
-
communicationTypeCodestringcommunicationTypeCode
-
channelstringchannel
-
languagestringlanguage
-
statusstringstatus
-
operationstringoperation
-
errorMessagestringerrorMessage
-
-
examplesobject[]Results for imported examples
-
objectTypestringobjectType
-
objectIdstringobjectId
-
communicationTypeCodestringcommunicationTypeCode
-
channelstringchannel
-
languagestringlanguage
-
statusstringstatus
-
operationstringoperation
-
errorMessagestringerrorMessage
-
Invalid deployment package or duplicate version
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Preview a template
/beta /orgs /{org} /templates /preview Authenticated with a bearer token in the Authorization header Authentication
Returns a preview of the template for provided type, channel, language and given arguments
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template values
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate language
-
channelstring RequiredTemplate channel
-
dataobject | object | object RequiredData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredTemplate content encoded in base64 , multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredEmail address used to deliver the message Base64 encoded
-
namestringA name or title associated with the sending email address Base64 encoded
-
-
subjectstringEmail's subject Base64 encoded
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstring RequiredBase64 encoded content for the email template
-
contentstring RequiredWhatsApp example content as JSON (handoffId + numbered variables)
-
-
argumentsobjectParameters 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
object -
requestRefstringReference of issue where example was requested
Responses
Template processed successfully
-
commitstringService version handling the request
-
objectIdstringTemplate id string
-
objectTypestringObject type
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringChannel where the template is applicable
-
dataobject | object | objectData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstringSms template content
-
fromobject-
emailstringEmail address that will be use to deliver the message
-
namestringA name or title associated with the sending email address
-
-
subjectstringProcessed email's subject
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstringEmail's template content based on the specified MIME type
-
attachmentsstring[]This field is only available when previewing templates. It shows what attachment would be added when sending the communication
-
contentstringWhatsApp template JSON content. Must contain a 'handoffId' and may contain numeric keys ("1", "2", ...) and headerVariables map ( "headerVariables": { "1": "Our magic brand" } ) .
-
-
createdTimestringTemplate's creation date and time according to ISO 8601 format
-
updatedTimestringLast time the template was modified. Format according to ISO 8601
-
deletedTimestringThe time when template was deleted. Format according to ISO 8601
-
changeTypestring RequiredIndicates if the change type (stable/draft/validated).
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Validate template preview
/beta /orgs /{org} /templates /preview /validate Authenticated with a bearer token in the Authorization header Authentication
Validates a template preview checking against its examples
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template values
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate language
-
channelstring RequiredTemplate channel
-
dataobject | object | object RequiredData required for the template definition. It is different depending on the channel
One of-
senderInfostringSender info to be shown in SMS, it can be text up to 11 characters or a phone number up to 15 digits
-
contentstring RequiredTemplate content encoded in base64 , multiple alphabets are supported, see https://developers.masstack.com/en/guides/communications/supported for details
-
fromobject-
emailstring RequiredEmail address used to deliver the message Base64 encoded
-
namestringA name or title associated with the sending email address Base64 encoded
-
-
subjectstringEmail's subject Base64 encoded
-
mimeTypestring RequiredThe MIME type of the content to be included in the email
-
contentstring RequiredBase64 encoded content for the email template
-
contentstring RequiredWhatsApp example content as JSON (handoffId + numbered variables)
-
-
argumentsobjectParameters 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
object -
requestRefstringReference of issue where example was requested
Responses
Template validated successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate's language (ISO 639-1)
-
channelstringTemplate's channel
-
reportobject[]Report of validated examples against the template
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
idstring (uuid)UUID of the registered example
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language (ISO 639-1)
-
channelstringChannel of example
-
descriptionstringComprehensive description of the purpose of the example
-
changeTypestringIndicates if the change type.
-
outputobject | object | objectExample's output data
One of-
senderInfostringActual sender info output
-
contentstringActual sms content output
-
fromobject -
subjectstringActual subject output
-
contentstringActual email content output
-
contentstringActual WhatsApp JSON content as string
-
-
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Beta
Validate template
/beta /orgs /{org} /templates /validate Authenticated with a bearer token in the Authorization header Authentication
Validates a template against its examples
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json Required
Template filters
-
typestring RequiredCommunication type code according to the ones previously defined in the system
-
languagestring RequiredTemplate's language (ISO 639-1)
-
channelstring RequiredTemplate's channel
-
changeTypestringChange type of template, default is stable. Valid values: stable, draft.
Responses
Template validated successfully
-
commitstringService version handling the request
-
idstringSpecific resource identifier
-
dataobjectData content
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate's language (ISO 639-1)
-
channelstringTemplate's channel
-
reportobject[]Report of validated examples against the template
-
passbooleanIndicates whether the template output matches the example expected data
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
idstring (uuid)UUID of the registered example
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringExample's language (ISO 639-1)
-
channelstringChannel of example
-
descriptionstringComprehensive description of the purpose of the example
-
changeTypestringIndicates if the change type.
-
outputobject | object | objectExample's output data
One of-
senderInfostringActual sender info output
-
contentstringActual sms content output
-
fromobject -
subjectstringActual subject output
-
contentstringActual email content output
-
contentstringActual WhatsApp JSON content as string
-
-
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Template not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Commit Beta
Validate template
/beta /commit Authenticated with a bearer token in the Authorization header Authentication
Validates a template against its examples
Request body application/json Required
Template commit filters
-
commitItemsobject[] RequiredList of items to be committed and marked as stable
-
objectIdstring RequiredTemplate's language (ISO 639-1)
-
objectTypestring RequiredObject type that can be commit.
-
-
deletedItemsobject[] RequiredList of items deleted that will be removed from delete list
-
objectIdstring RequiredTemplate's language (ISO 639-1)
-
objectTypestring RequiredObject type that can be commit.
-
Responses
Template commit successfully
-
commitstringService version handling the request
-
commitItemsobject[]Items commited
-
objectIdstring RequiredTemplate's language (ISO 639-1)
-
objectTypestring RequiredObject type that can be commit.
-
-
promoteDeletedItemsToArchivedItemobject[]Items deleted promoted as archived
-
objectIdstring RequiredTemplate's language (ISO 639-1)
-
objectTypestring RequiredObject type that can be commit.
-
-
itemsNotCommittedobject[]Items not commited
-
objectIdstring RequiredTemplate's language (ISO 639-1)
-
objectTypestring RequiredObject type that can be commit.
-
draftCompatiblebooleanObject is draft compatible
-
changeTypestringIndicates if the change type.
-
-
deletedItemsNotCommittedobject[]Deleted items not commited
-
objectIdstring RequiredTemplate's language (ISO 639-1)
-
objectTypestring RequiredObject type that can be commit.
-
Template not found
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Templates Commit Beta
Validate commType/template/example
/beta /orgs /{org} /commit /validation Authenticated with a bearer token in the Authorization header Authentication
Implement an API endpoint to validate modified templates and related artifacts before deployment, with an option for targeted validation based on specific criteria.
Path parameters
orgstringRequiredOrganization name as it is registered in Mas-Stack
Request body application/json
Validation values not mandatory
-
typestringCommunication type code according to the ones previously defined in the system
-
languagestringTemplate language
-
channelstringTipul canalului pentru comunicare. Valorile acceptate sunt 'sms' sau 'email'.
Responses
Returned a list of elements validated
-
commitstringService version handling the request
-
itemsobject[]-
typestringCommunication type code according to the ones previously defined in the system
-
typeIdinteger (int64)The unique identifier of the type.
-
objectTypestringThe type of the object. For example, 'communication_type'.
-
changeTypestringIndicates if the change type.
-
channelstringTipul canalului pentru comunicare. Valorile acceptate sunt 'sms' sau 'email'.
-
typeItemsobject[]List of items selected for validation
-
objectIdstringThe unique identifier of the object.
-
objectTypestringThe type of the object. For example, 'sms_example'.
-
languagestringThe language of the object
-
changeTypestringIndicates if the change type.
-
errorsobject[]List of errors when example and template output does not match
-
fieldstringMismatching field name
-
expectedstringExpected field's value
-
returnedstringActual field's value
-
-
contentstringContent of the example or template
-
tenantstringTenant of the object
-
eligibleForDeploymentboolean
-
-
descriptionstringDescription of communication type
-
eligibleForDeploymentboolean
-
Client error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-
Server Error
-
errorsobject[]Error info
-
codestringError code
-
titlestringError title
-
detailsstringError message
-
refstringError reference
-
httpStatusCodeinteger (int32)HTTP status code
-