All of the API routes require headers with the token key.
The token key should be included in the Authorization HTTP header.
The key should be prefixed by the string literal "Token", with whitespace separating the two strings.
For example:
Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b
GET /api/getinfo
Example: http://localhost/api/getinfo
Response: JSON Object with all modems information.
GET /api/reboot_modem?index=MODEM_INDEX
*Reboots modem with index=1*
Example: http://localhost/api/reboot_modem?index=1
Response: Status message
GET /api/rotate
Example: http://localhost/api/rotate
Response: Status message
(Authorization token should be included in the header)
GET /api/change_ip?index=MODEM_INDEX
*Rotates modem with index = 1*
Example: http://localhost/api/change_ip?index=1
Response: Status message
(This option should be enabled from the Proxidize web interface by setting a custom token)
GET /api/change_ip?index=MODEM_INDEX&rtoken= ROTATION_API_TOKEN
*Rotates modem with index = 1 authenticated by the custom set rotation token*
Example: http://localhost/api/change_ip?index=1&rtoken=johndoe123
Response: Status message
GET /api/sms/get?index=MODEM_INDEX
*Returns all the received SMS messages for modem with index 1*
Example: http://localhost/api/sms/get?index=1
Response: JSON Object containing SMS messages with their details (date, sender's phone, message and content)
GET /api/sms/send?index=MODEM_INDEX&phone=PHONE&message=MESSAGE
Example: http://localhost/api/sms/send?index=1&phone=+123456789&message=Hello_World
Response: Status message
GET api/delete_sms?sms_id=SMS_ID&modem_index=Modem_index
Example: api/delete_sms?sms_id=22&modem_index=5
Response: Delete SMS requested for message id XXX on modem index XXX
ERROR: There was an error deleting SMS message(s).
Note: You can get the SMS IDs from the "Message ID" colomn in your SMS page
GET api/delete_sms?sms_id=SMS_ID1,SMS_ID2,SMS_ID3&modem_index=Modem_index
Example: api/delete_sms?sms_id=22,23,25,99&modem_index=5
Response: Sucessfully deleted all SMS messages.
ERROR: There was an error deleting sms message(s).
GET /api/custom_rot?index=DONGLE_INDEX&day=VALUE&hour=VALUE&min=VALUE
Example:
Set the rotation value for dongle with index 5 to rotate every 2 days
http://localhost/api/custom_rot?index=5&day=2
Example 2:
Set the rotation value for all dongles to rotate every 8 hours:
http://localhost/api/custom_rot?index=all&hour=8
Response: Status message
GET /api/shared_proxy/
Example: http://localhost/api/shared_proxy
Response: JSON Object containing shared proxy
GET /api/shared_proxy/add?
Parameters:
Example:
http://localhost/api/shared_proxy/add index=3&auth_type=UserAuth&proxy_type=http&user=Proxidize&password=123Pass
http://localhost/api/shared_proxy/add?index=1&auth_type=IPAuth&proxy_type=socks&ip=192.168.1.100
http://localhost/api/shared_proxy/add?index=1&auth_type=IPAuth&proxy_type=http&ip=192.168.1.100,192.168.5.20&comment=Hello_World
Response: JSON Object containing shared proxy
GET /api/shared_proxy/delete
Example: http://localhost/api/shared_proxy/delete
Response: Status message
GET /api/shared_proxy/delete?port=PORT
Example: http://localhost/api/shared_proxy/delete?port=35501
Response: Status message
GET /api/sproxy/rotate
Parameters:
Example: http://localhost/api/sproxy/rotate?proxy_port=21035&proxy_pass=very_secure_password142
Response: Status message
There was an error handling your request.
Reasons:
All Proxidize hardware is assembled and shipped with ❤️ from the UK 🇬🇧
All Proxidize hardware is assembled and shipped with ❤️ from the UK