For developers
Rent API
API is the protocol for communication between your software and our number rental server.
API Protocol Description
All requests must go to https://api.sms-man.com/rent-api/ GET request. All requests must include the API key as a parameter token All answers are in json format.
Balance request
https://api.sms-man.com/rent-api/get-balance?token=$token
Parameters
Parameter | Type | Required | Value |
---|---|---|---|
token | String | Yes | Your API key |
Result
Possible errors
Get list of all countries
https://api.sms-man.com/rent-api/limits?token=$token&country_id=$country_id&type=$type&time=$time
Parameters
Parameter | Type | Required | Value |
---|---|---|---|
token | String | Yes | Your API key |
country_id | Integer | Yes | Number country |
type | String | Yes | hour / day / week / month |
time | String | Yes | Rental Time |
Result
Possible errors
Ordering a number to rent
https://api.sms-man.com/rent-api/get-number?token=$token&country_id=$country_id&type=$type&time=$time
Parameters
Parameter | Type | Required | Value |
---|---|---|---|
token | String | Yes | Your API key |
country_id | Integer | No | Number country |
type | String | Yes | hour / day / week / month |
time | String | Yes | Rental Time |
Result
Possible errors
Change status
https://api.sms-man.com/rent-api/set-status?token=$token&request_id=$request_id&status=$status
Parameters
Parameter | Type | Required | Value |
---|---|---|---|
token | String | Yes | Your API key |
request_id | Integer | Yes | Request ID |
status | String | Yes | cancel - cancel of the rent (in the first 20 minutes if number has received no SMS) / close - terminate the rent |
Result
Possible errors
Receive the last text message
https://api.sms-man.com/rent-api/get-sms?token=$token&request_id=$request_id
Parameters
Parameter | Type | Required | Value |
---|---|---|---|
token | String | Yes | Your API key |
request_id | Integer | Yes | Request ID |
Result
Possible errors
Receive all sms
https://api.sms-man.com/rent-api/get-all-sms?token=$token&request_id=$request_id
Parameters
Parameter | Type | Required | Value |
---|---|---|---|
token | String | Yes | Your API key |
request_id | Integer | Yes | Request ID |
Result
Possible errors
Get a list of all numbers
https://api.sms-man.com/rent-api/get-all-requests?token=$token
Parameters
Parameter | Type | Required | Value |
---|---|---|---|
token | String | Yes | Your API KEY |