POST
/
reseller
/
v1
/
sub-user
curl --request POST \
  --url https://swiftproxy.io/api/reseller/v1/sub-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "<string>",
  "username": "<string>",
  "trafficLimitGB": 123,
  "proxyType": "PREMIUM_RESIDENTIAL"
}'
{
  "success": true,
  "user": {
    "id": "<string>",
    "email": "<string>",
    "username": "<string>",
    "password": "<string>",
    "proxyType": "PREMIUM_RESIDENTIAL",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
email
string
required
username
string
required

Username must be between 10 and 20 characters

Required string length: 10 - 20
proxyType
enum<string>
required
Available options:
PREMIUM_RESIDENTIAL,
RESIDENTIAL,
DATACENTER
trafficLimitGB
number

Traffic limit in GB

Response

200
application/json
Sub-user created successfully
success
boolean
Example:

true

user
object