IP Authentication
IP Authentication can be used for our DCP and DC6 Prodcuts and is useful for customers who want to use our proxies without having to authenticate with a username and password.
List Whitelisted IPs
We currently only provide IP authentication for IPv6 and Unlimited Datacenter product lines. To express interest in IP authentication for other product lines, please contact us.
This endpoint gives you the ability to retrieve the whitelisted IPs of a subuser.
Required URL parameters
- Name
username
- Type
- string
- Description
The username of the subuser.
Returned Properties
- Name
data
- Type
- object
- Description
The whitelisted IP addresses of the subuser seperated by products.
- Name
message
- Type
- string
- Description
The message of the response.
- Name
status
- Type
- number
- Description
The status code of the response.
- Name
timestamp
- Type
- number
- Description
The timestamp in milliseconds of the response.
Request
curl --location --request GET 'https://api.infiniteproxies.com/v2/reseller/sub_users/ip_authentication?username=infproxy_customer' \
--header 'X-API-KEY: [API KEY]'
Response
{
"status": 200,
"message": "",
"timestamp": 1710864898720,
"data": {
"products": {
"dc6": [],
"dcp": [
"2.2.2.2",
"1.1.1.1"
]
}
}
}
Whitelist an IP
Please note, that you are limited to 3 IP addresses per subuser for each product line. You can also not add any private IP addresses to the whitelist such as 0.0.0.0 or 127.0.0.1.
This endpoint allows you to retrieve a list of all your subusers.
Required json parameters
- Name
username
- Type
- string
- Description
The username of the customer you want to retrieve.
- Name
ip
- Type
- string
- Description
The IP address you want to whitelist.
- Name
product
- Type
- string
- Description
The product line you want to whitelist the IP for. (dc6 or dcp)
Returned Properties
- Name
data
- Type
- object
- Description
The list of your subusers.
- Name
message
- Type
- string
- Description
The message of the response.
- Name
status
- Type
- number
- Description
The status code of the response.
- Name
timestamp
- Type
- number
- Description
The timestamp in milliseconds of the response.
Request
curl --location --request POST 'https://api.infiniteproxies.com/v2/reseller/sub_users/ip_authentication' \
--header 'X-API-KEY: [API KEY]' \
--header 'Content-Type: application/json' \
--data-raw '{
"username": "infproxy_customer",
"ip": "1.1.1.1",
"product": "dcp"
}'
Response
{
"timestamp": 1711047255698,
"data": {
"products": {
"dc6": [],
"dcp": ["1.1.1.1"]
}
},
"status": 200,
"message": ""
}
Remove a whitelisted IP
This endpoint allows you to retrieve a single subuser by providing the subuser's username. Refer to the list at the top of this page to see which properties are included with customer objects.
Required json parameters
- Name
username
- Type
- string
- Description
The username of the customer you want to retrieve.
- Name
ip
- Type
- string
- Description
The IP address you want to remove from the whitelist.
- Name
product
- Type
- string
- Description
The product line you want to remove the IP from. (dc6 or dcp)
Returned Properties
- Name
data
- Type
- object
- Description
The account data of the subuser.
- Name
message
- Type
- string
- Description
The message of the response.
- Name
status
- Type
- number
- Description
The status code of the response.
- Name
timestamp
- Type
- number
- Description
The timestamp in milliseconds of the response.
Request
curl --location --request DELETE 'https://api.infiniteproxies.com/v2/reseller/sub_users/ip_authentication' \
--header 'X-API-KEY': '[API KEY]' \
--header 'Content-Type: application/json' \
--data '{
"username": "infproxy_customer",
"ip": "2.2.2.2",
"product": "dcp"
}'
Response
{
"timestamp": 1711047255698,
"data": {
"products": {
"dc6": [],
"dcp": ["1.1.1.1"]
}
},
"status": 200,
"message": ""
}