Create IP list

This request explains how to create an IP list in the subuser's package.

POST https://proxy-seller.com/personal/api/v1/{YourApiKey}/residentsubuser/list/add

Example:

https://proxy-seller.com/personal/api/v1/fj4948ffhg58gh843gh/residentsubuser/list/add

Path parametrs:

Name
Value
Description

Authorization

<Your_API_Key>

Your personal API key

Request body:

Name
Type
Description

title

String

Name of the list you are creating

whitelist

String

IPs for authorization. Leave blank if you want to authorize with login credentials.

geo

object

Add GEO data to your list (country, region, city, ISP)

country

String

Country selected from the GEO database

region

String

Region selected from the GEO database

city

String

City selected from the GEO database

isp

String

ISP selected from the GEO database

export

object

Here you specify the number of IPs in your list and the export type (port numbers and file format)

ports

Number

Number of IPs (maximum 1000)

ext

String

Type of export

rotation

Number

"'-1' for no rotation (Sticky), '0' for rotation per request, '1' to '3600' for time-based rotation in seconds

package_key

String

Key of a subuser's package where you want to add list of IP's

Response:

{
  "status": "success",
  "data": {
    "id": 561,
    "title": "US Washington Garfield FIRST-STEP",
    "login": "3c8aa1d4",
    "password": "AZT62Dx3",
    "whitelist": "127.0.0.1,192.168.0.1",
    "rotation": "-1 = rotation, 0 = rotation per request, 1..60 time in seconds",
    "geo": {
      "country": "US",
      "region": "Washington",
      "city": "Garfield",
      "isp": "FIRST-STEP"
    },
    "export": {
      "ports": 10000,
      "ext": "txt"
    }
  },
  "errors": []
}

Responses with error in body request:

{
    "status": "error",
    "data": null,
    "errors": [
        {
            "message": "Incorrect IP address 0.0.0.0 entered",
            "code": 409,
            "customData": null
        },
        {
            "message": "Incorrect IP address 0.0.0.0 entered",
            "code": 0,
            "customData": null
        }
    ]
}

Last updated