> For the complete documentation index, see [llms.txt](https://docs.plainproxies.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plainproxies.com/subuser-api-documentation/proxy-management.md).

# Proxy Management

### Proxy Management

Manage the full lifecycle of proxy sub-users across all product types.

#### Sub-Users

Create, update, and destroy sub-user credentials. Each sub-user represents a discrete set of proxy credentials your end-users connect with.

* **Create**: Set bandwidth, IP count, expiry, country distribution, and concurrency limits
* **Update**: Change password, expiry, max connections, country list, or whitelisted IPs
* **Refresh IPs**: Request a new IP allocation (limited per plan)
* **Destroy**: Cancel and remove the sub-user (frees the slot but does not refund)

#### Proxy Generation

Generate proxy credential strings for any sub-user with optional geo-targeting and session control (rotating or sticky).

#### Proxy Settings

Submit settings change requests for residential proxies — port whitelisting, allowed domains, allowed URLs. Some changes require admin approval.

#### Countries

Browse available proxy locations grouped by product type (Datacenter, ISP, Residential, IPv6).

#### Common patterns

```bash
# Create a sub-user
curl -X POST "https://dashboard.plainproxies.com/api/v2/sub-users" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "product": "DATA_IPv4", "proxy_ips": 100, "bandwidth": 0, "renew_days": 30 }'

# Generate proxies for a sub-user
curl -X POST "https://dashboard.plainproxies.com/api/v2/proxies/generate" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -d '{ "sub_user_uuid": "...", "format": "{ip}:{port}:{user}:{pass}", "country": "US", "quantity": 10 }'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plainproxies.com/subuser-api-documentation/proxy-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
