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": "068b6e6c-027e-4a92-98ab-18ed85cc0dca", "agencyId": "79dbdc65-0f81-4e95-8773-9356fce8d1a0", "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>79dbdc65-0f81-4e95-8773-9356fce8d1a0</AgencyId> <IsAutoUnsubscribe>true</IsAutoUnsubscribe> <PhoneNumberFrom>sample string 2</PhoneNumberFrom> <UserId>068b6e6c-027e-4a92-98ab-18ed85cc0dca</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": "f57a7bf9-26e6-4e03-9e94-7af121b6cf4e", "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>f57a7bf9-26e6-4e03-9e94-7af121b6cf4e</DatabaseId> </NowCertsApiResultWithDatabaseId>