POST api/sms/send-message
Request Information
URI Parameters
None.
Body Parameters
SendMessageRequestName | Description | Type | Additional 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": "c0911eda-61f3-4ea1-80ed-3910918268be", "agencyId": "730d8c06-488a-44c3-b3b6-63a9aac9dabd", "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>730d8c06-488a-44c3-b3b6-63a9aac9dabd</_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>c0911eda-61f3-4ea1-80ed-3910918268be</_x003C_UserId_x003E_k__BackingField> </SendMessageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NowCertsApiResultOfSendMessageResultName | Description | Type | Additional information |
---|---|---|---|
Status | ApiStatus |
None. |
|
Data | SendMessageResult |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "status": 0, "data": { "id": "0f4252aa-4ea2-4db2-a8e3-c7e2ab65672f", "createDate": "2025-08-30T23:16:51.3929791-05:00", "insuranceAgencyId": "fc3115ee-5350-4a1c-890b-be432d13bb95", "lastChangeUserId": "7cf0ff72-34c3-46cd-a140-d394b98b27ca", "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>2025-08-30T23:16:51.3929791-05: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>0f4252aa-4ea2-4db2-a8e3-c7e2ab65672f</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>fc3115ee-5350-4a1c-890b-be432d13bb95</d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField> <d2p1:_x003C_LastChangeUserId_x003E_k__BackingField>7cf0ff72-34c3-46cd-a140-d394b98b27ca</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>