POST api/sms/send-message

Request Information

URI Parameters

None.

Body Parameters

SendMessageRequest
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

AgencyId

globally unique identifier

None.

ToPhoneNumber

string

None.

TextMessage

string

None.

Attachments

Collection of AttachmentFile

None.

SubscriptionResponseWebhookUrl

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": "6f2ed8cb-ff95-46bb-b25c-2861e7084d76",
  "agencyId": "fd69da5f-f605-47e8-8865-f4aa56a82cba",
  "toPhoneNumber": "sample string 3",
  "textMessage": "sample string 4",
  "attachments": [
    {
      "fileBytes": "QEA=",
      "mime": "sample string 1",
      "fileName": "sample string 2"
    },
    {
      "fileBytes": "QEA=",
      "mime": "sample string 1",
      "fileName": "sample string 2"
    }
  ],
  "subscriptionResponseWebhookUrl": "sample string 5"
}

application/xml, text/xml

Sample:
<SendMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.OData.SMS">
  <_x003C_AgencyId_x003E_k__BackingField>fd69da5f-f605-47e8-8865-f4aa56a82cba</_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 5</_x003C_SubscriptionResponseWebhookUrl_x003E_k__BackingField>
  <_x003C_TextMessage_x003E_k__BackingField>sample string 4</_x003C_TextMessage_x003E_k__BackingField>
  <_x003C_ToPhoneNumber_x003E_k__BackingField>sample string 3</_x003C_ToPhoneNumber_x003E_k__BackingField>
  <_x003C_UserId_x003E_k__BackingField>6f2ed8cb-ff95-46bb-b25c-2861e7084d76</_x003C_UserId_x003E_k__BackingField>
</SendMessageRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NowCertsApiResultOfSendMessageResult
NameDescriptionTypeAdditional information
Status

ApiStatus

None.

Data

SendMessageResult

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 0,
  "data": {
    "id": "60d91cd1-cd3b-4b82-addd-8b36788c305d",
    "createDate": "2024-12-10T03:37:30.087138-06:00",
    "insuranceAgencyId": "4f213584-3f31-42ca-aaff-2ba5baed0c34",
    "lastChangeUserId": "90644317-26fa-48d2-b920-320881586818",
    "fromNumber": "sample string 5",
    "toNumber": "sample string 6",
    "subject": "sample string 7"
  },
  "message": "sample string 1"
}

application/xml, text/xml

Sample:
<NowCertsApiResultOfSendMessageResultuwwjCqqQ 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:_x003C_CreateDate_x003E_k__BackingField>2024-12-10T03:37:30.087138-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>60d91cd1-cd3b-4b82-addd-8b36788c305d</d2p1:_x003C_Id_x003E_k__BackingField>
    <d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>4f213584-3f31-42ca-aaff-2ba5baed0c34</d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>
    <d2p1:_x003C_LastChangeUserId_x003E_k__BackingField>90644317-26fa-48d2-b920-320881586818</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>
  </Data>
  <Message>sample string 1</Message>
  <Status>Error</Status>
</NowCertsApiResultOfSendMessageResultuwwjCqqQ>