Skip to main content

Proxy Accesses (Sub-users)

A proxy access (sub-user) is a login/password pair used to authenticate against the proxy gateway. Each access can have its own traffic limit and can be paused or revoked independently. Create accesses to hand out scoped credentials, then build connection usernames from their real_login (see Username grammar).

Your subscription always has one primary access (is_primary: true) which cannot be modified or deleted.

List Accesses

Endpoint

GET /api/v2/rotating-proxies/sub-users/

Query Parameters

ParameterTypeRequiredDescription
searchstringNoFilter by login or comment
pageintegerNoPage number
page_sizeintegerNoResults per page

Request

curl -X 'GET' \
'https://app.cyberyozh.com/api/v2/rotating-proxies/sub-users/' \
-H 'accept: application/json' \
-H 'X-Api-Key: your_api_key_here'

Response

{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"id": "0f8c4b2e-2d2a-4a7e-9b6a-1f0c2d3e4f5a",
"login": "primary",
"real_login": "u12ab",
"password": "S3cretPass",
"status": "active",
"traffic_limit_mb": null,
"traffic_left_mb": null,
"comment": "",
"is_primary": true,
"provisioning_status": "active"
},
{
"id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d",
"login": "worker1",
"real_login": "u12ab_worker1",
"password": "Str0ngPass",
"status": "active",
"traffic_limit_mb": 10240,
"traffic_left_mb": 8730,
"comment": "scraper",
"is_primary": false,
"provisioning_status": "active"
}
]
}

Response Fields

FieldTypeDescription
idstringAccess UUID (use it in /sub-users/{id}/)
loginstringHuman-readable label you assigned
real_loginstringBase username for proxy authentication
passwordstringPassword for proxy authentication
statusstringactive or paused
traffic_limit_mbinteger|nullPer-access traffic cap in MB (null = no cap)
traffic_left_mbinteger|nullRemaining traffic for this access (null = no cap)
commentstringFree-form note
is_primarybooleanWhether this is the immutable primary access
provisioning_statusstringpending, active or failed

Create Access (Generate)

Creates a new proxy access and provisions it on the gateway.

Endpoint

POST /api/v2/rotating-proxies/sub-users/

Request Body

FieldTypeRequiredDescription
loginstringYesLabel and login seed, 3–50 chars, [a-zA-Z0-9]
passwordstringYesPassword, 3–50 chars, [a-zA-Z0-9]
traffic_limit_mbintegerNoPer-access traffic cap in MB (cannot exceed the plan total)
commentstringNoFree-form note (max 500 chars)

Request

curl -X 'POST' \
'https://app.cyberyozh.com/api/v2/rotating-proxies/sub-users/' \
-H 'accept: application/json' \
-H 'X-Api-Key: your_api_key_here' \
-H 'Content-Type: application/json' \
-d '{
"login": "worker1",
"password": "Str0ngPass",
"traffic_limit_mb": 10240,
"comment": "scraper"
}'

Response (201)

{
"id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d",
"login": "worker1",
"real_login": "u12ab_worker1",
"password": "Str0ngPass",
"status": "active",
"traffic_limit_mb": 10240,
"traffic_left_mb": 10240,
"comment": "scraper",
"is_primary": false,
"provisioning_status": "active"
}

Get Access

Returns a single access, including the real_login and password needed to connect.

Endpoint

GET /api/v2/rotating-proxies/sub-users/{id}/

Request

curl -X 'GET' \
'https://app.cyberyozh.com/api/v2/rotating-proxies/sub-users/9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d/' \
-H 'accept: application/json' \
-H 'X-Api-Key: your_api_key_here'

Response

{
"id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d",
"login": "worker1",
"real_login": "u12ab_worker1",
"password": "Str0ngPass",
"status": "active",
"traffic_limit_mb": 10240,
"traffic_left_mb": 8730,
"comment": "scraper",
"is_primary": false,
"provisioning_status": "active"
}

Update Access

Change the traffic limit, status, password, login label or comment of a non-primary access.

Endpoint

PATCH /api/v2/rotating-proxies/sub-users/{id}/

Request Body

FieldTypeRequiredDescription
loginstringNoNew label/login seed, 3–50 chars, [a-zA-Z0-9]
passwordstringNoNew password, 3–50 chars, [a-zA-Z0-9]
traffic_limit_mbintegerNoNew traffic cap in MB
commentstringNoNew note
statusstringNoactive or paused

Request

curl -X 'PATCH' \
'https://app.cyberyozh.com/api/v2/rotating-proxies/sub-users/9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d/' \
-H 'accept: application/json' \
-H 'X-Api-Key: your_api_key_here' \
-H 'Content-Type: application/json' \
-d '{ "status": "paused" }'

Response

{
"id": "9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d",
"login": "worker1",
"real_login": "u12ab_worker1",
"password": "Str0ngPass",
"status": "paused",
"traffic_limit_mb": 10240,
"traffic_left_mb": 8730,
"comment": "scraper",
"is_primary": false,
"provisioning_status": "active"
}

Revoke Access (Delete)

Permanently deletes a non-primary access and removes it from the gateway.

Endpoint

DELETE /api/v2/rotating-proxies/sub-users/{id}/

Request

curl -X 'DELETE' \
'https://app.cyberyozh.com/api/v2/rotating-proxies/sub-users/9a7b6c5d-4e3f-2a1b-0c9d-8e7f6a5b4c3d/' \
-H 'X-Api-Key: your_api_key_here'

Response

204 No Content — empty body.

Error Responses

Validation Error (400)

{
"login": [
"This value does not match the required pattern."
]
}

Traffic Limit Too High (400)

{
"detail": "traffic_limit_mb cannot exceed plan total (51200 MB)."
}

Login Already Exists (409)

{
"detail": "Login already exists."
}

Primary Access Is Immutable (400)

{
"detail": "Primary user cannot be deleted."
}

No Active Subscription (404)

{
"detail": "No active rotating proxy subscription."
}

Notes

  • real_login differs from the login label: it is the actual gateway username to which you append targeting suffixes.
  • A paused access (status: paused) cannot authenticate until reactivated.
  • Setting a traffic_limit_mb caps how much bandwidth that access may consume out of your overall plan balance.