Select
Communications
A Communication resource contains all the information related with a given communication event, info such as the type of communication, the language and channel used and any other relevant communication data
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
destinationEmail | query | string | true | Queried communication’s email destination address |
terminatingNumber | query | integer(int64) | true | Queried communication’s SMS terminating number without country code |
countryCode | query | integer(int64) | false | Queried communication’s SMS country code without + symbol |
requestTime[gt] | query | string | false | Return requests with request time greater (later) than the one specified |
requestTime[lt] | query | string | false | Return requests with request time lower (earlier) than the one specified |
clientId | query | string | false | Queried communication’s client id taken from audience header |
limit | query | integer(int64) | false | Limit of results in the response |
offset | query | integer(int64) | false | Offset applied to results for pagination |
externalId | query | string | true | Internal reference provided by the client system that could be used in later queries |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful communications search | CommunicationListResponse |
400 | Bad Request | Client error on request | ResponseErrorDto |
500 | Internal Server Error | Server error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | CommunicationRequestDto | true | Information needed to send a communication |
Request body - instance of CommunicationRequestDto
|
|
Name | Type | Required | Description |
---|---|---|---|
type | string | true | Communication type code according to the ones previously defined in the system |
language | string | true | Communication language(ISO 639-1) |
channels | [string] | false | 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 |
scheduledTime | string | false | Programmed time for the communication to be sent that can be reprogrammed to fit delivery window. |
smsInput | CommunicationRequestSmsDto | false | Specific parameters needed for SMS channel, mandatory if SMS channel requested. No need to provide it when previewing a communication |
emailInput | CommunicationRequestEmailDto | false | Specific parameters needed for email channel, mandatory if email channel requested. No need to provide it when previewing a communication |
externalId | string | false | Client internal reference |
arguments | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array |
» additionalProperties | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
202 | Accepted | Successfully sent communication | CommunicationResponse |
206 | Partial Content | Communication sent with with some kind of failure, e.g:the e-mail has been successfully sent but the SMS failed in a multi-channel communication | CommunicationResponse |
400 | Bad Request | The response for client error when some field in the request is missing or invalid | ResponseErrorDto |
500 | Internal Server Error | Server error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
qrToken | path | string | true | The communication encrypted data for generating QR Image |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successfully created QR code image | None |
400 | Bad Request | Invalid, missing or expired QR token | ResponseErrorDto |
500 | Internal Server Error | Server error while retrieving image | ResponseErrorDto |
400 - instance of ResponseErrorDto
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
commit | string | false | Service version handling the request |
error | ErrorDto | false | Error info |
500 - instance of ResponseErrorDto
Custom schema example
|
|
Name | Type | Required | Description |
---|---|---|---|
commit | string | false | Service version handling the request |
error | ErrorDto | false | Error info |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
communicationId | path | string | true | The communication identifier |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successfully found communication | CommunicationResponse |
404 | Not Found | Sent communication not found | ResponseErrorDto |
500 | Internal Server Error | Server error | ResponseErrorDto |
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
org | path | string | true | Organization name as it is registered in Mas-Stack |
body | body | CommunicationRequestDto | true | Information needed to preview a communication |
Request body - instance of CommunicationRequestDto
|
|
Name | Type | Required | Description |
---|---|---|---|
type | string | true | Communication type code according to the ones previously defined in the system |
language | string | true | Communication language(ISO 639-1) |
channels | [string] | false | 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 |
scheduledTime | string | false | Programmed time for the communication to be sent that can be reprogrammed to fit delivery window. |
smsInput | CommunicationRequestSmsDto | false | Specific parameters needed for SMS channel, mandatory if SMS channel requested. No need to provide it when previewing a communication |
emailInput | CommunicationRequestEmailDto | false | Specific parameters needed for email channel, mandatory if email channel requested. No need to provide it when previewing a communication |
externalId | string | false | Client internal reference |
arguments | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array |
» additionalProperties | object | false | Parameters and assigned values that are required to render the specified template. Depending on the argument type they can be a string, a number, a boolean or an array |
Request example
|
|
Responses
Code | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Communication previewed successfully | CommunicationPreviewResponse |
206 | Partial Content | The request could be successfully processed but some alteration in the process | CommunicationPreviewResponse |
400 | Bad Request | The response for client error when some field in the request is missing or invalid | ResponseErrorDto |
500 | Internal Server Error | Server error | ResponseErrorDto |
Endpoints
CMS
Communications
Short URLs
Communication Types
Examples
Templates