Add Channel
POST
/api/v1/api/channel
Api
Request
Authorization
Add parameter in query
token
Example:
token: ********************
Body Params application/json
name
string
required
password
string
required
zoneName
string
required
limit
integer
required
type
string
required
country
string
required
state
string
required
city
string
required
whitelist
array[string]
required
senses
array[string]
required
Example
{
"name": "Residential-411-SqV7",
"password": "123456",
"zoneName": "residential-zone-prod-3",
"limit": 10000000000,
"type": "residential",
"country": "US",
"state": "AL",
"city": "alabaster",
"whitelist": [],
"senses": []
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.nstproxy.com/api/v1/api/channel?token' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Residential-411-SqV7",
"password": "123456",
"zoneName": "residential-zone-prod-3",
"limit": 10000000000,
"type": "residential",
"country": "US",
"state": "AL",
"city": "alabaster",
"whitelist": [
],
"senses": [
]
}'
Responses
🟢201Created
application/json
Body
data
object
required
channelId
string
required
userId
string
required
token
string
required
zoneName
string
required
name
string
required
password
string
required
whitelist
array[string]
required
senses
array[string]
required
type
string
required
regionType
string
required
country
string
required
state
string
required
city
string
required
speedPercent
integer
required
status
integer
required
used
integer
required
limit
integer
required
priceGB
integer
required
consumeAmount
integer
required
editableRegion
boolean
required
_id
string
required
createdAt
string
required
updatedAt
string
required
__v
integer
required
remain
integer
required
id
string
required
err
boolean
required
msg
string
required
code
integer
required
Example
{
"data": {
"channelId": "",
"userId": "",
"token": "",
"zoneName": "residential-zone-prod-3",
"name": "Residential-411-SqV7",
"password": "123456",
"whitelist": [],
"senses": [],
"type": "residential",
"regionType": "city",
"country": "US",
"state": "AL",
"city": "alabaster",
"speedPercent": 100,
"status": 1,
"used": 0,
"limit": 10000000000,
"priceGB": 5,
"consumeAmount": 0,
"editableRegion": true,
"_id": "",
"createdAt": "",
"updatedAt": "",
"__v": 0,
"remain": 0,
"id": ""
},
"err": false,
"msg": "SUCCESS",
"code": 200
}
Modified at 2024-04-12 03:22:58