Skip to content

Change residential sub-user traffic

POST
/proxies/residential/subusers/{childId}/traffic/{action}
curl --request POST \
--url https://api.ltesocks.io/v2/proxies/residential/subusers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/traffic/add \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: example' \
--data '{ "traffic_bytes": 10737418 }'

Requires an active linked top-level Master or Regular account and enabled residential sub-user management. Slave accounts cannot manage children. Send Authorization: Bearer . Token ability: proxy.residential.subusers.traffic (or *). action must be add, subtract or reset. For add/subtract, traffic_bytes is a required positive integer. Add is limited by the parent’s available traffic and a resulting total quota of 109951162777600 bytes (100 TiB). Subtract cannot exceed the child’s remaining traffic. Reset clears the remaining allocation and needs no amount; omit the body or send {}. An unsupported action returns 404. The response contains the refreshed child.

childId
required
string format: uuid

LTESocks UUID of a sub-user belonging to the authenticated parent.

action
required
string
Allowed values: add subtract reset

Traffic operation.

Idempotency-Key
required
string
>= 1 characters <= 255 characters

Key identifying this mutation. Use a new key for a new operation and reuse the same key and payload when retrying. A UUID is recommended; the API accepts any non-empty string up to 255 characters.

Media typeapplication/json

For add and subtract, traffic_bytes is required. For reset, omit the body or send an empty object; the amount is not used.

object
traffic_bytes

Required for add/subtract. The total allocated quota after add cannot exceed 109951162777600 bytes; subtract cannot exceed the remaining traffic.

integer format: int64
>= 1
Example
10737418

Change residential sub-user traffic succeeded.

Media typeapplication/json
object
success
required
boolean
code
required
integer
data
required
object
id

LTESocks child UUID used in management URLs.

string format: uuid
login
string
email
string
nullable
first_name
string
nullable
last_name
string
nullable
status
string
package_id
string format: uuid
traffic_bytes

Allocated quota in bytes.

integer format: int64
nullable
used_bytes

Consumed traffic in bytes.

integer format: int64
nullable
remaining_bytes

Remaining traffic in bytes.

integer format: int64
nullable
allowed_ips
Array<string>
blocked_domains
Array<string>
created_at

Creation timestamp.

string
nullable
Examples
Exampleresponse
{
"success": true,
"code": 200,
"data": {
"id": "11111111-1111-4111-8111-111111111111",
"login": "parent_customer01",
"email": "parent_customer01@example.test",
"first_name": null,
"last_name": null,
"status": "active",
"package_id": "22222222-2222-4222-8222-222222222222",
"traffic_bytes": 1073741824,
"used_bytes": 0,
"remaining_bytes": 1073741824,
"allowed_ips": [],
"blocked_domains": [],
"created_at": "2026-10-21T12:00:00Z"
}
}

Missing or invalid bearer token.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}

Inactive or unsupported account, insufficient token ability, or child ownership denied.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}

Sub-user or linked residential account not found, or residential sub-user management is disabled.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}

Conflicting operation or duplicate user.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}

Invalid input, insufficient available traffic, incompatible package, or quota limit exceeded.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}

Request rate limit exceeded.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}

Internal service error.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}

Residential service failed or its result could not be read.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}

Residential service temporarily unavailable.

Media typeapplication/json
object
success
required
boolean
code
required
integer
message
required
string
errors

Field validation errors, when available.

object
key
additional properties
Array<string>
Example
{
"success": false,
"code": 422,
"message": "Data amount must be greater than zero."
}