跳转到主要内容
POST
创建子用户

授权

Authorization
string
header
必填

在控制台(Settings → API Keys)中获取的API密钥,按原样发送,不加 Bearer 前缀。

请求体

application/json
username
string
必填

长度为6–64个字符;仅允许使用字母、数字和下划线。必须唯一。

Required string length: 6 - 64
Pattern: ^[A-Za-z0-9_]+$
示例:

"my_sub_user"

password
string
必填

长度为12–64个字符,至少包含一个大写字母、一个小写字母、一个数字,以及 _ ~ + = 中的一个符号。不允许使用 @、: 和 $。

Required string length: 12 - 64
示例:

"Secret_Pass123"

service_type
enum<string>
必填
可用选项:
residential_proxies
traffic_limit
number | null

流量限额,单位为GB。0 或 null 表示不限。

必填范围: 0 <= x <= 1000000
示例:

10

auto_disable
boolean
默认值:false

达到 traffic_limit 时禁用子用户。

traffic_count_from
string

从该时间开始统计流量,例如 2026-11-01 00:00:00 或RFC 3339日期时间。

示例:

"2026-11-01 00:00:00"

响应

操作成功。响应体为空JSON对象。

The response is of type object.