SI Lookup
To look information about any number, one must put country code along with number. API for performing a lookup for specific numbers is in the following format:
curl -X POST \
'<BASE_URL>&method=lookup&to=9192xxxxxxxx'
API Parameter Specifications
The API parameter specifications are described in the following sections.
Mandatory Parameters
The mandatory parameters in the HTTP API are tabulated below:
Parameter | Description | Expected Values |
---|---|---|
BASE_URL | URL of your SMS Service | URL |
method | Predefined method | lookup |
to | Mobile number along with country prefix to which the SMS is to be sent. Also one provide multiple numbers in comma separated format. | Mobile number(GET- 10numbers,POST- 100numbers) |
Example Responses
JSON
{
"status": "OK",
"data": [
{
"id": "336-1",
"customid": "",
"customid1": "",
"customid2": "",
"mobile": "97XXXXXXXX",
"status": "AWAITED-DLR"
}],
"message": "Campaign of 1 numbers Submitted successfully."
}
Error Response
{
"status":"A400",
"message":"Api Not Implemented"
}
Response Data:
Field | Description |
---|---|
status | It indicates the success or failure of your request. |
message | It indicates the success or failure message. |
data | All the responses are wrapped inside data |
Mobile | Mobile number |
id | External message ID |