Skip to main content

Create Token

Creates a new token with the specified parameters and 720 durationHours
Before Creating a Token

Check available inventory using the Get Stock endpoint to see available products and regions.

POST/isp/token/create

Authentication

Basic user:pass authentication

Request Body

username
Optional
Type:string
Description:

Only required if authType is "user". Username for proxy authentication

Validation:

4-12 alphanumeric characters

password
Optional
Type:string
Description:

Only required if authType is "user". Password for proxy authentication

Validation:

4-12 alphanumeric characters

quantity
Required
Type:integer
Description:

Number of tokens to create. For subnet products (products ending with "_24"), quantity must be exactly 254.

Validation:

1-254. Must be exactly 254 for subnet products (products ending with "_24")

proxyType
Required
Type:string
Description:

Proxy type

Validation:

Must be "http" or "socks"

product
Required
Type:string
Description:

Product identifier. Product codes should never include the region prefix (e.g., use "TICK" not "US-TICK"). The region is specified separately via the region parameter. Subnet products end with "_24" and require quantity to be exactly 254.

Validation:

Example: "TICK". The product must exist and have available stock in the specified region. Check available products using GET /isp/stock before creating tokens. Subnet products (ending with "_24") require quantity=254.

region
Required
Type:string
Description:

Region identifier. This is separate from the product code.

Validation:

Must be "US", "EU", "AS", or "AU"

authType
Required
Type:string
Description:

Authentication type

Validation:

Must be "user" or "ip"

authenticatedIps
Optional
Type:array[string]
Description:

Only required if authType is "ip". Array of IPv4 addresses for IP authentication. If not provided or if an empty array is provided, defaults to ["1.1.1.1"].

Validation:

Each string must be a valid IPv4 address. Maximum 4 IP addresses allowed. Duplicate IP addresses are not allowed. Empty arrays are accepted and will default to ["1.1.1.1"].

Default:["1.1.1.1"] (if authType is "ip" and authenticatedIps is not provided or is an empty array)

Code Example

const axios = require('axios');

const url = "https://api.unknownproxies.com/api/v1/isp/token/create";
const headers = {
"Authorization": "Basic dXNlcjpwYXNz",
"Content-Type": "application/json"
};
const data = {
"username": "your-username-here",
"password": "your-password-here",
"quantity": 1,
"proxyType": "http",
"product": "TICK",
"region": "US",
"authType": "user",
"authenticatedIps": ["1.1.1.1", "2.2.2.2"]
};

try {
const response = await axios.post(url, {
headers,
data
});
console.log(response.data);
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}

Response Example

{
  "token": "zu8sBXS4gkh7",
  "username": "kGyohRdaGo",
  "authType": "user",
  "password": "bkXBberMQ7",
  "proxyType": "http",
  "authenticatedIps": [],
  "proxies": [
    "123.123.123.123:12345",
    "123.123.111.111:8888"
  ],
  "durationHours": 720,
  "status": "processing",
  "createdAt": 1752251968,
  "updatedAt": 1752251968,
  "dataUsage": 0,
  "region": "US",
  "product": "TICK",
  "quantity": 2
}

After Creating a Token

Once your token is created, you can:

For complete details on all token fields, see the ISP Token Schema documentation.