DuckIP
Log in to view your app_key authentication key on the Personal Center home page.
Keep your key secure. It grants administrator access to your account.
Authentication Methods
App Key Authentication
POST parameter:
app_key: {your_app_key}
Alternatively, pass it as a query parameter:
?app_key={your_app_key}
Response Format
All endpoints return responses in a uniform JSON format:
{
"code": 200,
"message": "操作成功",
"data": {}
}
code: Status code. 200 indicates success; other values indicate failure.message: Response message (in Chinese).data: Response data.
Base URLs:
Authentication
- HTTP Authentication, scheme: bearer
- API Key (apiKeyAuth)
- Parameter Name: app_key, in: query. Supports GET and POST.
API Key Management
GET API Key List
GET /developers/api-keys
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. |
| page | query | integer | No | none |
| pageSize | query | integer | No | none |
Response Example
200 Response
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
}
],
"total": 0,
"page": 1,
"pageSize": 1
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » request_id | string | true | none | none | |
| » data | object | true | none | none | |
| »» list | [UserApiKeyMetadata] | true | none | none | |
| »»» id | integer | true | none | API Key ID | |
| »»» api_key | string | true | none | The creation response contains the full key; keys are masked in team lists. | |
| »»» team_user_id | integer | true | none | ID of the member who holds the team key; 0 for a personal key. | |
| »»» remark | string | true | none | Remarks | |
| »»» status | integer | true | none | 0=disabled, 1=enabled | |
| »»» created_at | string | true | none | Creation time | |
| »»» updated_at | string¦null | false | none | Last update time | |
| »» total | integer | true | none | none | |
| »» page | integer | true | none | none | |
| »» pageSize | integer | true | none | none |
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
POST Create API Key
POST /developers/api-keys/create
Request Body
{
"team_id": "A1b2C3d4E5f6",
"remark": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » remark | body | string | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | On success, returns the full API key. It is shown only once. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
POST Enable API Key
POST /developers/api-keys/enable
Request Body
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | ApiKeyManageRequest | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Disable API Key
POST /developers/api-keys/disable
Request Body
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | ApiKeyManageRequest | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Delete API Key
POST /developers/api-keys/delete
Request Body
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | ApiKeyManageRequest | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Update API Key Remarks
POST /developers/api-keys/update-remark
Request Body
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"remark": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » id | body | integer | Yes | none |
| » remark | body | string | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
Team Management
POST Create Team
POST /developers/team/create
Request Body
{
"name": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » name | body | string | Yes | Team name |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
GET Teams Accessible to the Current User
GET /developers/team/list
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| page | query | integer | No | none |
| page_size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
GET Team Details
GET /developers/team/detail
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
POST Update Team Name
POST /developers/team/update-name
Request Body
{
"team_id": "A1b2C3d4E5f6",
"name": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » name | body | string | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
POST Dissolve Team
POST /developers/team/dissolve
Only the team's super administrator can call this endpoint. The name in the request must exactly match the team's current name. This endpoint requires secondary verification for the operation. If the caller is outside the 15-minute trusted period, it returns code=348. Obtain a verification code using one of the available methods listed in the response data, then retry with verify_type and verify_code. You can call this endpoint again to resume an incomplete dissolution process.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"name": "华东研发团队",
"verify_type": "email",
"verify_code": "123456"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » name | body | string | Yes | Team name confirmation. Must exactly match the team's current name. |
| » verify_type | body | string | No | Secondary verification method. Submit together with verify_code when verification is required. |
| » verify_code | body | string | No | Secondary verification code. May be omitted during the 15-minute trusted period. |
Enumerated Values
| Property | Value |
|---|---|
| » verify_type | phone |
| » verify_type | |
| » verify_type | |
| » verify_type | totp |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
GET Team Dissolution Status
GET /developers/team/dissolve-status
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
Team Assets
GET Team Package Information
GET /developers/team/product-info
Returns a package summary for the specified team resource space. Package fields match those in /web_v1/user/info. Does not return the team super administrator's personal profile, balance, or internal numeric team ID. For credit package details, use /web_v1/credit/info.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
GET Team Asset List
GET /developers/team/assets
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
GET Personal Assets Eligible for Transfer to a Team
GET /developers/team/assets/personal-candidates
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
POST Transfer Personal Assets to a Team
POST /developers/team/assets/move-in
Request Body
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » user_product_id | body | integer | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
POST Transfer Team Assets Back to Personal Space
POST /developers/team/assets/move-out
Request Body
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » user_product_id | body | integer | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Team Wallet
GET Team Wallet
GET /developers/team/wallet/detail
Requires VIEW_BILLING permission. The team wallet is separate from the personal balances of the super administrator and members.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
GET Team Wallet Transactions
GET /developers/team/wallet/records
Requires VIEW_BILLING permission. Transaction amounts are always positive; the direction field indicates whether funds are added or deducted.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| direction | 0 |
| direction | 1 |
| transaction_type | 1 |
| transaction_type | 2 |
| transaction_type | 3 |
| transaction_type | 4 |
| transaction_type | 5 |
POST Transfer Personal Balance to the Team Wallet
POST /developers/team/wallet/transfer-in
Only the team super administrator has TRANSFER_BALANCE permission. Atomically deducts from their personal top-up balance and credits the team wallet. The transferred amount is not included in total_recharge_fee and cannot be transferred back to the personal balance.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"amount": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » amount | body | number(double) | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
POST Transfer Team Balance Back to a Personal Account
POST /developers/team/wallet/transfer-out
Only the logged-in super administrator can call this endpoint. Atomically deducts from the team wallet and credits their personal top-up balance, without changing the team's or individual's cumulative top-up amount. Teams undergoing dissolution can use it to recover their balance; dissolved teams cannot call it.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"amount": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » amount | body | number(double) | Yes | Must not exceed the team's current available balance. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Team Members
GET Team Member List
GET /developers/team/members
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
GET Unified Team Member and Invitation List
GET /developers/team/people
Returns active members. Super administrators and administrators also see pending invitations. Invitations in other states appear only in the invitation history list.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| record_type | member |
| record_type | invitation |
| invite_type | 0 |
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 0 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
POST Update Member Role
POST /developers/team/members/update-role
Request Body
{
"team_id": "A1b2C3d4E5f6",
"team_member_id": 1,
"role": 2
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » team_member_id | body | integer | Yes | none |
| » role | body | integer | Yes | none |
Enumerated Values
| Property | Value |
|---|---|
| » role | 2 |
| » role | 3 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
POST Remove Team Member
POST /developers/team/members/remove
Request Body
{
"team_id": "A1b2C3d4E5f6",
"team_member_id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » team_member_id | body | integer | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data.status=3. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
POST Leave Team
POST /developers/team/members/leave
Request Body
{
"team_id": "A1b2C3d4E5f6"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data.status=2. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
Team Invitations
POST Create Team Invitation
POST /developers/team/invitations/create
Creates an invitation for a registered user, email address, or phone number. If the email address or phone number matches a user on this site, the response is normalized to invite_type=1. The frontend may submit a relative URL path template for invitations on this site. The server replaces only the placeholder with a one-time invitation token. When an unregistered invitee registers with the invited phone number or verifies the invited email address, the server binds any still-valid invitation to the new user, rotates the token, and sends only one additional unread in-site message. The old token in the original email or SMS immediately becomes invalid. If an email invitation has not yet been automatically bound, the current account registered with the invited email address can accept it directly without waiting for email_verify.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"invite_type": 1,
"role": 2,
"user_id": 1,
"email": "user@example.com",
"country_code": 1,
"phone": "string",
"invitation_url_template": "/team/invitation/{{token}}"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » invite_type | body | integer | Yes | 1=registered user, 2=email, 3=phone number |
| » role | body | integer | Yes | 2=administrator, 3=regular member |
| » user_id | body | integer | No | Required when invite_type=1. |
| body | string(email) | No | Required when invite_type=2. | |
| » country_code | body | integer | No | Required when invite_type=3. |
| » phone | body | string | No | Required when invite_type=3. |
| » invitation_url_template | body | string | No | Relative path template defined by this site's frontend. Must start with a single /, contain no domain name or line break, and include exactly one placeholder. |
| » anonymous | body | object | No | none |
| »» invite_type | body | any | No | none |
| » anonymous | body | object | No | none |
| »» invite_type | body | any | No | none |
| » anonymous | body | object | No | none |
| »» invite_type | body | any | No | none |
Enumerated Values
| Property | Value |
|---|---|
| » invite_type | 1 |
| » invite_type | 2 |
| » invite_type | 3 |
| » role | 2 |
| » role | 3 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": null,
"team_id": null,
"inviter_user_id": null,
"invitee_user_id": null,
"invite_type": null,
"invite_country_code": null,
"invite_target": null,
"delivery_type": null,
"role": null,
"status": null,
"accepted_by_user_id": null,
"expired_at": null,
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": null
},
"invitation_token": "string",
"invitation_url": "http://example.com",
"notification_channels": {
"email": null,
"sms": null,
"site_inner_message": null
}
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field; 200 indicates operation success. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
GET Team Invitation List
GET /developers/team/invitations
Accessible only to the team super administrator or administrators. Overdue pending invitations are marked as expired before the response is returned.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | TeamPublicId | Yes | Public team identifier |
| page | query | integer | No | Page number, starting at 1. |
| page_size | query | integer | No | Number of items per page |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
GET Preview Team Invitation
GET /developers/team/invitations/preview
Anonymously previews an invitation using a one-time invitation_token. Invitation links do not use numeric invitation IDs.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| invitation_token | query | string | Yes | Non-empty, plaintext, one-time token from the invitation link. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_name": "string",
"role": 2,
"status": 0,
"expired_at": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
POST Resend Team Invitation Notification
POST /developers/team/invitations/resend
Resends through the original delivery channel. Registered users also receive an in-site message. Resending rotates the token and immediately invalidates all previous invitation links.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"invitation_id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » invitation_id | body | integer | Yes | Invitation ID |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": null,
"team_id": null,
"inviter_user_id": null,
"invitee_user_id": null,
"invite_type": null,
"invite_country_code": null,
"invite_target": null,
"delivery_type": null,
"role": null,
"status": null,
"accepted_by_user_id": null,
"expired_at": null,
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": null
},
"invitation_url": "http://example.com",
"notification_channels": {
"email": null,
"sms": null,
"site_inner_message": null
}
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
POST Accept Team Invitation
POST /developers/team/invitations/accept
The logged-in user accepts an invitation using a one-time invitation_token. They must match the invitee and belong to the site that issued the invitation. No team_id is required.
Request Body
{
"invitation_token": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » invitation_token | body | string | Yes | Plaintext, one-time invitation token |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains the member object. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
POST Reject Team Invitation
POST /developers/team/invitations/reject
The logged-in user rejects an invitation addressed to them using a one-time invitation_token. No team_id is required.
Request Body
{
"invitation_token": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » invitation_token | body | string | Yes | Plaintext, one-time invitation token |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data.status=2. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
POST Cancel Team Invitation
POST /developers/team/invitations/cancel
Cancels a pending invitation in the specified team. The caller must have permission to invite users with the target role.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"invitation_id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | TeamPublicId | Yes | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » invitation_id | body | integer | Yes | Invitation ID |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data.status=3. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
Credit Management
GET Credit Package Information
GET /web_v1/credit/info
Retrieves a credit package summary for the current resource space. Team space requires USE_ASSETS permission. Supports authenticated sessions, personal API keys, and team API keys.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. With a team API key, it may be omitted; if provided, it must match the key's team. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains the credit tier, total credits, remaining credits, reset time, and automatic top-up status. | Inline |
Response Schema
POST Configure Automatic Credit Top-up from Balance
POST /web_v1/credit/update-auto-supplement
Uses an authenticated session to enable or disable automatic top-up for the current resource space. Team space requires USE_OWNER_PAYMENT_CAPABILITIES permission, currently available only to the team super administrator. Disabled by default for team space.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"status": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » status | body | integer | Yes | 0=off, 1=on |
Enumerated Values
| Property | Value |
|---|---|
| » status | 0 |
| » status | 1 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data.status contains the updated setting. | Inline |
Response Schema
GET Credit Usage Records
GET /web_v1/credit/consumption-logs
Uses an authenticated session to retrieve paginated credit usage records for the current resource space. Team space requires VIEW_BILLING permission.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
| start_date | query | string(date) | No | Start date, interpreted in the site's time zone. |
| end_date | query | string(date) | No | End date, interpreted in the site's time zone. |
| consumption_type | query | string | No | Usage type |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains list, page, page_size, total_count, and total_page. | Inline |
Response Schema
GET Credit Reset Records
GET /web_v1/credit/reset-logs
Uses an authenticated session to retrieve paginated credit reset records for the current resource space. Team space requires VIEW_BILLING permission.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains credit reset records and pagination information. | Inline |
Response Schema
GET Credit Statistics
GET /web_v1/credit/stats
Uses an authenticated session to retrieve credit statistics grouped by usage type for the current resource space. Team space requires VIEW_BILLING permission.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| start_date | query | string(date) | No | Start date, interpreted in the site's time zone. |
| end_date | query | string(date) | No | End date, interpreted in the site's time zone. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains by_type and total. | Inline |
Response Schema
GET Daily Credit Statistics
GET /web_v1/credit/daily-stats
Uses an authenticated session to retrieve daily credit usage for the current resource space, covering the last 7 days by default. Regular team members see only their own actual usage. Administrators, super administrators, and finance members with VIEW_BILLING permission see data for the entire team. Historical team logs without a recorded consuming member are visible only in the full-team view.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| start_date | query | string(date) | No | Start date; defaults to 6 days ago. |
| end_date | query | string(date) | No | End date; defaults to today. |
| consumption_type | query | string | No | Optional usage type |
| fill_gaps | query | integer | No | Whether to fill in missing dates |
Enumerated Values
| Property | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains daily_stats and summary. | Inline |
Response Schema
GET Hourly Credit Statistics
GET /web_v1/credit/hourly-stats
Uses an authenticated session to retrieve hourly credit usage for the current resource space, covering the last 7 days by default. Team space requires VIEW_BILLING permission.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| start_date | query | string(date) | No | Start date; defaults to 6 days ago. |
| end_date | query | string(date) | No | End date; defaults to today. |
| consumption_type | query | string | No | Optional usage type |
| fill_gaps | query | integer | No | Whether to fill in missing hours |
Enumerated Values
| Property | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains hourly_stats and summary. | Inline |
Response Schema
Xcrawl Activity Log
GET Recent Xcrawl Tasks
GET /web_v1/xcrawl-activity-log/recent-runs
Uses an authenticated session to retrieve individual tasks and a summary for the current resource space. Team space requires USE_ASSETS permission. Regular members see only tasks generated with credentials they created; administrators and super administrators can see tasks for the entire team.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
| endpoint | query | string | No | Endpoint type |
| status | query | string | No | none |
| start_time | query | string | No | Time in the user's time zone, in Y-m-d H:i:s format. |
| end_time | query | string | No | Time in the user's time zone. The end boundary is inclusive. |
| url | query | string | No | Target URL or Data scraper identifier |
| job_id | query | string | No | Task ID prefix |
Enumerated Values
| Property | Value |
|---|---|
| status | pending |
| status | crawling |
| status | completed |
| status | failed |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains a paginated list and metadata. | Inline |
Response Schema
GET Xcrawl Crawl Result
GET /web_v1/xcrawl-activity-log/crawl-result
Uses an authenticated session to retrieve the Crawl Result for a specified task in the current resource space. Team space requires USE_ASSETS permission. Task ownership is checked against the credentials visible to the member.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| job_id | query | string | Yes | Task ID |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains job_id and crawl_result. | Inline |
Response Schema
GET Xcrawl Task Details and Logs
GET /web_v1/xcrawl-activity-log/activity-logs
Uses an authenticated session to retrieve a specified individual task and its result details in the current resource space. Team space requires USE_ASSETS permission. Task ownership is checked against the credentials visible to the member.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| job_id | query | string | Yes | Task ID |
| page | query | integer | No | Page number for crawl/data sub-results |
| page_size | query | integer | No | Page size for crawl/data sub-results |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains job and detail, whose structure varies by endpoint. | Inline |
Response Schema
GET Data URL Aggregate Statistics
GET /web_v1/xcrawl-activity-log/data-url-summary
Uses an authenticated session to aggregate Data scraper tasks in the current resource space. Team space requires USE_ASSETS permission. Results are limited to the credentials visible to the member.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| limit | query | integer | No | Number of items to return; 0 returns an empty list. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data.list contains aggregate results by scraper. | Inline |
Response Schema
GET Recent Batch Crawl Tasks
GET /web_v1/xcrawl-activity-log/batch-recent-runs
Uses an authenticated session to retrieve batch tasks and a summary for the current resource space. Team space requires USE_ASSETS permission. Regular members see only tasks generated with credentials they created; administrators and super administrators can see tasks for the entire team.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
| endpoint | query | string | No | Endpoint type, usually batch_scrape. |
| status | query | string | No | none |
| start_time | query | string | No | Time in the user's time zone, in Y-m-d H:i:s format. |
| end_time | query | string | No | Time in the user's time zone. The end boundary is inclusive. |
| batch_id | query | string | No | Batch task ID prefix |
Enumerated Values
| Property | Value |
|---|---|
| status | pending |
| status | crawling |
| status | completed |
| status | failed |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains a paginated list and metadata. | Inline |
Response Schema
GET Batch Crawl Task Details and Logs
GET /web_v1/xcrawl-activity-log/batch-activity-logs
Uses an authenticated session to retrieve a specified batch task and its item results in the current resource space. Team space requires USE_ASSETS permission. Task ownership is checked against the credentials visible to the member.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| batch_id | query | string | Yes | Batch task ID |
| page | query | integer | No | Page number for items |
| page_size | query | integer | No | Page size for items |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. On successful completion, data contains job and the batch task detail. | Inline |
Response Schema
Proxy Account Management
GET Proxy Account List
GET /developers/whitelist-account/list
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. With a team key, it may be omitted; if provided, it must match the key's team. |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"id": 0,
"username": "string",
"password": "string",
"created_at": "string",
"remark": "string",
"product_type": 9,
"usage_flow": 0,
"limit_flow": 102400,
"status": 0
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | responseCode | false | none | Status code: 200=success, 3=invalid app_key. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» id | integer | false | none | Account ID | |
| »»» username | string | false | none | Proxy account username | |
| »»» password | string | false | none | Proxy account password | |
| »»» created_at | string | false | none | Time added | |
| »»» remark | string | false | none | Remarks | |
| »»» product_type | productTypes | false | none | Package type: 9=dynamic residential traffic package, 11=dynamic residential IP, 14=static datacenter IP, 25=static residential IP. | |
| »»» usage_flow | integer | false | none | Traffic used, in KB. | |
| »»» limit_flow | integer | false | none | Custom traffic limit, in GB. Maximum: 102400; 0 means unlimited. | |
| »»» status | integer | false | none | Account status: 1=enabled, 0=disabled. |
Enumerated Values
| Property | Value |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
POST Check Available Traffic Limits for a Proxy Account
POST /developers/whitelist-account/check
Request Body
{
"team_id": "A1b2C3d4E5f6",
"account": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » account | body | string | No | Account username to provide when editing an existing proxy account. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"isAgent": 0,
"trendMax": 0,
"staticMax": 0,
"maxLimit": 0,
"minLimit": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| isAgent | 0 |
| isAgent | 1 |
GET Dynamic Proxy Subaccount Quota and Usage
GET /developers/whitelist-account/child-account
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"totalChildAccount": 0,
"usedChildAccount": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
POST Add Proxy Account
POST /developers/whitelist-account/add
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01:pass,user02:pass,user03:pass",
"remark": "",
"product_type": 9
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » accounts | body | string | No | Account credentials in username:password format. Usernames and passwords may contain only letters and digits; special characters and spaces are not allowed. Separate the username and password with a colon. To add multiple proxy accounts, separate them with commas (,). |
| » remark | body | string | No | Proxy account description |
| » product_type | body | productTypes | No | Package type: 9=dynamic residential traffic package, 11=dynamic residential IP, 14=static datacenter IP, 25=static residential IP. |
Enumerated Values
| Property | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 14 |
| » product_type | 25 |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Delete Proxy Account
POST /developers/whitelist-account/delete
Deletion cannot be undone. Usage history and other data will no longer be available. Deletion takes approximately 5 minutes to take effect, and charges may still accrue during this period.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » accounts | body | string | No | Proxy account username. Only letters and digits are allowed. For batch operations, separate proxy accounts with commas (,). |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Disable Proxy Account
POST /developers/whitelist-account/disable
Disabling an account takes approximately 5 minutes to take effect. Charges may still accrue during this period.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » accounts | body | string | No | Proxy account username. Only letters and digits are allowed. For batch operations, separate proxy accounts with commas (,). |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Enable Proxy Account
POST /developers/whitelist-account/enable
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » accounts | body | string | No | Proxy account username. Only letters and digits are allowed. For batch operations, separate proxy accounts with commas (,). |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Change Proxy Account Password
POST /developers/whitelist-account/change-password
A password change takes 5 minutes to take effect. The old password may remain valid during this period.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"password": "pass"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » account | body | string | No | Proxy account username. Only letters and digits are allowed. |
| » password | body | string | No | New proxy account password. Only letters and digits are allowed. |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Update Proxy Account Remarks
POST /developers/whitelist-account/change-remark
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"remark": ""
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » account | body | string | No | Proxy account username. Only letters and digits are allowed. |
| » remark | body | string | No | New proxy account remarks, up to 32 Chinese characters or 64 English characters. |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Update Proxy Account Traffic Limit
POST /developers/whitelist-account/change-limit
Traffic statistics may be delayed by up to 5 minutes, so actual traffic usage may exceed this limit.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"limit": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » account | body | string | No | Proxy account username. Only letters and digits are allowed. |
| » limit | body | integer | No | Traffic limit, in GB. 0 means unlimited. |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Quickly Create a Proxy Account
POST /developers/whitelist-account/quick-add
Request Body
{
"team_id": "A1b2C3d4E5f6",
"product_type": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » product_type | body | integer | Yes | none |
Response Example
200 Response
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"username": "string",
"password": "string"
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | On successful completion, returns the new account username and password. | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | none | |
| » msg | string | false | none | none | |
| » request_id | string | false | none | none | |
| » data | any | false | none | none |
oneOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| »» anonymous | object | false | none | none | |
| »»» username | string | true | none | none | |
| »»» password | string | true | none | none |
xor
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| »» anonymous | null | false | none | none |
POST Update Proxy Account Daily Traffic Limit
POST /developers/whitelist-account/change-daily-limit
Request Body
{
"team_id": "A1b2C3d4E5f6",
"account": "string",
"daily_limit": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » account | body | string | Yes | none |
| » daily_limit | body | integer | No | Unit: GB |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Update Proxy Account Information
POST /developers/whitelist-account/change
Request Body
{
"team_id": "A1b2C3d4E5f6",
"account": "string",
"password": "string",
"remark": "string",
"limit": 0,
"daily_limit": 0,
"status": 0,
"udp": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » account | body | string | Yes | none |
| » password | body | string | No | none |
| » remark | body | string | No | none |
| » limit | body | integer | No | Total traffic limit, in GB. |
| » daily_limit | body | integer | No | Daily traffic limit, in GB. |
| » status | body | integer | No | none |
| » udp | body | integer | No | none |
Enumerated Values
| Property | Value |
|---|---|
| » status | 0 |
| » status | 1 |
| » udp | 0 |
| » udp | 1 |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Refresh Proxy Account Authentication Cache for the Current Resource Space
POST /developers/whitelist-account/refresh
Request Body
{
"team_id": "A1b2C3d4E5f6"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
GET Proxy Account Quota for a Specified Product Type
GET /developers/whitelist-account/quota
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| product_type | query | integer | Yes | none |
Response Example
200 Response
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"usage": 0,
"limit": 0,
"expand": 0
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | none | |
| » msg | string | false | none | none | |
| » request_id | string | false | none | none | |
| » data | object | false | none | none | |
| »» usage | integer | true | none | none | |
| »» limit | integer | true | none | none | |
| »» expand | integer | true | none | none |
GET Proxy Account Quotas for All Product Types
GET /developers/whitelist-account/quotas
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
Response Example
200 Response
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"product_type": 0,
"limit": 0,
"usage": 0
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | none | |
| » msg | string | false | none | none | |
| » request_id | string | false | none | none | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» product_type | integer | false | none | none | |
| »»» limit | integer | false | none | none | |
| »»» usage | integer | false | none | none |
POST Update Proxy Account Information
POST /developers/proxy-account/change
Updates a proxy account's password, remarks, traffic limit, daily traffic limit, enabled status, or UDP setting.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"account": "string",
"password": "string",
"remark": "string",
"limit": 0,
"daily_limit": 0,
"status": 0,
"udp": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » account | body | string | No | Proxy account username |
| » password | body | string | No | New password, consisting of 6-16 letters or digits. Omit to leave it unchanged. |
| » remark | body | string | No | New remarks |
| » limit | body | integer | No | Traffic limit, in GB. 0 means unlimited. |
| » daily_limit | body | integer | No | Daily traffic limit, in GB. 0 means unlimited. |
| » status | body | integer | No | Enabled status |
| » udp | body | integer | No | UDP support setting. Applies only to package types 14, 16, 21, and 25. |
Enumerated Values
| Property | Value |
|---|---|
| » status | 0 |
| » status | 1 |
| » udp | 0 |
| » udp | 1 |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
IP Whitelist
GET IP Whitelist
GET /developers/proxy-ip/list
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. |
| product_type | query | integer | No | Package type ID |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"ip": "1.1.1.1",
"remark": "string",
"product_type": 0,
"created_at": "string"
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» ip | string | false | none | Whitelisted IP | |
| »»» remark | string | false | none | Remarks | |
| »»» product_type | integer | false | none | Package type | |
| »»» created_at | string | false | none | Creation time |
POST Add IPs to Whitelist
POST /developers/proxy-ip/add
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"remark": "string",
"product_type": 0,
"user_product_id": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » ips | body | string | No | IPs to add to the whitelist. Separate multiple IPs with commas or line breaks. |
| » remark | body | string | No | Remarks |
| » product_type | body | integer | No | Package type ID |
| » user_product_id | body | integer | No | User package ID. Required for package type 11. |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Delete IPs from Whitelist
POST /developers/proxy-ip/delete
Request Body
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"verify_type": "string",
"verify_code": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » app_key | body | string | No | Authorization key |
| » ips | body | string | No | IPs to remove from the whitelist. Separate multiple IPs with commas. |
| » verify_type | body | string | No | Verification method: phone, email, wechat, or totp. |
| » verify_code | body | string | No | Verification code |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Update IP Whitelist Remarks
POST /developers/white-ip/change-remark
Request Body
{
"team_id": "A1b2C3d4E5f6",
"ip": "192.168.0.1",
"remark": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » ip | body | string(ipv4) | Yes | none |
| » remark | body | string | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Refresh IP Whitelist Authentication Cache for the Current Resource Space
POST /developers/white-ip/refresh
Request Body
{
"team_id": "A1b2C3d4E5f6"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
GET IP Whitelist Quota for a Specified Product Type
GET /developers/white-ip/quota
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| product_type | query | integer | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
GET IP Whitelist Quotas for All Product Types
GET /developers/white-ip/quotas
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
IP Extraction
GET Daily IP Extraction Counts
GET /developers/user-extract-ip/days
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| start_date | query | string(date) | No | Defaults to 6 days ago. |
| end_date | query | string(date) | No | Defaults to today. |
| product_type | query | integer | No | none |
Enumerated Values
| Property | Value |
|---|---|
| product_type | 9 |
| product_type | 17 |
| product_type | 22 |
Response Example
200 Response
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"count": 0,
"date": "2019-08-24"
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | none | |
| » msg | string | false | none | none | |
| » request_id | string | false | none | none | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» count | integer | true | none | none | |
| »»» date | string(date) | true | none | none |
GET Extract IPs
GET /developers/ip/v3
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | May be omitted when using a team key. If provided, must match the team associated with the key. |
| app_key | query | string(password) | Yes | Access key |
| cc | query | string | No | Country or region |
| state | query | string | No | State or province |
| city | query | string | No | City |
| format | query | string | No | Output format |
| lb | query | string | No | Separator. Applies only to text format. |
| num | query | number | No | Number of IPs to extract |
| life | query | number | No | Session duration, in minutes. |
| ep | query | string | No | Proxy network |
Enumerated Values
| Property | Value |
|---|---|
| ep | us |
| ep | hk |
| ep | de |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
[
"150.109.114.72:1140",
"150.109.114.72:1141",
"150.109.114.72:1142",
"150.109.114.72:1143",
"150.109.114.72:1144",
"150.109.114.72:1145",
"150.109.114.72:1146",
"150.109.114.72:1147",
"150.109.114.72:1148",
"150.109.114.72:1149"
]
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [any] | false | none | none |
GET Dynamic Proxy City List V4
GET /developers/ip/dcl4
Retrieves the city list by username. Requires an authenticated session, and the account must belong to the current user.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| username | query | string | Yes | Proxy account username |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"City": "Los Angeles",
"Area": "US",
"State": "California"
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» cache | boolean | false | none | Whether the result was served from cache | |
| »» list | [object] | false | none | none | |
| »»» City | string | false | none | City | |
| »»» Area | string | false | none | Region | |
| »»» State | string | false | none | State/province |
GET Dynamic Proxy State/Province List V4
GET /developers/ip/dsl4
Retrieves the state/province list by username. Requires an authenticated session, and the account must belong to the current user.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| username | query | string | Yes | Proxy account username |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"City": "Los Angeles",
"Area": "US",
"State": "California"
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» cache | boolean | false | none | Whether the result was served from cache | |
| »» list | [object] | false | none | none | |
| »»» City | string | false | none | City | |
| »»» Area | string | false | none | Region | |
| »»» State | string | false | none | State/province |
GET Combined Dynamic Proxy State/Province and City List V4
GET /developers/ip/dal4
Retrieves a combined state/province and city list by username, grouped by region. Requires an authenticated session, and the account must belong to the current user.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| username | query | string | Yes | Proxy account username |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"Area": "US",
"states": [
{
"State": null,
"cities": null
}
]
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» cache | boolean | false | none | Whether the result was served from cache | |
| »» list | [object] | false | none | Region list | |
| »»» Area | string | false | none | Region code | |
| »»» states | [object] | false | none | State/province list | |
| »»»» State | string | false | none | State/province name | |
| »»»» cities | [string] | false | none | City list |
GET City List
GET /developers/ip/dynamic-citys
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"city": null,
"state": null,
"continent_code": null,
"country_code": null
}
]
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | List | |
| »»» name_zh_cn | string | false | none | Country or region name | |
| »»» name_en | string | false | none | Country or region name | |
| »»» continent_code | string | false | none | Continent code | |
| »»» country_code | string | false | none | Country or region code | |
| »»» items | [object] | false | none | State or province | |
| »»»» city | string | false | none | City name | |
| »»»» state | string | false | none | State or province name/code | |
| »»»» continent_code | string | false | none | Continent code | |
| »»»» country_code | string | false | none | Country or region code |
GET Search Cities
GET /developers/ip/dynamic-citys/search
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| country_code | query | string | Yes | Country or region code |
| state | query | string | Yes | State or province code |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
"string"
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [string] | false | none | List |
GET State List
GET /developers/ip/dynamic-states
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"state": null,
"continent_code": null,
"country_code": null
}
]
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | List | |
| »»» name_zh_cn | string | false | none | Country or region name | |
| »»» name_en | string | false | none | Country or region name | |
| »»» continent_code | string | false | none | Continent code | |
| »»» country_code | string | false | none | Country or region code | |
| »»» items | [object] | false | none | State or province | |
| »»»» state | string | false | none | State or province name/code | |
| »»»» continent_code | string | false | none | Continent code | |
| »»»» country_code | string | false | none | Country or region code |
GET Search States and Provinces
GET /developers/ip/dynamic-states/search
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| country_code | query | string | Yes | Country or region code |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
"string"
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [string] | false | none | List |
POST Allocated Static Datacenter IP List
POST /developers/ip/get-datacenter-assign-ip-list
Deprecated. Use /developers/user-product/datacenter-isp-ip-list instead. For compatibility with older clients, this endpoint uses POST, but all filter parameters are read from the query string.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. With a team key, it may be omitted; if provided, it must match the key's team. |
| area | query | string | No | Country/region code |
| status | query | integer | No | 0=all, 1=active, 2=expired |
| trade_no | query | string | No | Order number |
| created_at | query | array[string] | No | Creation time range. Both the start and end times are required. |
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"total": 0,
"list": [
{
"id": 1,
"ip": "string",
"country_code": "string",
"up_id": 1,
"expired_at": "string",
"created_at": "string",
"country_name_zh_cn": "string",
"country_name_en": "string",
"country_continent_code": "string",
"port": 1
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
GET Purchased Static IP List
GET /developers/ip/get-static-ip
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| country_code | query | string | No | Country or region code |
| product_type | query | number | No | Product type: 25=static residential IP, 14=datacenter IP. |
| trade_no | query | string | No | Filter IPs by order number. |
| page | query | number | No | Page number |
| size | query | number | No | Number of items per page |
| status | query | number | No | Status: 1=active, 2=inactive, 3=expiring soon, 4=under maintenance. |
Enumerated Values
| Property | Value |
|---|---|
| product_type | 14 |
| product_type | 25 |
| status | 1 - 2 - 3 - 4 |
Response Example
200 Response
{}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Schema
GET Available Static IP Counts by Region
GET /developers/ip/static-ip-region
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| isp | query | integer | No | ISP filter. If omitted, no filter is applied, except on sites 1/4/5, where it defaults to 1. |
| asn | query | integer | No | Whether to return data grouped by ASN |
| exclusive | query | integer | No | Whether to count only exclusively available inventory |
Details
isp: ISP filter. If omitted, no filter is applied, except on sites 1/4/5, where it defaults to 1.
| Value | Description |
|---|---|
| 0 | Static datacenter IPs (IDC) |
| 1 | Static residential IPs (ISP) |
asn: Whether to return data grouped by ASN.
| Value | Description |
|---|---|
| 0 | Do not return data grouped by ASN (default). |
| 1 | Return data grouped by ASN. |
exclusive: Whether to count only exclusively available inventory.
| Value | Description |
|---|---|
| 0 | Count using the current user/shared-group scope (default). |
| 1 | Exclude all allocated IPs and count only available inventory. |
Enumerated Values
| Property | Value |
|---|---|
| isp | 0 |
| isp | 1 |
| asn | 0 |
| asn | 1 |
| exclusive | 0 |
| exclusive | 1 |
Response Example
200 Response
{
"code": 200,
"msg": "请求成功",
"data": {
"list": [
{
"code": "US",
"number": 55
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» code | string | false | none | Country or region code | |
| »»» number | integer | false | none | Count |
GET Countries/Regions Supported by host_pool
GET /developers/host-pool/regions
Retrieves the countries/regions supported by the host_pool service for the current site.
This endpoint is intended for random datacenter IP extraction billed by traffic credits. Country/region counts are based only on available datacenter IP inventory for the current site. Does not support ASN, ISP, or exclusive-inventory filters, and does not exclude IPs based on the user's purchase history.
Response Example
200 Response
{
"code": 200,
"msg": "请求成功",
"data": {
"list": [
{
"code": "US",
"number": 55,
"name_zh_cn": "美国",
"name_en": "United States",
"square_flag": "https://example.com/static/flags/us.png"
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» code | string | false | none | Country or region code, in ISO 3166-1 alpha-2 format. | |
| »»» number | integer | false | none | Number of available datacenter IPs on the current site. | |
| »»» name_zh_cn | string | false | none | Country or region name in Chinese | |
| »»» name_en | string | false | none | Country or region name in English | |
| »»» square_flag | string | false | none | URL of a square flag image |
Traffic Usage Logs
POST Recent Daily Traffic Usage Summary
POST /developers/user-usage-flow/days
Request Body
{
"team_id": "A1b2C3d4E5f6",
"days": 7,
"product_type": 0,
"username": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » days | body | integer | No | none |
| » product_type | body | integer | No | none |
| » username | body | string | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"days": "2019-08-24",
"flow": 0
}
],
"days": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
POST Historical Proxy Account Traffic Usage
POST /developers/user-usage-flow/username-total
Request Body
{
"team_id": "A1b2C3d4E5f6"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"username": "string",
"flow": 0
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
POST Export Monthly Proxy Account Traffic Usage
POST /developers/user-usage-flow/export-csv
Request Body
{
"team_id": "A1b2C3d4E5f6"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
Response Example
200 Response
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | GBK-encoded CSV file | string |
GET Total and Remaining Package Traffic
GET /developers/user-usage-flow/flow-total
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| unit | query | string | No | none |
Enumerated Values
| Property | Value |
|---|---|
| unit | KB |
| unit | MB |
| unit | GB |
| unit | TB |
| unit | PB |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"limit": 0,
"total": 0,
"remain": 0,
"unit": "KB",
"timestamp": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| unit | KB |
| unit | MB |
| unit | GB |
| unit | TB |
| unit | PB |
GET Daily Speed Chart
GET /developers/user-usage-flow/rate-graph
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| start | query | string(date) | No | none |
| end | query | string(date) | No | none |
| username | query | string | No | none |
| user_product_id | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"date": "2019-08-24",
"rate": 0,
"corrent": 0
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
GET Daily Cached Traffic Statistics
GET /developers/user-usage-flow/cache-total
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| start_time | query | string | No | none |
| end_time | query | string | No | none |
| product_type | query | integer | No | none |
| username | query | string | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"day": "2019-08-24",
"cache_flow": 0,
"cache_reduce_flow": 0
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
GET Daily Traffic Usage Summary
GET /developers/user-usage-flow/total
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. |
| app_key | query | string(password) | Yes | Authentication key |
| start_time | query | string(Y-m-d H:i:s) | No | Start time, with precision up to seconds. Logs may be delayed by up to 5 minutes. Defaults to a range within the last 7 days. |
| end_time | query | string(Y-m-d H:i:s) | No | End time, with precision up to seconds. Logs may be delayed by up to 5 minutes. Defaults to the current time. |
| username | query | string | No | Subaccount username. Queries all accounts by default; specify a username to query a particular subaccount. If multiple subaccounts share the same username, all usage records for that username are returned. |
| product_type | query | number | No | Package type |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"day": "2022-08-01",
"flow": 0
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» day | string | false | none | Date | |
| »»» flow | integer | false | none | Traffic used, in KB. |
Proxy Logs
GET Proxy Access Statistics by Client IP
GET /developers/http-t-dom/list-v2
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| start_time | query | string(date) | No | none |
| end_time | query | string(date) | No | none |
| export | query | string | No | none |
Enumerated Values
| Property | Value |
|---|---|
| export | csv |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"visit_count": 0,
"client_ip": "string",
"time": "2019-08-24",
"country_code": "string",
"country": "string"
}
],
"cache": true,
"ttl": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | JSON statistics; returns a CSV file when export=csv. | string |
GET Access Share by Client IP
GET /developers/http-t-dom/client-ip-proportion
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| start_time | query | string(date) | No | none |
| end_time | query | string(date) | No | none |
| export | query | string | No | none |
Enumerated Values
| Property | Value |
|---|---|
| export | csv |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"username": "string",
"client_ip": "string",
"visit_count": 0,
"visit_percentage": "string",
"country": "string",
"country_code": "string"
}
],
"cache": true,
"ttl": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | JSON access-share statistics; returns a CSV file when export=csv. | string |
Monthly Renewal Bills
GET Current Monthly Consolidated Renewal Bill
GET /developers/monthly-renewal-bill
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"batch": {
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
},
"currency": "string",
"total_fee": 0,
"items": [
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| type | current |
| type | next |
POST Check Monthly Consolidated Renewal Order
POST /developers/monthly-renewal-bill/check
Request Body
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | MonthlyRenewalRequest | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"batch": {
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
},
"currency": "string",
"total_fee": 0,
"discount_fee": 0,
"pay_fee": 0,
"items": [
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
],
"user_coupon_id": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| type | current |
| type | next |
POST Create Monthly Consolidated Renewal Order
POST /developers/monthly-renewal-bill/create
Request Body
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | MonthlyRenewalRequest | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"trade_no": "string",
"total_fee": 0,
"discount_fee": 0,
"pay_fee": 0,
"currency": "string",
"user_coupon_id": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
GET Historical Monthly Consolidated Renewal Bills
GET /developers/monthly-renewal-bill/history
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| trade_no | query | string | No | none |
| start_date | query | string(date) | No | none |
| end_date | query | string(date) | No | none |
| page | query | integer | No | none |
| size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"total": 0,
"page": 1,
"size": 1,
"list": [
{
"id": 1,
"trade_no": "string",
"status": 0,
"pay_fee": 0,
"currency": "string",
"pay_at": "string",
"created_at": "string",
"pay_method": 0,
"pm_id": 0,
"pay_channel": 0,
"pm_title": "string",
"pm_logo": "string",
"items": [
null
]
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Invoice Management
GET Invoice Header Details
GET /developers/user-invoice/info
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| invoice_code | query | string | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "user@example.com",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
POST Create or Update Invoice Header
POST /developers/user-invoice/create
Request Body
{
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "user@example.com",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true,
"team_id": "A1b2C3d4E5f6",
"new_invoice_code": false
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | any | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful; data is null. | Inline |
Response Schema
GET Invoice Header List
GET /developers/user-invoice/list
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
POST Delete Invoice Header
POST /developers/user-invoice/delete
Request Body
{
"team_id": "A1b2C3d4E5f6",
"invoice_code": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » invoice_code | body | string | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful; data is null. | Inline |
Response Schema
GET Invoice Record List
GET /developers/user-invoice/record-list
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| status | query | integer | No | none |
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"invoice_no": "string",
"invoice_amount": 0,
"invoice_download_url": "string",
"status": 0,
"remark": "string",
"order_ids": [
null
],
"created_at": 0,
"invoice_info": {}
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
POST Submit Invoice Request
POST /developers/user-invoice/submit
Request Body
{
"team_id": "A1b2C3d4E5f6",
"invoice_code": "string",
"order_ids": [
0
]
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » invoice_code | body | string | Yes | none |
| » order_ids | body | [integer] | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoice_id": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
POST Cancel Invoice Request
POST /developers/user-invoice/cancel
Request Body
{
"team_id": "A1b2C3d4E5f6",
"invoice_id": 1,
"reason": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » invoice_id | body | integer | Yes | none |
| » reason | body | string | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful; data is null. | Inline |
Response Schema
GET Invoice Amount Statistics
GET /developers/user-invoice/statistics
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoiceable_amount": 0,
"invoiced_amount": 0,
"processing_amount": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
GET Orders Eligible for Invoicing
GET /developers/user-invoice/invoiceable-orders
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"order_no": "string",
"pay_fee": 0,
"created_at": 0
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Package Queries
GET Purchased Package List
GET /developers/user-product/list
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. |
| app_key | query | string(password) | Yes | Authentication key |
| trade_no | query | string | No | Order number. Enter the complete order number; partial matching is not supported. |
| page | query | number | No | Page number. Default: 1. |
| size | query | number | No | Number of items per page. Default: 20. |
| product_type | query | number | No | Package type |
Response Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"id": 0,
"created_at": "2022-05-13 12:14:15",
"expired_at": "2022-05-13 12:14:15",
"product_type": 9,
"trade_no": "2022051312134339861461465434",
"order": {
"created_at": "2022-05-13 12:13:43",
"pay_at": "2022-05-13 12:13:43",
"title": "入门级"
}
}
],
"page": 1,
"page_size": 20,
"total_count": 0,
"total_page": 0
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» id | integer | false | none | Package ID | |
| »»» created_at | string | false | none | Package activation time | |
| »»» expired_at | string | false | none | Package expiration time. Traffic cannot be used after expiration. | |
| »»» product_type | productTypes | false | none | Package type: 9=dynamic residential traffic package, 11=dynamic residential IP, 14=static datacenter IP, 25=static residential IP. | |
| »»» trade_no | string | false | none | Order transaction number | |
| »»» order | object | false | none | none | |
| »»»» created_at | string | false | none | Order creation time | |
| »»»» pay_at | string | false | none | Order payment time | |
| »»»» title | string | false | none | Order description | |
| »» page | integer | false | none | Current page number | |
| »» page_size | integer | false | none | Page size | |
| »» total_count | integer | false | none | Total number of records | |
| »» total_page | integer | false | none | Total number of pages |
Enumerated Values
| Property | Value |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
GET User Package Summary
GET /developers/user-product/summary
Retrieves aggregate statistics for the user's packages, including total, active, expiring, and expired amounts.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. |
| app_key | query | string(password) | Yes | Authentication key |
| product_type | query | integer | No | Product type. Supports only 9 (dynamic traffic package) and 12 (long-duration IDC traffic package). |
Enumerated Values
| Property | Value |
|---|---|
| product_type | 9 |
| product_type | 12 |
Response Example
200 Response
{
"code": 200,
"msg": "成功",
"data": {
"total": 1048576,
"total_count": 5,
"effective": 524288,
"effective_count": 3,
"effective_total": 786432,
"effective_used": 262144,
"temporary": 102400,
"temporary_count": 1,
"expired": 51200,
"expired_count": 1,
"used": 473088
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Status Code 200
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code: 200=success, 3=invalid app_key, 156=account identity verification not completed. | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» total | integer | false | none | Total traffic/IP amount (unit: KB). | |
| »» total_count | integer | false | none | Total number of packages | |
| »» effective | integer | false | none | Remaining active traffic (unit: KB). | |
| »» effective_count | integer | false | none | Number of active packages | |
| »» effective_total | integer | false | none | Total active traffic (unit: KB). | |
| »» effective_used | integer | false | none | Used traffic in active packages (unit: KB). | |
| »» temporary | integer | false | none | Total traffic expiring within 7 days (unit: KB). | |
| »» temporary_count | integer | false | none | Number of packages expiring within 7 days. | |
| »» expired | integer | false | none | Unused traffic in expired packages (unit: KB). | |
| »» expired_count | integer | false | none | Number of expired packages | |
| »» used | integer | false | none | Total traffic used (unit: KB). |
POST Static IP List
POST /developers/user-product/datacenter-isp-ip-list
Request Body
{
"team_id": "A1b2C3d4E5f6",
"status": 0,
"page": 1,
"size": 20,
"user_product_id": 1,
"country_code": "string",
"product_type": 0,
"ip": "192.168.0.1",
"auto_renewal": 0,
"support_renewal": 0,
"remaining_days": 0,
"limit_days": 0,
"sort": "exp_asc",
"remark": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » status | body | integer | No | none |
| » page | body | integer | No | none |
| » size | body | integer | No | none |
| » user_product_id | body | integer | No | none |
| » country_code | body | string | No | none |
| » product_type | body | integer | No | none |
| » ip | body | string(ipv4) | No | none |
| » auto_renewal | body | integer | No | none |
| » support_renewal | body | integer | No | none |
| » remaining_days | body | integer | No | none |
| » limit_days | body | integer | No | none |
| » sort | body | string | No | none |
| » remark | body | string | No | none |
Enumerated Values
| Property | Value |
|---|---|
| » auto_renewal | 0 |
| » auto_renewal | 1 |
| » support_renewal | 0 |
| » support_renewal | 1 |
| » sort | exp_asc |
| » sort | exp_desc |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Delete Expired Package
POST /developers/user-product/delete
Request Body
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » id | body | integer | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Batch Delete Expired Packages
POST /developers/user-product/batch-delete
Request Body
{
"team_id": "A1b2C3d4E5f6",
"ids": [
1
]
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » ids | body | [integer] | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Update Package Remarks
POST /developers/user-product/change-remark
Request Body
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"remark": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » id | body | integer | Yes | none |
| » remark | body | string | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Batch Configure UDP for Static IPs
POST /developers/user-product/set-ip-udp
Request Body
{
"team_id": "A1b2C3d4E5f6",
"ids": [
1
],
"udp": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » ids | body | [integer] | Yes | none |
| » udp | body | integer | Yes | none |
Enumerated Values
| Property | Value |
|---|---|
| » udp | 0 |
| » udp | 1 |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
Package Management
POST Replace Static Datacenter ISP IP
POST /developers/user-product/change-datacenter-isp-ip
Request Body
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"country_code": "string",
"ip": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » id | body | integer | Yes | User package ID |
| » country_code | body | string | No | Target country/region code. If omitted, the current IP's country/region is preferred. |
| » ip | body | string | No | Filter by target IP prefix. |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"ip_id": 1,
"ip": "string",
"country_code": "string"
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
GET Static IP Replacement Records
GET /developers/user-product/ip-change-log
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Resource space identifier. Omit this parameter or pass an empty string for personal space. |
| page | query | integer | No | none |
| page_size | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"old": "string",
"new": "string",
"created_at": "string",
"created_timestamp": 0
}
],
"page": 1,
"page_size": 1,
"total_count": 0,
"page_count": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
POST Enable or Disable Automatic Renewal for a Package
POST /developers/user-product/set-auto-renewal
Request Body
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1,
"status": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » user_product_id | body | integer | Yes | none |
| » status | body | integer | No | 0=disabled, 1=enabled |
Enumerated Values
| Property | Value |
|---|---|
| » status | 0 |
| » status | 1 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
POST Batch Enable or Disable Automatic Renewal for Packages
POST /developers/user-product/batch-set-auto-renewal
Request Body
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"status": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » user_product_ids | body | [integer] | Yes | none |
| » status | body | integer | No | 0=disabled, 1=enabled |
Enumerated Values
| Property | Value |
|---|---|
| » status | 0 |
| » status | 1 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"results": [
{
"user_product_id": 1,
"success": true,
"id": 1
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful. Each package has an independent result. | Inline |
Response Schema
POST Set Default Automatic Renewal Parameters for a Product Type
POST /developers/user-product/set-auto-renewal-default-config
Provide at least one of days_before_expire, traffic_threshold, or renewal_cycle_days. A value of 0 resets the corresponding setting.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"product_type": 9,
"days_before_expire": 30,
"traffic_threshold": 100,
"renewal_cycle_days": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » product_type | body | integer | Yes | none |
| » days_before_expire | body | integer | No | none |
| » traffic_threshold | body | integer | No | Unit: GB. Supported only for types 9/12/24. |
| » renewal_cycle_days | body | integer | No | Supported only for types 11/14/16/25. Must be a billing period offered by a currently available product. |
| » anonymous | body | object | No | none |
| » anonymous | body | object | No | none |
| » anonymous | body | object | No | none |
Enumerated Values
| Property | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 12 |
| » product_type | 14 |
| » product_type | 16 |
| » product_type | 24 |
| » product_type | 25 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful; data is null. | Inline |
Response Schema
POST Get Default Automatic Renewal Parameters for a Product Type
POST /developers/user-product/get-auto-renewal-default-config
Request Body
{
"team_id": "A1b2C3d4E5f6",
"product_type": 9
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » product_type | body | integer | No | If omitted, returns all supported types. |
Enumerated Values
| Property | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 12 |
| » product_type | 14 |
| » product_type | 16 |
| » product_type | 24 |
| » product_type | 25 |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"configs": [
{
"product_type": "[",
"days_before_expire": 0,
"source": "[",
"renewal_cycle": {},
"traffic_threshold": 0,
"traffic_source": "["
}
]
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 12 |
| product_type | 14 |
| product_type | 16 |
| product_type | 24 |
| product_type | 25 |
| source | user |
| source | system |
| source | user |
| source | system |
| traffic_source | user |
| traffic_source | system |
POST Get Package Automatic Renewal Settings and Renewal Preview
POST /developers/user-product/get-auto-renewal
Request Body
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » user_product_id | body | integer | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"expired_at": "string",
"time_days": 0,
"time_unit": "day",
"next_expired_at": "string",
"agreed_price": 0,
"currency": "string",
"config": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_type": 0,
"left_traffic": 0,
"left_days": 0,
"user_product_id": 1,
"product_id": 0,
"status": 0,
"currency": "string",
"agreed_price": 0,
"agreed_bandwidth_price": 0,
"agreed_concurrency_price": 0,
"bandwidth_id": 0,
"concurrency_id": 0,
"duration": 0,
"renew_product_id": 0,
"days_before_expire": 0,
"traffic_threshold": 0,
"parent_product_type": 0,
"created_at": "string",
"updated_at": "string"
},
"traffic_threshold": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| time_unit | day |
| time_unit | hour |
| status | 0 |
| status | 1 |
POST Get Automatic Renewal Execution Records
POST /developers/user-product/auto-renewal-logs
Request Body
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1,
"page": 1,
"size": 20
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | No | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » user_product_id | body | integer | No | If omitted, retrieves all records in the current resource space. |
| » page | body | integer | No | none |
| » size | body | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"config_id": 0,
"user_product_id": 1,
"product_type": 0,
"renew_product_id": 0,
"order_id": 0,
"fee": 0,
"currency": "string",
"before_expired_at": "string",
"after_expired_at": "string",
"before_remain": 0,
"after_remain": 0,
"trigger_type": "[",
"status": "[",
"revoke_at": "string",
"revoke_remark": "string",
"created_at": "string",
"updated_at": "string"
}
],
"page": 1,
"page_size": 1,
"total_page": 0,
"total_count": 0
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
Enumerated Values
| Property | Value |
|---|---|
| trigger_type | 0 |
| trigger_type | 1 |
| status | 1 |
| status | 2 |
| status | 3 |
Order Management
GET Order List
GET /developers/order/list
Team space orders also return creator, identifying the member who placed the order. Administrators and super administrators see full contact details; other roles receive masked contact details.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | Order resource space identifier. Omit this parameter or pass an empty string for personal space. |
| page_no | query | integer | No | none |
| page_size | query | integer | No | none |
| trade_no | query | string | No | Order ID |
| start_time | query | string(date-time) | No | Start time (inclusive), for example 2024-01-01 00:00:00. |
| end_time | query | string(date-time) | No | End time (exclusive). |
| status | query | integer | No | Order status |
| product_type | query | integer | No | Product type |
| invoice | query | integer | No | Invoice status: 0=no filter, 1=invoice issued, -1=no invoice issued (eligible for a later invoice). |
| pay_fee_status | query | integer | No | Overpayment/underpayment filter: 1=overpaid, 2=underpaid. |
Details
status: Order status
| Status | Description |
|---|---|
| 0 | Awaiting payment |
| 1 | Paid |
| 2 | Canceled due to payment timeout |
| 3 | Refunded |
product_type: Product type
| Product type | Description |
|---|---|
| 3 | Balance top-up |
| 9 | Dynamic traffic package |
| 11 | Global dynamic time-based package V2 |
| 12 | Long-duration IDC traffic package |
| 13 | Static residential IP traffic package |
| 14 | Static datacenter IP package |
| 15 | Long-duration ISP traffic package |
| 16 | Static traffic package |
| 17 | Dynamic IP quantity package |
| 18 | web-scraper |
| 19 | Static IP renewal |
| 20 | Static IP replacement quota |
| 21 | Static traffic package v2 |
| 24 | Additional static traffic package |
| 25 | Static residential IP package |
| 26 | Supplementary payment. Some payment channels, such as cryptocurrency, require users to enter the amount manually. If a payment is insufficient, contact support to pay the shortfall using this product. |
| 27 | Serp |
| 28 | Video |
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| product_type | 3 |
| product_type | 9 |
| product_type | 11 |
| product_type | 12 |
| product_type | 14 |
| product_type | 16 |
| product_type | 17 |
| product_type | 18 |
| product_type | 19 |
| product_type | 21 |
| product_type | 24 |
| product_type | 25 |
| product_type | 26 |
| product_type | 27 |
| product_type | 28 |
| invoice | -1 |
| invoice | 0 |
| invoice | 1 |
| pay_fee_status | 1 |
| pay_fee_status | 2 |
Response Example
200 Response
{
"code": 0,
"message": "操作成功",
"data": {
"list": [
{
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {}
}
],
"pagination": {
"total": 0,
"page_no": 0,
"page_size": 0,
"total_pages": 0
}
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Success | Inline |
Response Schema
POST Create Order
POST /developers/order/create
Package types have different configuration requirements. Provide parameters appropriate to the package being purchased. Invalid parameters may cause order creation to fail.
examples:
Renew Static IPs
{
"pid": PACKAGE_ID, // Obtain from /developers/product
"upids": "1,2,3,4,5,6", // Use the corresponding id fields from /developers/ip/get-static-ip
"pm_id": 1 // Obtain from /developers/payment/list or /developers/payment/groups
}
Purchase Static Residential IPs
{
"pid": PACKAGE_ID, // Obtain from /developers/product
"pm_id": PAYMENT_METHOD_ID, // Obtain from /developers/payment/list or /developers/payment/groups
"region_list": "JP,15,333|DE,10,444|US,5,555" // Format: region,quantity,ASN|region,quantity,ASN (ASN is optional)
}
Purchase Static Datacenter IPs
{
"pid": PACKAGE_ID, // Obtain from /developers/product
"pm_id": PAYMENT_METHOD_ID, // Obtain from /developers/payment/list or /developers/payment/groups
"region_list": "JP,15,333|DE,10,444|US,5,555" // Format: region,quantity,ASN|region,quantity,ASN (ASN is optional)
}
Purchase Dynamic Residential Traffic
{
"pid": PACKAGE_ID, // Obtain from /developers/product
"pm_id": PAYMENT_METHOD_ID // Obtain from /developers/payment/list or /developers/payment/groups
}
Purchase Static Rotating Traffic
{
"pid": PACKAGE_ID, // Obtain from /developers/product
"pm_id": PAYMENT_METHOD_ID // Obtain from /developers/payment/list or /developers/payment/groups
}
Purchase Dynamic Unlimited Traffic
{
"pid": PACKAGE_ID, // Obtain from /developers/product
"pm_id": PAYMENT_METHOD_ID, // Obtain from /developers/payment/list or /developers/payment/groups
"product_sku_bandwidth_id": BANDWIDTH_OPTION_ID,
"product_sku_concurrency_id": CONCURRENCY_OPTION_ID
}
Top Up Balance
{
"pid": PACKAGE_ID, // Obtain from /developers/product
"pm_id": PAYMENT_METHOD_ID, // Obtain from /developers/payment/list or /developers/payment/groups
"recharge_amount": TOP_UP_AMOUNT
}
Request Body
{
"team_id": "A1b2C3d4E5f6",
"pid": 0,
"upids": "string",
"amount": 0,
"pm_id": 0,
"region_list": "string",
"coupon_sn": "string",
"use_invitation_registration_discount": true,
"renew_duration": 0,
"product_sku_bandwidth_id": 0,
"product_sku_concurrency_id": 0,
"product_sku_duration_id": 0,
"etd": 1,
"recharge_amount": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » pid | body | integer | Yes | Package ID from the id field returned by /developers/product. |
| » upids | body | string | No | Comma-separated list of package IDs to renew, from the id field returned by /developers/user-product/list or /developers/ip/get-static-ip. |
| » amount | body | number | No | Number of new packages to purchase |
| » pm_id | body | integer | Yes | Payment method ID from the id field returned by /developers/payment/list or /developers/payment/groups. |
| » region_list | body | string | No | For static IP purchases, specify the region, quantity, and ASN in the format: region,quantity,ASN |
| » coupon_sn | body | string | No | Coupon ID |
| » use_invitation_registration_discount | body | boolean | No | Whether to apply the referral registration discount |
| » renew_duration | body | integer | No | Renewal duration; optional for static IPs. |
| » product_sku_bandwidth_id | body | integer | No | Package type 11: bandwidth package ID. |
| » product_sku_concurrency_id | body | integer | No | Package type 11: concurrency package ID. |
| » product_sku_duration_id | body | integer | No | Required for package type=11: duration option ID. |
| » etd | body | integer | No | Duration multiplier, obtained from the package's extension_of_time_days. A value of 2 doubles the number of days and increases the price. |
| » recharge_amount | body | integer | No | Package type 3: top-up amount. |
Response Example
200 Response
{
"code": 0,
"message": "操作成功",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "user@example.com",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Created successfully | Inline |
Response Schema
POST Cancel Order
POST /developers/order/close
Request Body
{
"team_id": "A1b2C3d4E5f6",
"trade_no": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » trade_no | body | string | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
GET Order Details
GET /developers/order/info
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| trade_no | query | string | Yes | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": null,
"org_name": null,
"first_name": null,
"last_name": null,
"phone": null,
"email": null,
"role_type": null,
"vat_id": null,
"address_country": null,
"address_city": null,
"address_line1": null,
"address_line2": null,
"address_postal_code": null
}
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. Check the response body's code field for the operation result. | Inline |
Response Schema
GET Order Details V2
GET /developers/order/info-v2
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| order_id | query | string | Yes | Order ID encrypted by the client |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": null,
"org_name": null,
"first_name": null,
"last_name": null,
"phone": null,
"email": null,
"role_type": null,
"vat_id": null,
"address_country": null,
"address_city": null,
"address_line1": null,
"address_line2": null,
"address_postal_code": null
}
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTTP request succeeded. If the order has already been paid or canceled, the response may contain order data together with a business error code. | Inline |
Response Schema
POST Request an Invoice for a Past Order
POST /developers/order/reissue-invoice
Request Body
{
"team_id": "A1b2C3d4E5f6",
"trade_no_list": [
"string"
]
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » trade_no_list | body | [string] | Yes | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Validate Order
POST /developers/order/check
Call before creating an order to preview pricing, discounts, IP renewal details, and other information. No order is created. Parameters are identical to /developers/order/create.
Request Body
{
"team_id": "A1b2C3d4E5f6",
"pid": 0,
"upids": "string",
"amount": 1,
"pm_id": 0,
"region_list": "string",
"coupon_sn": "string",
"renew_duration": "1m",
"product_sku_bandwidth_id": 0,
"product_sku_concurrency_id": 0,
"product_sku_duration_id": 0,
"etd": 1,
"recharge_amount": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » pid | body | integer | Yes | Package ID |
| » upids | body | string | No | IP renewal: comma-separated list of user package IDs. |
| » amount | body | integer | No | Purchase quantity |
| » pm_id | body | integer | Yes | Payment method ID |
| » region_list | body | string | No | Static IP purchase region and quantity, in the format: regionID,quantity |
| » coupon_sn | body | string | No | Coupon ID |
| » renew_duration | body | string | No | IP renewal duration: 1m=1 month, 2m=2 months, em=end of next month. |
| » product_sku_bandwidth_id | body | integer | No | Required for package type=11: bandwidth option ID. |
| » product_sku_concurrency_id | body | integer | No | Required for package type=11: concurrency option ID. |
| » product_sku_duration_id | body | integer | No | Required for package type=11: duration option ID. |
| » etd | body | integer | No | Duration multiplier, obtained from the package's extension_of_time_days. |
| » recharge_amount | body | number | No | Required for package type=3: top-up amount. |
Enumerated Values
| Property | Value |
|---|---|
| » renew_duration | 1m |
| » renew_duration | 2m |
| » renew_duration | em |
Response Example
200 Response
{
"code": 0,
"message": "操作成功",
"data": {
"product_id": 0,
"amount": 0,
"discount_fee": 0.1,
"total_fee": 0.1,
"pay_fee": 0.1,
"product_type": 0,
"title": "string",
"detail": "string",
"ip_result": [
{
"ip": "string",
"price": 0.1,
"country_code": "string",
"current_time": "2019-08-24T14:15:22Z",
"renewal_time": "2019-08-24T14:15:22Z",
"country": {}
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Validation successful | Inline |
Response Schema
Payment Management
POST Initiate Order Payment
POST /developers/pay
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| trade_no | query | string | Yes | none |
| pm_id | query | integer | No | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Initiate Payment for an Unpaid Order Created in the Admin Console
POST /developers/pay/index-choose
Request Body
{
"team_id": "A1b2C3d4E5f6",
"trade_no": "string",
"pay_method": 0,
"pm_id": 0,
"trade_type": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » team_id | body | any | No | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. |
| »» anonymous | body | string | No | none |
| »» anonymous | body | TeamPublicId | No | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
| » trade_no | body | string | Yes | none |
| » pay_method | body | integer | No | none |
| » pm_id | body | integer | No | none |
| » trade_type | body | string | No | none |
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
POST Validate Payment and Preview Fees
POST /developers/pay/pay-check
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| trade_no | query | string | Yes | none |
| pm_id | query | integer | No | none |
Response Example
200 Response
{
"code": 200,
"msg": "SUCCESS",
"data": {
"trade_no": "string",
"pm_id": 0,
"pay_method": 0,
"trade_type": "string",
"country_code": "string",
"currency": "string",
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0,
"pay_method_info": {
"id": null,
"type": null,
"title": null,
"group": null,
"handling_rate": null,
"handling_fee": null,
"handling_fee_currency": null,
"handling_fee_converted": null
},
"origin": {
"pm_id": 0,
"pay_method": 0,
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0
}
},
"request_id": "string"
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Response Schema
GET Render Web Payment Page
GET /developers/pay/web-direct-pay
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | No | none |
| trade_no | query | string | Yes | none |
| pm_id | query | integer | No | none |
Response Example
200 Response
"string"
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | HTML payment page | string |
GET Payment Method List
GET /developers/payment/list
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| trade_no | query | string | No | Order number. Provide it when an order requires specific payment methods. |
| currency | query | string | No | Currency |
Response Example
200 Response
{
"code": 0,
"message": "操作成功",
"data": {
"list": [
{
"id": 0,
"title": "string",
"logo": "string",
"group": "string",
"handling_rate": 0,
"handling_fee": 0,
"disabled": false,
"min": 0,
"max": 0
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Retrieved successfully | Inline |
Response Schema
GET Payment Method List
GET /developers/payment/groups
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| trade_no | query | string | No | Order number. Provide it when an order requires specific payment methods. |
Response Example
200 Response
{
"code": 0,
"message": "操作成功",
"data": {
"list": [
{
"name": "string",
"logos": [
null
],
"items": [
null
]
}
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Retrieved successfully | Inline |
Response Schema
Marketing
GET Top-up Bonus Rate
GET /developers/activity/balance-recharge-gift-ratio
Top-up bonus rate
Response Example
200 Response
{
"code": 0,
"message": "操作成功",
"data": {
"list": [
null
]
}
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | OK | Inline |
Response Schema
Products
GET Product List
GET /developers/product
Retrieves packages available for purchase on the current site. Supports filters such as package type and validity period.
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| type | query | integer | No | Package type. See the Product.type enumeration. If omitted, returns all types. |
| parent_product_type | query | integer | No | Parent package type. Applies only when type=19 (IP renewal), to filter by product line: 14=datacenter, 25=residential. |
| time_days | query | any | No | Filter by validity period in days. Accepts a single value or an array, such as 30 or [30,90,365]. |
| show_type | query | any | No | Filter by display type. Accepts a single value or an array. |
Details
type: Package type. See the Product.type enumeration. If omitted, returns all types.
Enumerated Values
| Property | Value |
|---|---|
| parent_product_type | 14 |
| parent_product_type | 25 |
Response Example
200 Response
{
"code": 0,
"message": "操作成功",
"data": [
{
"id": 0,
"title": "string",
"type": 0,
"show_type": 0,
"status": 0,
"price": 0.1,
"usd_price": 0.1,
"price_hkd": 0.1,
"original_price": 0.1,
"original_usd_price": 0.1,
"original_price_hkd": 0.1,
"local_price": 0.1,
"local_original_price": 0.1,
"preferred_currency": "string",
"support_currencies": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"balance_value": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"time_days": 0,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
],
"region_list_id": 0,
"renew_product_list": "string",
"parent_product_type": 0,
"total_count": 0,
"remain_count": 0,
"extension_of_time_days": [
0
],
"time_days_price_rate": 0.1,
"desc": {
"subtitle": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"tip1": "string",
"tip2": "string",
"introduce": [
null
]
},
"sku": {
"bandwidth_list": [
null
],
"duration_list": [
null
],
"concurrency_list": [
null
]
}
}
]
}
Responses
| Status Code | Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | OK | Inline |
Response Schema
Data Models
ApiKeyManageRequest
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| team_id | ResourceSpaceId | false | none | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. | |
| id | integer | true | none | API Key ID |
productTypes
9
Package type: 9=dynamic residential traffic package, 11=dynamic residential IP, 14=static datacenter IP, 25=static residential IP.
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | integer | false | none | Package type: 9=dynamic residential traffic package, 11=dynamic residential IP, 14=static datacenter IP, 25=static residential IP. |
Enumerated Values
| Property | Value |
|---|---|
| anonymous | 9 |
| anonymous | 11 |
| anonymous | 14 |
| anonymous | 25 |
responseCode
200
Status code: 200=success, 3=invalid app_key.
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | integer | false | none | Status code: 200=success, 3=invalid app_key. |
SuccessResponse
{
"code": 0,
"message": "操作成功",
"data": {}
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| code | integer | false | none | none | |
| message | string | false | none | none | |
| data | object | false | none | none |
WebV1SuccessResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| code | integer | true | none | none | |
| msg | string | true | none | none | |
| data | object¦null | true | none | Response data. The specific type is defined by the endpoint. | |
| request_id | string | true | none | Request trace ID |
WebV1ErrorResponse
{
"code": 2,
"msg": "parameter error",
"data": {},
"request_id": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| code | integer | true | none | Business error code |
not
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » anonymous | any | false | none | none |
continued
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| msg | string | true | none | Error description | |
| data | object¦null | true | none | Additional error data; null when no additional data is available. | |
| request_id | string | true | none | Request trace ID |
TeamPublicId
"A1b2C3d4E5f6"
Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed.
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | string | false | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
ResourceSpaceId
"A1b2C3d4E5f6"
Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier.
Properties
oneOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | string | false | none | none |
xor
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | TeamPublicId | false | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. |
Team
{
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | TeamPublicId | true | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. | |
| name | string | true | none | Team name | |
| super_admin_user_id | integer | true | none | Super administrator's user ID | |
| status | integer | true | none | Team status: 0=disabled, 1=active, 2=dissolving, 3=dissolved. | |
| current_role | integer¦null | true | none | Current user's role in the team; null if it cannot be determined. | |
| dissolving_at | string¦null | true | none | Time dissolution started | |
| dissolved_at | string¦null | true | none | Time dissolution completed | |
| created_at | string | true | none | Creation time | |
| updated_at | string | true | none | Last update time |
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
TeamAsset
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | true | none | User package ID | |
| user_id | integer | true | none | Resource owner's user ID | |
| team_id | ResourceSpaceId | true | none | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. | |
| team_user_id | integer | true | none | User ID of the member who created the resource | |
| product_id | integer | true | none | Product ID | |
| product_type | integer | true | none | Product type | |
| parent_product_type | integer | true | none | Parent product type | |
| status | integer | true | none | Package status | |
| total_amount | integer(int64) | true | none | Total amount | |
| remain | integer(int64) | true | none | Remaining amount | |
| bandwidth | integer | false | none | Bandwidth (Mbps). Returned only for product_type=19 or 11. | |
| concurrency | integer | false | none | Concurrency. Returned only for product_type=11. | |
| expired_at | string¦null | true | none | Expiration time | |
| created_at | string | true | none | Creation time | |
| ip | string | false | none | Static IP address. Returned only for product_type=19. | |
| country_code | string | false | none | Static IP country code. Returned only for product_type=19. | |
| country_name | string | false | none | Static IP country name. Returned only for product_type=19. | |
| asn | string | false | none | Static IP ASN. Returned only for product_type=19. | |
| port | integer | false | none | Static IP proxy port. Returned only for product_type=19. |
TeamProductInfo
{
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
}
Package statistics match /web_v1/user/info. Canceled, refunded, or soft-deleted records are excluded from the summary. Except for team_id and product_types, only fields for product types supported by the current site are returned.
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| team_id | TeamPublicId | true | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. | |
| product_types | [integer] | true | none | Package types in the team resource space that are supported by the current site and have not been canceled or soft-deleted. | |
| product_residence_remain_count | integer(int64) | false | none | Remaining traffic for type 9 | |
| product_residence_total_count | integer(int64) | false | none | Total traffic for type 9 | |
| pdrue2_timestamp | integer(int64) | false | none | Latest expiration timestamp for type 11; 0 if the team has no packages of this type. | |
| remain | integer | false | none | Remaining quantity for type 17 | |
| total_amount | integer | false | none | Total quantity for type 17 | |
| scraping_remain | integer(int64) | false | none | Remaining uses for type 18 | |
| scraping_total_amount | integer(int64) | false | none | Total uses for type 18 | |
| scraping_timestamp | string | false | none | Latest expiration time for type 18; "-" if there are no packages of this type. | |
| scraping_timestamp2 | integer(int64) | false | none | Latest expiration timestamp for type 18 | |
| common_scraping_remain | integer(int64) | false | none | Remaining uses for type 29 | |
| common_scraping_total_amount | integer(int64) | false | none | Total uses for type 29 | |
| common_scraping_timestamp | string | false | none | Latest expiration time for type 29; "-" if there are no packages of this type. | |
| common_scraping_timestamp2 | integer(int64) | false | none | Latest expiration timestamp for type 29 | |
| pdidcr_count | integer | false | none | Number of active packages for type 12 | |
| pdidcr_total | integer | false | none | Total number of packages for type 12 | |
| pdidcr_traffic_remain | integer(int64) | false | none | Remaining traffic for type 12 | |
| pdidcr_traffic_total | integer(int64) | false | none | Total traffic for type 12 | |
| p_sitai_ip_count | integer | false | none | Number of active IPs for type 13 | |
| p_sitai_ip | integer | false | none | Number of active packages for type 13 | |
| p_sitai_ip_total | integer | false | none | Total number of packages for type 13 | |
| p_sitai_remain | integer(int64) | false | none | Remaining traffic for types 13/24 | |
| p_sitai_total | integer(int64) | false | none | Total traffic for types 13/24 | |
| pdidc_count | integer | false | none | Number of active packages for type 14 | |
| pdidc_total | integer | false | none | Total number of packages for type 14 | |
| pdidc_ip_count | integer | false | none | Number of active IPs for type 14 | |
| pdidc_ip_all_count | integer | false | none | Total number of IPs for type 14 | |
| pdispr_count | integer | false | none | Number of active packages for type 15 | |
| pdispr_total | integer | false | none | Total number of packages for type 15 | |
| pdispr_traffic_remain | integer(int64) | false | none | Remaining traffic for type 15 | |
| pdispr_traffic_total | integer(int64) | false | none | Total traffic for type 15 | |
| product_datacenter_isp_traffic_ip_count | integer | false | none | Number of active IPs for type 16 | |
| product_datacenter_isp_traffc_ip | integer | false | none | Number of active packages for type 16. Legacy field spelling retained for compatibility. | |
| product_datacenter_isp_traffc_ip_total | integer | false | none | Total number of packages for type 16. Legacy field spelling retained for compatibility. | |
| product_datacenter_isp_traffic_ip | integer | false | none | Number of active packages for type 16 | |
| product_datacenter_isp_traffic_ip_total | integer | false | none | Total number of packages for type 16 | |
| product_datacenter_isp_traffc_remain | integer(int64) | false | none | Remaining traffic for types 16/24. Legacy field spelling retained for compatibility. | |
| product_datacenter_isp_traffc_total | integer(int64) | false | none | Total traffic for types 16/24. Legacy field spelling retained for compatibility. | |
| product_datacenter_isp_traffic_remain | integer(int64) | false | none | Remaining traffic for types 16/24 | |
| product_datacenter_isp_traffic_total | integer(int64) | false | none | Total traffic for types 16/24 | |
| product_datacenter_isp_ip | integer | false | none | Number of active packages for type 21 or 25 | |
| product_datacenter_isp_ip_total | integer | false | none | Total number of packages for type 21 or 25 | |
| product_datacenter_isp_ip_count | integer | false | none | Number of active IPs for type 21 or 25 | |
| product_datacenter_isp_ip_all_count | integer | false | none | Total number of IPs for type 21 or 25 | |
| product_datacenter_isp_ip_traffic_remain | integer(int64) | false | none | Remaining type 24 traffic associated with type 21 | |
| product_datacenter_isp_ip_traffic_total | integer(int64) | false | none | Total type 24 traffic associated with type 21 | |
| product_agent_residence_remain_count | integer(int64) | false | none | Remaining traffic for type 22 | |
| product_agent_residence_total_count | integer(int64) | false | none | Total traffic for type 22 | |
| product_serp_remain | integer(int64) | false | none | Remaining uses for type 27 | |
| product_serp_total | integer(int64) | false | none | Total uses for type 27 | |
| product_serp_timestamp | string | false | none | Latest expiration time for type 27; "-" if there are no packages of this type. | |
| product_serp_timestamp2 | integer(int64) | false | none | Latest expiration timestamp for type 27 | |
| product_video_remain | integer(int64) | false | none | Remaining traffic for type 28 | |
| product_video_total | integer(int64) | false | none | Total traffic for type 28 | |
| product_video_timestamp | string | false | none | Latest expiration time for type 28; "-" if there are no packages of this type. | |
| product_video_timestamp2 | integer(int64) | false | none | Latest expiration timestamp for type 28 |
TeamWallet
{
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
}
Team wallet, separate from the super administrator's personal balance. Amounts use the current site's default currency, with up to 4 decimal places.
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| team_id | TeamPublicId | true | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. | |
| balance | number(double) | true | none | Current available team balance | |
| total_recharge_fee | number(double) | true | none | Unspent principal from team top-ups, excluding transfers from personal balances. | |
| updated_at | string | true | none | Time of the most recent wallet change |
TeamWalletRecord
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"operator_user_id": 0,
"creator": {
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
},
"direction": 0,
"transaction_type": 1,
"amount": 0.1,
"after_balance": 0.1,
"link_id": 0,
"request_id": "string",
"remark": "string",
"created_at": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | true | none | none | |
| team_id | TeamPublicId | true | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. | |
| operator_user_id | integer | true | none | Operator's user ID; 0 for system refunds. | |
| creator | TeamCreator | false | none | none | |
| direction | integer | true | none | 0=debit, 1=credit | |
| transaction_type | integer | true | none | 1=top-up credited, 2=transfer from personal balance, 3=balance payment, 4=refund or top-up refund deduction, 5=transfer back to personal balance. | |
| amount | number(double) | true | none | Transaction amount. The direction field indicates whether funds are added or deducted. | |
| after_balance | number(double) | true | none | Team wallet balance after the transaction | |
| link_id | integer | true | none | Related order ID; the operator's user ID for transfers from a personal balance. | |
| request_id | string | true | none | none | |
| remark | string | true | none | none | |
| created_at | string | true | none | none |
Enumerated Values
| Property | Value |
|---|---|
| direction | 0 |
| direction | 1 |
| transaction_type | 1 |
| transaction_type | 2 |
| transaction_type | 3 |
| transaction_type | 4 |
| transaction_type | 5 |
TeamCreator
{
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| user_id | integer | true | none | Operator's user ID; 0 for system operations. | |
| display_name | string | true | none | Display name, selected in this order: nickname, username, email address, phone number. | |
| nickname | string | true | none | none | |
| username | string | true | none | none | |
| string | true | none | Masked for users without administrator privileges. | ||
| phone | string | true | none | Masked for users without administrator privileges. |
TeamResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | Team | false | none | none |
TeamListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": "[",
"current_role": "[",
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» list | [Team] | true | none | none | |
| »» total | integer | true | none | none | |
| »» page | integer | true | none | none | |
| »» page_size | integer | true | none | none |
TeamMemberListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": "[",
"status": "[",
"joined_at": "string",
"nickname": "string",
"username": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» list | [TeamMember] | true | none | none | |
| »» total | integer | true | none | none | |
| »» page | integer | true | none | none | |
| »» page_size | integer | true | none | none |
TeamPersonListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"record_type": "[",
"record_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 0,
"inviter_user_id": 0,
"invite_type": "[",
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": "[",
"role": "[",
"status": "[",
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string",
"joined_at": "string",
"expired_at": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» list | [TeamPerson] | true | none | none | |
| »» total | integer | true | none | none | |
| »» page | integer | true | none | none | |
| »» page_size | integer | true | none | none |
TeamAssetResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | TeamAsset | false | none | none |
TeamProductInfoResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | TeamProductInfo | false | none | Package statistics match /web_v1/user/info. Canceled, refunded, or soft-deleted records are excluded from the summary. Except for team_id and product_types, only fields for product types supported by the current site are returned. |
TeamWalletResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | TeamWallet | false | none | Team wallet, separate from the super administrator's personal balance. Amounts use the current site's default currency, with up to 4 decimal places. |
TeamWalletRecordListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"operator_user_id": 0,
"creator": {},
"direction": "[",
"transaction_type": "[",
"amount": 0.1,
"after_balance": 0.1,
"link_id": 0,
"request_id": "string",
"remark": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» list | [TeamWalletRecord] | true | none | none | |
| »» total | integer | true | none | none | |
| »» page | integer | true | none | none | |
| »» page_size | integer | true | none | none |
TeamAssetListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» list | [TeamAsset] | true | none | none | |
| »» total | integer | true | none | none | |
| »» page | integer | true | none | none | |
| »» page_size | integer | true | none | none |
UserApiKeyMetadata
{
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | true | none | API Key ID | |
| api_key | string | true | none | The creation response contains the full key; keys are masked in team lists. | |
| team_user_id | integer | true | none | ID of the member who holds the team key; 0 for a personal key. | |
| remark | string | true | none | Remarks | |
| status | integer | true | none | 0=disabled, 1=enabled | |
| created_at | string | true | none | Creation time | |
| updated_at | string¦null | false | none | Last update time |
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
InvoiceInfo
{
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "user@example.com",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| invoice_code | string | false | none | none | |
| name | string | false | none | none | |
| org_name | string | false | none | none | |
| first_name | string | false | none | none | |
| last_name | string | false | none | none | |
| phone | string | false | none | none | |
| string(email) | false | none | none | ||
| role_type | integer | false | none | none | |
| invoice_type | integer | false | none | none | |
| vat_id | string | false | none | none | |
| tax_no | string | false | none | none | |
| address_country | string | false | none | none | |
| address_city | string | false | none | none | |
| address_line1 | string | false | none | none | |
| address_line2 | string | false | none | none | |
| address_postal_code | string | false | none | none | |
| bank_name | string | false | none | none | |
| bank_account | string | false | none | none | |
| is_def | boolean | false | none | none |
Enumerated Values
| Property | Value |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
MonthlyRenewalRequest
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| team_id | ResourceSpaceId | false | none | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. | |
| user_product_ids | any | true | none | Array of user package IDs. A comma-separated string is also accepted. |
oneOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » anonymous | [integer] | false | none | none |
xor
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » anonymous | string | false | none | none |
continued
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| user_coupon_id | integer | false | none | none | |
| coupon_sn | string | false | none | none |
TeamInvitation
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | true | none | Invitation ID | |
| team_id | TeamPublicId | true | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. | |
| inviter_user_id | integer | true | none | Inviter's user ID | |
| invitee_user_id | integer | true | none | Invitee's user ID; 0 if no registered user has been matched. | |
| invite_type | integer | true | none | Invitation type: 1=registered user, 2=email, 3=phone number. | |
| invite_country_code | integer | true | none | Phone country/region dialing code; 0 for invitations not sent to a phone number. | |
| invite_target | string | true | none | Normalized invitation target; user:{user_id} for a registered user. | |
| delivery_type | integer | true | none | Original delivery channel: 1=registered user, 2=email, 3=phone number. The original channel is retained even if an email address or phone number matches a registered user. | |
| role | integer | true | none | Target role: 2=administrator, 3=regular member. | |
| status | integer | true | none | Invitation status: 0=pending, 1=accepted, 2=rejected, 3=canceled, 4=expired. | |
| accepted_by_user_id | integer | true | none | User ID of the person who accepted the invitation; 0 if it has not been accepted. | |
| expired_at | string | true | none | Expiration time, in YYYY-MM-DD HH:mm:ss format. | |
| accepted_at | string¦null | true | none | Acceptance time | |
| rejected_at | string¦null | true | none | Rejection time | |
| cancelled_at | string¦null | true | none | Cancellation time | |
| created_at | string | true | none | Creation time, in YYYY-MM-DD HH:mm:ss format. |
Enumerated Values
| Property | Value |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
TeamMember
{
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| team_member_id | integer | true | none | Membership ID | |
| team_id | TeamPublicId | true | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. | |
| user_id | integer | true | none | Member's user ID | |
| role | integer | true | none | Role: 1=super administrator, 2=administrator, 3=regular member, 4=finance member. | |
| status | integer | true | none | Member status: 0=disabled, 1=active, 2=left, 3=removed. | |
| joined_at | string¦null | true | none | Time joined, in YYYY-MM-DD HH:mm:ss format. | |
| nickname | string | true | none | Member's nickname | |
| username | string | true | none | Member's username |
Enumerated Values
| Property | Value |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
TeamPerson
{
"record_type": "member",
"record_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 0,
"inviter_user_id": 0,
"invite_type": 0,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 0,
"role": 1,
"status": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string",
"joined_at": "string",
"expired_at": "string",
"created_at": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| record_type | string | true | none | Record type: member for an active member, invitation for a pending invitation. | |
| record_id | integer | true | none | Membership ID or invitation ID | |
| team_id | TeamPublicId | true | none | Public team identifier. The first character must be an ASCII letter, and subsequent characters must be ASCII letters or digits. Internal numeric database IDs are not exposed. | |
| user_id | integer | true | none | User ID; 0 for an unregistered invitee. | |
| inviter_user_id | integer | true | none | Inviter's user ID; 0 for member records. | |
| invite_type | integer | true | none | Invitation type; 0 for member records. | |
| invite_country_code | integer | true | none | Phone country/region dialing code; 0 for member records. | |
| invite_target | string | true | none | Invitation target; an empty string for member records. | |
| delivery_type | integer | true | none | Original delivery channel; 0 for member records. | |
| role | integer | true | none | Role: 1=super administrator, 2=administrator, 3=regular member, 4=finance member. | |
| status | integer | true | none | Always 1 for member records and 0 for invitation records. | |
| display_name | string | true | none | Unified display name, selected in this order: nickname, username, email address, phone number. Contact details are masked when viewed by regular members. | |
| nickname | string | true | none | Nickname of the member or registered invitee | |
| username | string | true | none | Username of the member or registered invitee | |
| string | true | none | Email address. Super administrators and administrators receive the full value; regular members receive a value masked with asterisks. | ||
| phone | string | true | none | Phone number. Super administrators and administrators receive the full value; regular members receive a value masked with asterisks. | |
| joined_at | string¦null | true | none | Time the member joined; null for invitation records. | |
| expired_at | string¦null | true | none | Invitation expiration time; null for member records. | |
| created_at | string | true | none | Record creation time, in YYYY-MM-DD HH:mm:ss format. |
Enumerated Values
| Property | Value |
|---|---|
| record_type | member |
| record_type | invitation |
| invite_type | 0 |
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 0 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
TeamInvitationResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | TeamInvitation | false | none | none |
TeamMemberResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | TeamMember | false | none | none |
TeamInvitationCreateResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_token": "string",
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» invitation | TeamInvitation | true | none | none | |
| »» invitation_token | string | true | none | Plaintext invitation token, retained only for compatibility with existing clients. New clients should use invitation_url directly. | |
| »» invitation_url | string(uri) | true | none | Frontend URL containing the invitation token | |
| »» notification_channels | TeamInvitationNotificationChannels | true | none | none |
TeamInvitationNotificationChannels
{
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| string | false | none | Email delivery result | ||
| sms | string | false | none | SMS delivery result | |
| site_inner_message | string | false | none | In-site message delivery result |
Enumerated Values
| Property | Value |
|---|---|
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
TeamInvitationPreviewResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_name": "string",
"role": 2,
"status": 0,
"expired_at": "string"
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» team_name | string | true | none | Team name | |
| »» role | integer | true | none | Target role | |
| »» status | integer | true | none | Invitation status | |
| »» expired_at | string | true | none | Expiration time, in YYYY-MM-DD HH:mm:ss format. |
Enumerated Values
| Property | Value |
|---|---|
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
TeamInvitationResendResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» invitation | TeamInvitation | true | none | none | |
| »» invitation_url | string(uri) | true | none | New invitation URL. The old URL is no longer valid. | |
| »» notification_channels | TeamInvitationNotificationChannels | true | none | none |
TeamInvitationListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": "[",
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": "[",
"role": "[",
"status": "[",
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
Properties
allOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | none | none |
and
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| anonymous | object | false | none | none | |
| » data | object | false | none | none | |
| »» list | [TeamInvitation] | true | none | none | |
| »» total | integer | true | none | Total number of invitations | |
| »» page | integer | true | none | Current page number | |
| »» page_size | integer | true | none | Actual number of items per page |
Order
{
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "user@example.com",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | Order ID | |
| trade_no | string | false | none | Internal order number | |
| out_trade_no | string | false | none | External order number | |
| product_id | integer | false | none | Package ID | |
| product_type | integer | false | none | Package type. See the product type enumeration. | |
| amount | integer | false | none | Purchase quantity | |
| unit_price | number(float) | false | none | Unit price | |
| total_fee | number(float) | false | none | Order total before discounts, including processing fees. | |
| goods_fee | number(float) | false | none | Product price after discounts, excluding processing fees. | |
| pay_fee | number(float) | false | none | Amount paid after discounts, including processing fees. | |
| discount_fee | number(float) | false | none | Discount amount | |
| handling_fee | number(float) | false | none | Processing fee | |
| refund_fee | number(float) | false | none | Refund amount | |
| pm_id | integer | false | none | Payment method ID (from /developers/payment/list). | |
| pm_title | string | false | none | Payment method name | |
| pm_logo | string | false | none | Payment method logo URL | |
| status | integer | false | none | Order status | |
| title | string | false | none | Package title | |
| detail | string | false | none | Package description | |
| region_desc | string | false | none | Region specification description | |
| pay_at | string(date-time) | false | none | Payment time | |
| pay_timestamp | integer | false | none | Payment timestamp | |
| created_at | string(date-time) | false | none | Creation time | |
| pay_fee_status | integer | false | none | Payment amount status: 0=exact payment, 1=overpaid, 2=underpaid. | |
| invoice | object | false | none | Invoice information (available only for orders paid online). | |
| » name | string | false | none | Full name | |
| » org_name | string | false | none | Company name | |
| » first_name | string | false | none | none | |
| » last_name | string | false | none | none | |
| » phone | string | false | none | none | |
| string(email) | false | none | none | ||
| » role_type | integer | false | none | 1=individual, 2=company | |
| » vat_id | string | false | none | Tax ID | |
| » address_country | string | false | none | none | |
| » address_city | string | false | none | none | |
| » address_line1 | string | false | none | none | |
| » address_line2 | string | false | none | none | |
| » address_postal_code | string | false | none | none |
OrderCheckResult
{
"product_id": 0,
"amount": 0,
"discount_fee": 0.1,
"total_fee": 0.1,
"pay_fee": 0.1,
"product_type": 0,
"title": "string",
"detail": "string",
"ip_result": [
{
"ip": "string",
"price": 0.1,
"country_code": "string",
"current_time": "2019-08-24T14:15:22Z",
"renewal_time": "2019-08-24T14:15:22Z",
"country": {
"name_zh_cn": "string",
"flag": "string",
"square_flag": "string"
}
}
]
}
Order validation result
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| product_id | integer | false | none | Package ID | |
| amount | integer | false | none | Count | |
| discount_fee | number(float) | false | none | Discount amount | |
| total_fee | number(float) | false | none | Order total | |
| pay_fee | number(float) | false | none | Amount paid | |
| product_type | integer | false | none | Package type | |
| title | string | false | none | Package title | |
| detail | string | false | none | Package description | |
| ip_result | [object] | false | none | Batch IP renewal results (returned only for IP renewals). | |
| » ip | string | false | none | none | |
| » price | number(float) | false | none | none | |
| » country_code | string | false | none | none | |
| » current_time | string(date-time) | false | none | none | |
| » renewal_time | string(date-time) | false | none | none | |
| » country | object | false | none | none | |
| »» name_zh_cn | string | false | none | none | |
| »» flag | string | false | none | Circular flag image URL | |
| »» square_flag | string | false | none | Square flag image URL |
Product
{
"id": 0,
"title": "string",
"type": 0,
"show_type": 0,
"status": 0,
"price": 0.1,
"usd_price": 0.1,
"price_hkd": 0.1,
"original_price": 0.1,
"original_usd_price": 0.1,
"original_price_hkd": 0.1,
"local_price": 0.1,
"local_original_price": 0.1,
"preferred_currency": "string",
"support_currencies": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"balance_value": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"time_days": 0,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
],
"region_list_id": 0,
"renew_product_list": "string",
"parent_product_type": 0,
"total_count": 0,
"remain_count": 0,
"extension_of_time_days": [
0
],
"time_days_price_rate": 0.1,
"desc": {
"subtitle": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
]
},
"sku": {
"bandwidth_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"duration_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"concurrency_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
]
}
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | Package ID | |
| title | string | false | none | Main package title | |
| type | integer | false | none | Package type | |
| show_type | integer | false | none | Display type: 1=standard, 2=recommended for large purchases, 3=not available for direct purchase (customization required), 4=trial. | |
| status | integer | false | none | Availability: 1=listed, 0=unlisted. | |
| price | number(float) | false | none | Price in CNY | |
| usd_price | number(float) | false | none | Price in USD | |
| price_hkd | number(float) | false | none | Price in HKD | |
| original_price | number(float) | false | none | Original price (CNY) | |
| original_usd_price | number(float) | false | none | Original price (USD) | |
| original_price_hkd | number(float) | false | none | Original price (HKD) | |
| local_price | number(float) | false | none | Localized price, based on preferred_currency. | |
| local_original_price | number(float) | false | none | Localized original price, based on preferred_currency. | |
| preferred_currency | string | false | none | Recommended display currency, such as usd / cny / hkd. | |
| support_currencies | string | false | none | Comma-separated list of supported currencies, such as usd,cny. | |
| flow_value | number(float) | false | none | Default traffic allowance for traffic packages (GB). | |
| flow_give | number(float) | false | none | Bonus traffic (GB). | |
| balance_give | number(float) | false | none | Bonus amount for balance top-ups | |
| balance_value | number(float) | false | none | Top-up amount | |
| time_validity | number(float) | false | none | Default validity duration for quantity-based packages | |
| time_price | number(float) | false | none | Price per IP for quantity-based packages | |
| time_days | integer | false | none | Validity period in days, such as 30/90/180/365. | |
| tip1 | string | false | none | Label description 1 | |
| tip2 | string | false | none | Label description 2 | |
| introduce | [string] | false | none | List of text descriptions | |
| region_list_id | integer | false | none | Region ID | |
| renew_product_list | string | false | none | Comma-separated list of renewable package IDs. | |
| parent_product_type | integer | false | none | Parent package type (applies when type=19): 14 or 25. | |
| total_count | integer | false | none | Total inventory; 0 means unlimited. | |
| remain_count | integer | false | none | Remaining inventory | |
| extension_of_time_days | [integer] | false | none | List of duration multipliers. An empty list or a list containing only 1 indicates that duration multipliers are not supported. | |
| time_days_price_rate | number(float) | false | none | Duration price factor: price x (1 + (multiplier - 1) x rate). | |
| desc | object | false | none | Package description details | |
| » subtitle | string | false | none | Subtitle | |
| » flow_value | number(float) | false | none | none | |
| » flow_give | number(float) | false | none | none | |
| » balance_give | number(float) | false | none | none | |
| » time_validity | number(float) | false | none | none | |
| » time_price | number(float) | false | none | none | |
| » tip1 | string | false | none | none | |
| » tip2 | string | false | none | none | |
| » introduce | [string] | false | none | none | |
| sku | object | false | none | Package options (returned when type=11). | |
| » bandwidth_list | [object] | false | none | Bandwidth option list | |
| »» id | integer | false | none | none | |
| »» value | integer | false | none | Bandwidth (Mbps) | |
| »» price | number(float) | false | none | none | |
| »» price_usd | number(float) | false | none | none | |
| »» price_hkd | number(float) | false | none | none | |
| » duration_list | [object] | false | none | Duration option list | |
| »» id | integer | false | none | none | |
| »» value | integer | false | none | Duration (days) | |
| »» price | number(float) | false | none | none | |
| »» price_usd | number(float) | false | none | none | |
| »» price_hkd | number(float) | false | none | none | |
| » concurrency_list | [object] | false | none | Concurrency option list | |
| »» id | integer | false | none | none | |
| »» value | integer | false | none | Concurrency | |
| »» price | number(float) | false | none | none | |
| »» price_usd | number(float) | false | none | none | |
| »» price_hkd | number(float) | false | none | none |
Pagination
{
"total": 0,
"page_no": 0,
"page_size": 0,
"total_pages": 0
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| total | integer | false | none | none | |
| page_no | integer | false | none | none | |
| page_size | integer | false | none | none | |
| total_pages | integer | false | none | none |
AutoRenewalConfig
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_type": 0,
"left_traffic": 0,
"left_days": 0,
"user_product_id": 1,
"product_id": 0,
"status": 0,
"currency": "string",
"agreed_price": 0,
"agreed_bandwidth_price": 0,
"agreed_concurrency_price": 0,
"bandwidth_id": 0,
"concurrency_id": 0,
"duration": 0,
"renew_product_id": 0,
"days_before_expire": 0,
"traffic_threshold": 0,
"parent_product_type": 0,
"created_at": "string",
"updated_at": "string"
}
Snapshot of the automatic renewal configuration for a single package.
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | none | |
| user_id | integer | false | none | none | |
| team_id | ResourceSpaceId | false | none | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. | |
| team_user_id | integer | false | none | none | |
| product_type | integer | false | none | none | |
| left_traffic | integer | false | none | Deprecated field | |
| left_days | integer | false | none | Deprecated field | |
| user_product_id | integer | false | none | none | |
| product_id | integer | false | none | Deprecated field | |
| status | integer | false | none | 0=disabled, 1=enabled | |
| currency | string | false | none | none | |
| agreed_price | number | false | none | Agreed total price | |
| agreed_bandwidth_price | number | false | none | Agreed bandwidth unit price for package type 11 | |
| agreed_concurrency_price | number | false | none | Agreed concurrency unit price for package type 11 | |
| bandwidth_id | integer | false | none | none | |
| concurrency_id | integer | false | none | none | |
| duration | integer | false | none | Renewal duration, in days. | |
| renew_product_id | integer | false | none | none | |
| days_before_expire | integer | false | none | none | |
| traffic_threshold | integer | false | none | Traffic threshold. The database value is in KB. | |
| parent_product_type | integer | false | none | none | |
| created_at | string | false | none | none | |
| updated_at | string | false | none | none |
Enumerated Values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
AutoRenewalLog
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"config_id": 0,
"user_product_id": 1,
"product_type": 0,
"renew_product_id": 0,
"order_id": 0,
"fee": 0,
"currency": "string",
"before_expired_at": "string",
"after_expired_at": "string",
"before_remain": 0,
"after_remain": 0,
"trigger_type": 0,
"status": 1,
"revoke_at": "string",
"revoke_remark": "string",
"created_at": "string",
"updated_at": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | true | none | none | |
| user_id | integer | true | none | none | |
| team_id | ResourceSpaceId | true | none | Public resource space identifier. For personal space, omit team_id or pass an empty string in requests; responses use an empty string. The number 0 and the string "0" are both invalid. Team space uses a 6-12 character public team identifier. | |
| team_user_id | integer | true | none | none | |
| config_id | integer | true | none | none | |
| user_product_id | integer | true | none | none | |
| product_type | integer | true | none | none | |
| renew_product_id | integer | true | none | none | |
| order_id | integer | true | none | none | |
| fee | number | true | none | none | |
| currency | string | true | none | none | |
| before_expired_at | string¦null | false | none | none | |
| after_expired_at | string¦null | false | none | none | |
| before_remain | integer(int64) | true | none | none | |
| after_remain | integer(int64) | true | none | none | |
| trigger_type | integer | true | none | 0=before expiration, 1=insufficient traffic | |
| status | integer | true | none | 1=success, 2=revoked, 3=failed | |
| revoke_at | string¦null | false | none | none | |
| revoke_remark | string | true | none | none | |
| created_at | string | true | none | none | |
| updated_at | string | true | none | none |
Enumerated Values
| Property | Value |
|---|---|
| trigger_type | 0 |
| trigger_type | 1 |
| status | 1 |
| status | 2 |
| status | 3 |
MonthlyRenewalBatch
{
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| type | string | true | none | none | |
| start_at | string | true | none | none | |
| end_at | string | true | none | none | |
| target_expired_at | string | true | none | none | |
| timezone | string | true | none | none |
Enumerated Values
| Property | Value |
|---|---|
| type | current |
| type | next |
MonthlyRenewalItem
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | Historical bill item ID | |
| user_product_id | integer | true | none | none | |
| product_id | integer | true | none | none | |
| product_type | integer | true | none | none | |
| parent_product_type | integer | true | none | none | |
| title | string | true | none | none | |
| expired_at | string | true | none | none | |
| target_expired_at | string | true | none | none | |
| renew_days | integer | true | none | none | |
| unit_month_price | number | false | none | none | |
| pay_fee | number | true | none | none | |
| currency | string | true | none | none | |
| bandwidth | integer | false | none | none | |
| bandwidth_mbsp | number | false | none | Converted bandwidth value | |
| concurrency | integer | false | none | none | |
| ip | string | false | none | Returned for static IP packages. | |
| country_code | string | false | none | Returned for static IP packages. | |
| paid_at | string¦null | false | none | none | |
| refunded_at | string¦null | false | none | none | |
| created_at | string | false | none | none | |
| updated_at | string | false | none | none |
InvoiceRecord
{
"id": 1,
"invoice_no": "string",
"invoice_amount": 0,
"invoice_download_url": "string",
"status": 0,
"remark": "string",
"order_ids": [
0
],
"created_at": 0,
"invoice_info": {
"invoice_code": "string",
"name": "string",
"org_name": "string",
"role_type": 1,
"invoice_type": 0
}
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| id | integer | true | none | none | |
| invoice_no | string | true | none | none | |
| invoice_amount | number | true | none | none | |
| invoice_download_url | string | true | none | none | |
| status | integer | true | none | none | |
| remark | string | true | none | none | |
| order_ids | [integer] | true | none | none | |
| created_at | integer | true | none | Unix timestamp | |
| invoice_info | any | true | none | none |
oneOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » anonymous | object | false | none | none | |
| »» invoice_code | string | true | none | none | |
| »» name | string | true | none | none | |
| »» org_name | string | true | none | none | |
| »» role_type | integer | true | none | none | |
| »» invoice_type | integer | true | none | none |
xor
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » anonymous | null | false | none | none |
Enumerated Values
| Property | Value |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
PayCheckData
{
"trade_no": "string",
"pm_id": 0,
"pay_method": 0,
"trade_type": "string",
"country_code": "string",
"currency": "string",
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0,
"pay_method_info": {
"id": 0,
"type": 0,
"title": "string",
"group": "string",
"handling_rate": 0,
"handling_fee": 0,
"handling_fee_currency": "usd",
"handling_fee_converted": 0
},
"origin": {
"pm_id": 0,
"pay_method": 0,
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0
}
}
Properties
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| trade_no | string | true | none | none | |
| pm_id | integer | true | none | none | |
| pay_method | integer | true | none | none | |
| trade_type | string | true | none | none | |
| country_code | string | true | none | none | |
| currency | string | true | none | none | |
| goods_fee | number | true | none | none | |
| discount_fee | number | true | none | none | |
| handling_fee | number | true | none | none | |
| pay_fee | number | true | none | none | |
| total_fee | number | true | none | none | |
| pay_method_info | any | true | none | none |
oneOf
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » anonymous | object | false | none | none | |
| »» id | integer | true | none | none | |
| »» type | integer | true | none | none | |
| »» title | string | true | none | none | |
| »» group | string | true | none | none | |
| »» handling_rate | number | true | none | none | |
| »» handling_fee | number | true | none | none | |
| »» handling_fee_currency | string | true | none | none | |
| »» handling_fee_converted | number | true | none | none |
xor
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| » anonymous | null | false | none | none |
continued
| Name | Type | Required | Constraints | Display Name | Description |
|---|---|---|---|---|---|
| origin | object | true | none | none | |
| » pm_id | integer | true | none | none | |
| » pay_method | integer | true | none | none | |
| » goods_fee | number | true | none | none | |
| » discount_fee | number | true | none | none | |
| » handling_fee | number | true | none | none | |
| » pay_fee | number | true | none | none | |
| » total_fee | number | true | none | none |