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": "8bc9ea22-82d8-40a5-a05c-446f044b6038",
  "agencyId": "5f78cfba-a563-472d-ab2e-7ab97ee47e9c",
  "toPhoneNumberArray": [
    "sample string 1",
    "sample string 2"
  ],
  "textMessage": "sample string 3",
  "attachments": [
    {
      "fileBytes": "QEA=",
      "mime": "sample string 1"
    },
    {
      "fileBytes": "QEA=",
      "mime": "sample string 1"
    }
  ],
  "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">
  <AgencyId>5f78cfba-a563-472d-ab2e-7ab97ee47e9c</AgencyId>
  <Attachments>
    <AttachmentFile>
      <FileBytes>QEA=</FileBytes>
      <MIME>sample string 1</MIME>
    </AttachmentFile>
    <AttachmentFile>
      <FileBytes>QEA=</FileBytes>
      <MIME>sample string 1</MIME>
    </AttachmentFile>
  </Attachments>
  <SubscriptionResponseWebhookUrl>sample string 4</SubscriptionResponseWebhookUrl>
  <TextMessage>sample string 3</TextMessage>
  <ToPhoneNumberArray xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ToPhoneNumberArray>
  <UserId>8bc9ea22-82d8-40a5-a05c-446f044b6038</UserId>
</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": "8a40fc24-a6c6-4fb0-bcc5-6ef9e5e2b778",
      "createDate": "2024-04-19T05:50:57.3790497-05:00",
      "insuranceAgencyId": "7b39f104-a4b2-466f-be37-a34929097f29",
      "lastChangeUserId": "4f0da002-b7c9-4424-8582-dfc873d17327",
      "fromNumber": "sample string 5",
      "toNumber": "sample string 6",
      "subject": "sample string 7"
    },
    {
      "id": "8a40fc24-a6c6-4fb0-bcc5-6ef9e5e2b778",
      "createDate": "2024-04-19T05:50:57.3790497-05:00",
      "insuranceAgencyId": "7b39f104-a4b2-466f-be37-a34929097f29",
      "lastChangeUserId": "4f0da002-b7c9-4424-8582-dfc873d17327",
      "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:CreateDate>2024-04-19T05:50:57.3790497-05:00</d2p1:CreateDate>
      <d2p1:FromNumber>sample string 5</d2p1:FromNumber>
      <d2p1:Id>8a40fc24-a6c6-4fb0-bcc5-6ef9e5e2b778</d2p1:Id>
      <d2p1:InsuranceAgencyId>7b39f104-a4b2-466f-be37-a34929097f29</d2p1:InsuranceAgencyId>
      <d2p1:LastChangeUserId>4f0da002-b7c9-4424-8582-dfc873d17327</d2p1:LastChangeUserId>
      <d2p1:Subject>sample string 7</d2p1:Subject>
      <d2p1:ToNumber>sample string 6</d2p1:ToNumber>
    </d2p1:SendMessageResult>
    <d2p1:SendMessageResult>
      <d2p1:CreateDate>2024-04-19T05:50:57.3790497-05:00</d2p1:CreateDate>
      <d2p1:FromNumber>sample string 5</d2p1:FromNumber>
      <d2p1:Id>8a40fc24-a6c6-4fb0-bcc5-6ef9e5e2b778</d2p1:Id>
      <d2p1:InsuranceAgencyId>7b39f104-a4b2-466f-be37-a34929097f29</d2p1:InsuranceAgencyId>
      <d2p1:LastChangeUserId>4f0da002-b7c9-4424-8582-dfc873d17327</d2p1:LastChangeUserId>
      <d2p1:Subject>sample string 7</d2p1:Subject>
      <d2p1:ToNumber>sample string 6</d2p1:ToNumber>
    </d2p1:SendMessageResult>
  </Data>
  <Message>sample string 1</Message>
  <Status>Error</Status>
</NowCertsApiResultWithClassListOfSendMessageResultuwwjCqqQ>