POST api/sms/send-mass-message

Request Information

URI Parameters

None.

Body Parameters

SendMassMessageRequest
NameDescriptionTypeAdditional 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": "0ebb9e00-74f5-4282-abc0-671c0767b83c",
  "agencyId": "07b5315d-9de6-4f73-a32c-6ab12da3d657",
  "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>07b5315d-9de6-4f73-a32c-6ab12da3d657</_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>0ebb9e00-74f5-4282-abc0-671c0767b83c</_x003C_UserId_x003E_k__BackingField>
</SendMassMessageRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NowCertsApiResultWithClassListOfSendMessageResult
NameDescriptionTypeAdditional information
Status

ApiStatus

None.

Data

Collection of SendMessageResult

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 0,
  "data": [
    {
      "id": "bd29589b-ff36-4b41-b7da-63c3da3b1812",
      "createDate": "2024-11-21T02:52:10.897901-06:00",
      "insuranceAgencyId": "1b967d2c-89f0-44d2-a5fb-7796b37125d7",
      "lastChangeUserId": "1458158d-14fd-44ec-8273-21f3f386d227",
      "fromNumber": "sample string 5",
      "toNumber": "sample string 6",
      "subject": "sample string 7"
    },
    {
      "id": "bd29589b-ff36-4b41-b7da-63c3da3b1812",
      "createDate": "2024-11-21T02:52:10.897901-06:00",
      "insuranceAgencyId": "1b967d2c-89f0-44d2-a5fb-7796b37125d7",
      "lastChangeUserId": "1458158d-14fd-44ec-8273-21f3f386d227",
      "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-11-21T02:52:10.897901-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>bd29589b-ff36-4b41-b7da-63c3da3b1812</d2p1:_x003C_Id_x003E_k__BackingField>
      <d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>1b967d2c-89f0-44d2-a5fb-7796b37125d7</d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>
      <d2p1:_x003C_LastChangeUserId_x003E_k__BackingField>1458158d-14fd-44ec-8273-21f3f386d227</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-11-21T02:52:10.897901-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>bd29589b-ff36-4b41-b7da-63c3da3b1812</d2p1:_x003C_Id_x003E_k__BackingField>
      <d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>1b967d2c-89f0-44d2-a5fb-7796b37125d7</d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>
      <d2p1:_x003C_LastChangeUserId_x003E_k__BackingField>1458158d-14fd-44ec-8273-21f3f386d227</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>