Skip to main content
POST
/
v2
/
sub-users
Create sub user
curl --request POST \
  --url https://api.decodo.com/v2/sub-users \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>",
  "service_type": "residential_proxies",
  "traffic_limit": 123,
  "auto_disable": false,
  "traffic_count_from": "2023-12-25"
}
'
"{}"

Authorizations

Authorization
string
header
required

Body

application/json
username
string<json>
required

From 6 to 64 characters long. Only letters, numbers and underscores allowed.

password
string<json>
required

Must include: 12 or more characters; at least one upper case letter; one lower case letter; one number; one of these symbols _ ~ + = (@ and : are not allowed).

service_type
enum<string>
default:residential_proxies
required
Available options:
residential_proxies
traffic_limit
number<float>
auto_disable
boolean
default:false

Disables subuser when the traffic limit is hit

traffic_count_from
string<date>

Handles subuser subscription traffic starting from the specified date. Use date format yyyy-mm-dd hh:mm:ss.

Response

201

The response is of type object.