POST api/sms/subscribe-for-inbound-message
Request Information
URI Parameters
None.
Body Parameters
SubscribeForInboundMessageRequestName | 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": "d4322f32-381c-4d30-bed9-3dd41cceecef", "agencyId": "c1553fc3-463c-42aa-bc8d-478c25801840", "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>c1553fc3-463c-42aa-bc8d-478c25801840</AgencyId> <IsAutoUnsubscribe>true</IsAutoUnsubscribe> <PhoneNumberFrom>sample string 2</PhoneNumberFrom> <UserId>d4322f32-381c-4d30-bed9-3dd41cceecef</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
NowCertsApiResultWithDatabaseIdName | Description | Type | Additional information |
---|---|---|---|
DatabaseId | globally unique identifier |
None. |
|
Status | ApiStatus |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "databaseId": "d6cd2ad5-89b9-4a26-b548-a9f4fd8b7516", "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>d6cd2ad5-89b9-4a26-b548-a9f4fd8b7516</DatabaseId> </NowCertsApiResultWithDatabaseId>