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": "01e5849a-5540-4312-af21-00e75952a71d",
"agencyId": "c678c80b-e432-4f27-aa89-b346700fa24e",
"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>c678c80b-e432-4f27-aa89-b346700fa24e</AgencyId> <IsAutoUnsubscribe>true</IsAutoUnsubscribe> <PhoneNumberFrom>sample string 2</PhoneNumberFrom> <UserId>01e5849a-5540-4312-af21-00e75952a71d</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": "b6513797-c4d7-4d6b-9d4b-ce948688ef2a",
"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>b6513797-c4d7-4d6b-9d4b-ce948688ef2a</DatabaseId> </NowCertsApiResultWithDatabaseId>