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": "005d1a58-9fbd-49d8-9e8b-4f654883f3d2", "agencyId": "2a73b666-aaa2-49d0-b7a3-fb6c8479c3ed", "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>2a73b666-aaa2-49d0-b7a3-fb6c8479c3ed</_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>005d1a58-9fbd-49d8-9e8b-4f654883f3d2</_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": "d489182f-1768-45ec-88e4-cb94dc9bae7f", "createDate": "2024-11-21T03:07:46.2355232-06:00", "insuranceAgencyId": "9cbb6065-bb6f-4473-bbee-6e15fc848f75", "lastChangeUserId": "cfadb95d-8f83-4a13-8532-f70fd74cada0", "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-11-21T03:07:46.2355232-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>d489182f-1768-45ec-88e4-cb94dc9bae7f</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField>9cbb6065-bb6f-4473-bbee-6e15fc848f75</d2p1:_x003C_InsuranceAgencyId_x003E_k__BackingField> <d2p1:_x003C_LastChangeUserId_x003E_k__BackingField>cfadb95d-8f83-4a13-8532-f70fd74cada0</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>