POST api/sms/subscribe-for-inbound-message
Request Information
URI Parameters
None.
Body Parameters
SubscribeForInboundMessageRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserPhoneNumber | string |
None. |
|
| PhoneNumberFrom | string |
None. |
|
| WebhookUrl | string |
None. |
|
| UserId | globally unique identifier |
None. |
|
| AgencyId | globally unique identifier |
None. |
|
| IsAutoUnsubscribe | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"userPhoneNumber": "sample string 1",
"phoneNumberFrom": "sample string 2",
"webhookUrl": "sample string 3",
"userId": "88bd897e-69d6-495b-8606-a7e1065b6d87",
"agencyId": "63bc65c1-56ca-41fe-a079-2af6c375432e",
"isAutoUnsubscribe": true
}
application/xml, text/xml
Sample:
<SubscribeForInboundMessageRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.OData.SMS"> <AgencyId>63bc65c1-56ca-41fe-a079-2af6c375432e</AgencyId> <IsAutoUnsubscribe>true</IsAutoUnsubscribe> <PhoneNumberFrom>sample string 2</PhoneNumberFrom> <UserId>88bd897e-69d6-495b-8606-a7e1065b6d87</UserId> <UserPhoneNumber>sample string 1</UserPhoneNumber> <WebhookUrl>sample string 3</WebhookUrl> </SubscribeForInboundMessageRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NowCertsApiResultWithDatabaseId| Name | Description | Type | Additional information |
|---|---|---|---|
| DatabaseId | globally unique identifier |
None. |
|
| Status | ApiStatus |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"databaseId": "559e2e58-27ea-4f7d-9b7d-26542f347762",
"status": 0,
"message": "sample string 2"
}
application/xml, text/xml
Sample:
<NowCertsApiResultWithDatabaseId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum"> <Message>sample string 2</Message> <Status>Error</Status> <DatabaseId>559e2e58-27ea-4f7d-9b7d-26542f347762</DatabaseId> </NowCertsApiResultWithDatabaseId>