Compute Rental
Ctrl K

Integrations

API Documentation

GuideIntegrationsFAQSupport
PricingBlog
API DocumentationAPI DocumentationContainer Instance Pro APIElastic Deployment API Documentation

API Documentation

API Documentation

07/30/202626890 views

The API server host address is: https://api.webcal.com

Authentication

Where to find the token: Console -> Settings -> Developer Token

headers = {"Authorization": "token"}

Check Account Balance

Request

POST /api/v1/dev/wallet/balance

Request parameters: None

Response

Response parameters:

ParameterData TypeNotes
codeStringResponse code; "Success" upon success
msgStringError message; empty on success
dataResponse object

Response object parameters:

ParameterData TypeNotes
assetsIntCurrent balance. Divide by 1000 to get the amount in yuan
accumulateIntCumulative amount spent. Divided by 1000 equals yuan
voucher_balanceIntCurrent available voucher balance. Divided by 1,000 equals yuan

Examples:

{
    "code": "Success",
    "data": {
        "assets": 1000,
        "accumulate": 1000,
        "voucher_balance": 1000,
    },
    "msg": ""
}

Python Code

import requests
headers = {
    "Authorization": "您的token"
}
url = "https://api.webcal.com/api/v1/dev/wallet/balance"
response = requests.post(url, headers=headers)
print(response.content.decode())

Save the image

Switch to Dedicated NFS/File Storage

Request

POST /api/v1/dev/exclusive_nfs/mount

Request parameters:

ParameterData TypeNotes
data_centerStringSpecify the region code; refer to the appendix in the Elastic Deployment API documentation
mountableIntSet to 1 to enable dedicated NFS mounting, which disables mounting of standard file storage; set to -1 to disable dedicated NFS, which switches to standard file storage

Response

Response parameters:

ParameterData TypeNotes
codeStringResponse code; "Success" upon success
msgStringError message; empty on success

Examples:

{
    "code": "Success",
    "msg": ""
}

Python Code

import requests
headers = {
    "Authorization": "您的token"
}
body = {
    "data_center": "westDC2",
    "mountable": 1,
}
url = "https://api.webcal.com/api/v1/dev/exclusive_nfs/mount"
response = requests.post(url, json=body, headers=headers)
print(response.content.decode())
Next articleContainer Instance Pro API
Compute Rental DocsBack to Integrations

API Documentation

Documentation

Find platform setup guides, product instructions, API documentation, and answers to common operations questions.

API Documentation
Section home
07/30/2026

API Documentation

The API server host address is: https://api.webcal.com

26889 views
API Documentation
07/30/2026

Container Instance Pro API

Note: To use the Container Instance Pro API, you must complete individual identity verification or enterprise verification.

95445 views
API Documentation
07/30/2026

Elastic Deployment API Documentation

New APIs: Set Scheduling Blacklist and Get Regional GPU Inventory

90190 views