Get Inbound Command
The Get Inbound Command API enables you to get details of an inbound command such as the BAL command which is already set up in the engagement server. An inbound command is mapped to an inbound number.
URL
The HTTP URL for Get Inbound Command API is:
http://<<host>>:<<port>>/api/v1/twowaysms/<number-id>/command/<command-id>
NOTE: number ID refers to an ID that is used to map inbound number with internal data record.
NOTE: Use Get All Commands API to get the <command-id>
This service implements ‘Gateway Filter for Authentication’ to authenticate access of the service by a user.
Method
GET
Output Parameters
The following fields are output parameters:
Sample Response
{ "id" : 24, "replyForInvalidReq" : "Try again", "commandName" : "Customer care", "command" : "100", "inboundParams" : "", "description" : "customer care", "replyMessageFormat" : "", "smsClientAPIConfig" : { "apiUrl" : "google.com", "requestPayload" : "", "headers" : [ ], "params" : [ ], "requestMethod" : "POST", "authenticationType" : "BASIC", "responseContentType" : "application/json", "appKey" : "", "appSecret" : "", "username" : "admin", "password" : "admin", "mbaasAuthUrl" : "" }, "replyParamsConfig" : { "paramConfigs" : [ ] }, "createdBy" : "admin", "createdDateStr" : "08/25/2016 02:22:12 PM IST", "lastModifiedBy" : "admin", "lastModifiedDateStr" : "08/25/2016 02:22:12 PM IST", "replyForFailedCases" : "" }
Response Status
Code | Description |
---|---|
Status 200 | Inbound Command JSON |
Status 400 | Invalid Inbound Command ID provided or no valid Inbound Command found with given ID |
Status 401 | Unauthorized request. |
Status 500 | Server failure to process request |