Create a sub-user
This endpoint allows you to create a sub-user.
You must pass the following information:
name (minimum 4 characters)
email (must be unique, and formatted correctly)
Optional:
proxy_username
- Minimum 8 characters, maximum 15 charactersproxy_password
- Minimum 8 characters, maximum 15 characters
If you do not send the username or password, a random 10-character one will be created for you.
Authorizations
Body
namestring · min: 1Required
emailstring · emailRequired
proxy_usernamestring · min: 8 · max: 15Optional
proxy_passwordstring · min: 8 · max: 15Optional
Responses
200
Successful response
application/json
400
Bad request
application/json
500
Internal server error
application/json
post
POST /api/sub-users HTTP/1.1
Host: reseller.flashproxy.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"name": "text",
"email": "[email protected]",
"proxy_username": "text",
"proxy_password": "text"
}
{
"success": true,
"sub_user": {
"id": "text",
"name": "text",
"email": "text",
"proxy_username": "text",
"proxy_password": "text"
}
}
Last updated