Get available Did Number
Info! This is Beta version, if you have any problem in using API, please mail us at support@sarv.com
https://manage.sarv.com/api/telephony/getTelephonyNumber
Get all available Telephonic Number
{
"user_id":"example id",
"token":"example token"
}
{
"msg": "success",
"data": {
"did_number":"9876543210",
"country":"IN",
"area":"ALL",
"did_type":"MOBILE",
"vanity_type":"REGULAR",
"vanity_cost":"0"
},
}
{
"msg": "error",
"msg_text": "readable message"
}
| Parameters |
| owner_id* string |
a valid Sarv User Id |
| token* string |
a valid token |
* compulsory field
| Return Value: Success |
| struct |
the results of getting all DID Number
| msg string |
always success |
| data array |
[{
"did_number":"9876543210",
"country":"IN",
"area":"ALL",
"did_type":"MOBILE",
"vanity_type":"REGULAR",
"vanity_cost":"0"
}, ...] |
|
|
| Means of Return Value 'country' key |
| IN |
India. |
| Means of Return Value 'area' key |
| ALL |
ALL |
| Means of Return Value 'did_type' key |
| MOBILE |
Mobile Number like 9876543210 |
| TOLLFREE |
Tollfree like 18002000000 |
| Means of Return Value 'vanity_type' key |
| REGULAR |
| VIP |
| SILVER |
| GOLD |
| PLATINUM |
| DIAMOND |
| Means of Return Value 'vanity_cost' key |
| 1000 |
Cost of Number |
| Return Value: Error |
| struct |
the error results when attempt to getting DID Number Data
| msg string |
error |
| msg_text string |
human readable message |
|
|