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.


GET/v2/reseller/sub_users/ip_authentication?username={username}

List Whitelisted IPs

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

GET
/v2/reseller/sub_users/ip_authentication?username={}
  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"
          ]
      }
  }
}

POST/v2/reseller/sub_users/ip_authentication

Whitelist an IP

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

POST
/v2/reseller/sub_users/ip_authentication
  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": ""
}

DELETE/v2/reseller/sub_users/ip_authentication

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

DELETE
/v2/reseller/sub_users/ip_authentication
  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": ""
}