POST api/sms/send-mass-message
Request Information
URI Parameters
None.
Body Parameters
SendMassMessageRequestName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
AgencyId | globally unique identifier |
None. |
|
ToPhoneNumberArray | Collection of string |
None. |
|
TextMessage | string |
None. |
|
Attachments | Collection of AttachmentFile |
None. |
|
SubscriptionResponseWebhookUrl | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "userId": "a19a0c4c-f032-49ad-8fee-cddf5fa1a8f1", "agencyId": "51657177-742f-42b1-acdd-c502d99fb72b", "toPhoneNumberArray": [ "sample string 1", "sample string 2" ], "textMessage": "sample string 3", "attachments": [ { "fileBytes": "QEA=", "mime": "sample string 1", "fileName": "sample string 2" }, { "fileBytes": "QEA=", "mime": "sample string 1", "fileName": "sample string 2" } ], "subscriptionResponseWebhookUrl": "sample string 4" }
application/xml, text/xml
Sample:
<SendMassMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.OData.SMS"> <_x003C_AgencyId_x003E_k__BackingField>51657177-742f-42b1-acdd-c502d99fb72b</_x003C_AgencyId_x003E_k__BackingField> <_x003C_Attachments_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/NowCerts.Domain.Common.Models"> <d2p1:AttachmentFile> <d2p1:FileBytes>QEA=</d2p1:FileBytes> <d2p1:FileName>sample string 2</d2p1:FileName> <d2p1:MIME>sample string 1</d2p1:MIME> </d2p1:AttachmentFile> <d2p1:AttachmentFile> <d2p1:FileBytes>QEA=</d2p1:FileBytes> <d2p1:FileName>sample string 2</d2p1:FileName> <d2p1:MIME>sample string 1</d2p1:MIME> </d2p1:AttachmentFile> </_x003C_Attachments_x003E_k__BackingField> <_x003C_SubscriptionResponseWebhookUrl_x003E_k__BackingField>sample string 4</_x003C_SubscriptionResponseWebhookUrl_x003E_k__BackingField> <_x003C_TextMessage_x003E_k__BackingField>sample string 3</_x003C_TextMessage_x003E_k__BackingField> <_x003C_ToPhoneNumberArray_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </_x003C_ToPhoneNumberArray_x003E_k__BackingField> <_x003C_UserId_x003E_k__BackingField>a19a0c4c-f032-49ad-8fee-cddf5fa1a8f1</_x003C_UserId_x003E_k__BackingField> </SendMassMessageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NowCertsApiResultWithClassListOfSendMessageResultName | Description | Type | Additional information |
---|---|---|---|
Status | ApiStatus |
None. |
|
Data | Collection of SendMessageResult |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "status": 0, "data": [ { "id": "01d5be2b-680e-47bf-8e1d-3d2a84729ece", "createDate": "2024-12-09T17:22:08.0415664-06:00", "insuranceAgencyId": "dbbacfe0-89d0-41bf-bab0-c454164b237b", "lastChangeUserId": "3a86e51b-0fbe-435a-ab45-00d9de8efff4", "fromNumber": "sample string 5", "toNumber": "sample string 6", "subject": "sample string 7" }, { "id": "01d5be2b-680e-47bf-8e1d-3d2a84729ece", "createDate": "2024-12-09T17:22:08.0415664-06:00", "insuranceAgencyId": "dbbacfe0-89d0-41bf-bab0-c454164b237b", "lastChangeUserId": "3a86e51b-0fbe-435a-ab45-00d9de8efff4", "fromNumber": "sample string 5", "toNumber": "sample string 6", "subject": "sample string 7" } ], "message": "sample string 1" }
application/xml, text/xml
Sample:
<NowCertsApiResultWithClassListOfSendMessageResultuwwjCqqQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BusinessEntities.OData.SMS"> <d2p1:SendMessageResult> <d2p1:_x003C_CreateDate_x003E_k__BackingField>2024-12-09T17:22:08.0415664-06:00</d2p1:_x003C_CreateDate_x003E_k__BackingField> <d2p1:_x003C_FromNumber_x003E_k__BackingField>sample string 5</d2p1:_x003C_FromNumber_x003E_k__BackingField> <d2p1:_x003C_Id_x003E_k__BackingField>01d5be2b-680e-47bf-8e1d-3d2a84729ece</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>dbbacfe0-89d0-41bf-bab0-c454164b237b</d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField> <d2p1:_x003C_LastChangeUserId_x003E_k__BackingField>3a86e51b-0fbe-435a-ab45-00d9de8efff4</d2p1:_x003C_LastChangeUserId_x003E_k__BackingField> <d2p1:_x003C_Subject_x003E_k__BackingField>sample string 7</d2p1:_x003C_Subject_x003E_k__BackingField> <d2p1:_x003C_ToNumber_x003E_k__BackingField>sample string 6</d2p1:_x003C_ToNumber_x003E_k__BackingField> </d2p1:SendMessageResult> <d2p1:SendMessageResult> <d2p1:_x003C_CreateDate_x003E_k__BackingField>2024-12-09T17:22:08.0415664-06:00</d2p1:_x003C_CreateDate_x003E_k__BackingField> <d2p1:_x003C_FromNumber_x003E_k__BackingField>sample string 5</d2p1:_x003C_FromNumber_x003E_k__BackingField> <d2p1:_x003C_Id_x003E_k__BackingField>01d5be2b-680e-47bf-8e1d-3d2a84729ece</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>dbbacfe0-89d0-41bf-bab0-c454164b237b</d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField> <d2p1:_x003C_LastChangeUserId_x003E_k__BackingField>3a86e51b-0fbe-435a-ab45-00d9de8efff4</d2p1:_x003C_LastChangeUserId_x003E_k__BackingField> <d2p1:_x003C_Subject_x003E_k__BackingField>sample string 7</d2p1:_x003C_Subject_x003E_k__BackingField> <d2p1:_x003C_ToNumber_x003E_k__BackingField>sample string 6</d2p1:_x003C_ToNumber_x003E_k__BackingField> </d2p1:SendMessageResult> </Data> <Message>sample string 1</Message> <Status>Error</Status> </NowCertsApiResultWithClassListOfSendMessageResultuwwjCqqQ>