浏览端点
ProxyWing 开发者 API
账户
资料、钱包余额、账单、服务、自动续费和 API 密钥管理。
GET /account/mecurl -X GET "https://api.proxywing.com/v1/account/me" \
-H "Authorization: Bearer pk_live_XXXXXXXX"{
"email": "customer@example.com",
"name": "Jane Doe",
"country": "US",
"currency": "USD",
"status": "active"
}列出账单
返回账户中的账单,最新的排在最前。每次调用最多返回 limit 张账单(默认 1000);total 为账单总数,因此如果账户中的账单更多,请使用 offset 分页。
查询参数
limitinteger 可选要返回的最大账单数,1–1000。默认 1000。
offsetinteger 可选要跳过的账单数,用于分页。默认 0。
statusstring 可选仅返回此状态的账单:"paid"、"unpaid"、"overdue"、"cancelled"、"refunded"、"collections" 或 "payment_pending"。设置后,`total` 为匹配账单的数量。
GET /account/invoicescurl -X GET "https://api.proxywing.com/v1/account/invoices" \
-H "Authorization: Bearer pk_live_XXXXXXXX"{
"invoices": [
{
"id": "inv_200001",
"status": "paid",
"date": "2026-06-02",
"due_date": "2026-06-02",
"total": 1.8,
"currency": "USD"
}
],
"total": 1
}列出服务
返回账户中的所有服务(代理订单、VPN 套餐等)。family 为其所属的产品组名称。
查询参数
statusstring 可选仅返回此状态的服务,例如 "active"、"suspended"、"terminated" 或 "cancelled"。省略则列出全部。
GET /account/servicescurl -X GET "https://api.proxywing.com/v1/account/services" \
-H "Authorization: Bearer pk_live_XXXXXXXX"{
"services": [
{
"id": "svc_100001",
"product": "1 Proxy DC UK",
"family": "Proxy UK",
"status": "active",
"next_due_date": "2026-08-02",
"billing_cycle": "monthly"
}
]
}获取自动续费状态
返回某项服务是否已开启自动续费。启用后,续费账单到期时将自动从账户余额中支付。
路径参数
svc_idstring 必填服务 ID,例如 svc_100001,可从 GET /account/services 获取。
GET /account/services/{svc_id}/auto-renewcurl -X GET "https://api.proxywing.com/v1/account/services/{svc_id}/auto-renew" \
-H "Authorization: Bearer pk_live_XXXXXXXX"{
"service_id": "svc_100001",
"enabled": false
}设置自动续费
为服务开启或关闭自动续费。此操作仅切换该设置,不会创建或支付任何账单。
路径参数
svc_idstring 必填服务 ID,例如 svc_100001。
请求体参数
enabledboolean 必填true 表示启用自动续费,false 表示停用。
PUT /account/services/{svc_id}/auto-renewcurl -X PUT "https://api.proxywing.com/v1/account/services/{svc_id}/auto-renew" \
-H "Authorization: Bearer pk_live_XXXXXXXX" \
-H "Content-Type: application/json" \
-d '{"enabled":true}'{
"service_id": "svc_100001",
"enabled": true
}GET /account/api-keyscurl -X GET "https://api.proxywing.com/v1/account/api-keys" \
-H "Authorization: Bearer pk_live_XXXXXXXX"{
"api_keys": [
{
"public_id": "key_3Nb8Qv1Xk2Rf9Ta6Ue0p",
"key_prefix": "pk_live_3Nb8",
"label": "Production server",
"scopes": "write",
"status": "active"
}
]
}撤销 API 密钥
立即撤销 API 密钥。已在使用该密钥的所有请求将立即开始以 401 失败。此操作无法撤消。
路径参数
key_pub_idstring 必填要撤销的密钥的公开 ID,例如 key_3Nb8Qv1Xk2Rf9Ta6Ue0p。
DELETE /account/api-keys/{key_pub_id}curl -X DELETE "https://api.proxywing.com/v1/account/api-keys/{key_pub_id}" \
-H "Authorization: Bearer pk_live_XXXXXXXX"{
"revoked": "key_3Nb8Qv1Xk2Rf9Ta6Ue0p"
}