Skip to content

Electron App - Get Version Details

API Description: Based on the client's version number, retrieve the corresponding detailed version information

📮 Request Information

Request URL

POST https://api.upgrade.toolsetlink.com/v1/electron/version

Request Headers

Parameter NameRequiredTypeExample ValueDescription
X-TimestampYesstring2025-02-17T10:34:55+08:00Request time in RFC3339 format
X-NonceYesstringfc812cc0b9b51e8cUnique random string (at least 16 characters)
X-AccessKeyYesstringmui2W50H1j-OC4xD6PgQagSecret key AccessKey
X-SignatureYesstring3603437250c2df51fc46426ac79d8995Request signature Signature Rules
Content-TypeYesstringapplication/json

🔐 Anti-Replay Attack Mechanism

  1. The server verifies that the timestamp difference between the request and server time does not exceed ±5 minutes
  2. The server checks if the Nonce value already exists (to prevent duplicate requests)

Request Body

json
{
    "electronKey": "isVZBUvkFhv6oHxk_X-D0Q",
    "versionCode": 1,
    "platform": "linux",
    "arch": "x86_64"
}

Request Body Parameters

Parameter NameRequiredTypeExample ValueDescription
electronKeyYesstringisVZBUvkFhv6oHxk_X-D0QUnique Electron app identifier
versionNameYesstring1.0.0Client version number
platformYesstringlinuxOperating system: linux, darwin, windows
archYesstringx64Machine architecture: x64, arm64

📮 Response Information

Successful Response Body

json
{
  "code": 200,
  "msg": "New version obtained",
  "data": {
    "electronKey": "isVZBUvkFhv6oHxk_X-D0Q",
    "versionName": "v2",
    "versionCode": 2,
    "platform": "linux",
    "arch": "x64",
    "description": "Description content"
  }
}

Response Body Parameters

Parameter NameTypeExample ValueDescription
electronKeystringisVZBUvkFhv6oHxk_X-D0QUnique Electron app identifier
versionNamestringv1Version name
versionCodeint1Version code
descriptionstringDescription contentDescription content

Typical Error Response Body

json
{
  "code": 404001,
  "msg": "No available version obtained",
  "docs": "No corresponding application version found, please confirm whether it has been correctly created in the system. Please refer to the documentation: http://upgrade.toolsetlink.com/upgrade/recommend/apk/app-version.html",
  "data": null
}

📊 Status Codes

HTTP Status CodeCodeScenario DescriptionSolution
200200Request successful
400400001Invalid request
400400002Parameter missing
400400003Invalid parameter
400400004Invalid header
400400005Invalid body
401401001Authentication failed
401401002Signature verification failed
404404001Resource not found
404404002Record not found
404404003Processing method not found
404404004Request not found
500500001Server internal errorPlease contact us Contact Us
500500002Server internal data verification failedPlease contact us Contact Us

toolsetlink@163.com