V2
Communications
Communications Fixed Phone Number Validation defines the endpoint to validate if a fixed phone number is correct
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 |
| whatsAppInput | CommunicationRequestWhatsAppDto | false | Specific parameters needed for whatsApp channel, mandatory if whatsApp 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 and whatsapp have 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 |
|---|---|---|---|---|
| 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 attachments | CommunicationAttachmentResponse |
| 404 | Not Found | Communication not found | ResponseErrorDto |
| 500 | Internal Server Error | Server error | ResponseErrorDto |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| qrToken | query | 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 |
|---|---|---|---|
| errors | [ErrorDto] | false | Error info |
500 - instance of ResponseErrorDto
Custom schema example
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| errors | [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 |
|---|---|---|---|---|
| body | body | FixedPhoneNumberValidationRequestDto | true | Phone number to validate |
Request body - instance of FixedPhoneNumberValidationRequestDto
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| phoneNumber | string | true | Phone number to validate |
| countryCode | string | false | Country code in ISO 3166-1 alpha-2 format |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | FixedPhoneNumberValidationResponseDto |
| 400 | Bad Request | Bad Request | ResponseErrorDto |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | MobilePhoneNumberValidationRequestDto | true | Phone number to validate |
Request body - instance of MobilePhoneNumberValidationRequestDto
|
|
| Name | Type | Required | Description |
|---|---|---|---|
| phoneNumber | string | true | Phone number to validate |
| countryCode | string | false | Country code in ISO 3166-1 alpha-2 format |
Request example
|
|
Responses
| Code | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | MobilePhoneNumberValidationResponseDto |
| 400 | Bad Request | Bad Request | 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 |
| whatsAppInput | CommunicationRequestWhatsAppDto | false | Specific parameters needed for whatsApp channel, mandatory if whatsApp 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