Skip to content

Windows Application Version Details

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

📮Request Information

Request URL

POST https://api.upgrade.toolsetlink.com/v1/win/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. Server verifies that the timestamp difference with server time does not exceed ±5 minutes
  2. Server checks if the Nonce value already exists (to prevent duplicate requests)

Request Body

json
{
    "winKey": "isVZBUvkFhv6oHxk_X-D0Q",
    "versionCode": 1,
    "arch": "x64"
}

Request Body Parameters

Parameter NameRequiredTypeExample ValueDescription
winKeyYesstringisVZBUvkFhv6oHxk_X-D0QWindows application unique identifier
versionCodeYesint1Client version code
archYesstringx64Machine architecture: x64, arm64

📮Response Information

Success Response Body

json
{
  "code": 200,
  "msg": "Version details found",
  "data": {
    "winKey": "isVZBUvkFhv6oHxk_X-D0Q",
    "packageName": "com.a.c",
    "versionName": "v2",
    "versionCode": 2,
    "description": "Description content",
    "pubDate": "2024-02-17T10:34:55+08:00",
    "arch": "x64",
    "releaseNote": "Release note content",
    "changelog": "Changelog content",
    "upgradeMode": 1,
    "forcedUpgradeVersionCode": 1,
    "silentUpgradeVersionCode": 1,
    "target": "win",
    "releaseUrl": "https://example.com/windows-app-v2.exe",
    "updateType": "manual",
    "md5": "md5 value",
    "sha256": "sha256 value",
    "downloadUrl": "https://example.com/windows-app-v2.exe",
    "fileSize": 1024000,
    "downloadTimes": 100,
    "isPreRelease": false
  }
}

Response Body Parameters

Parameter NameTypeExample ValueDescription
winKeystringisVZBUvkFhv6oHxk_X-D0QWindows application unique identifier
packageNamestringcom.a.cWindows application package name
versionNamestringv2Version name
versionCodeint2Version code
descriptionstringDescription contentDescription content
pubDatestring2024-02-17T10:34:55+08:00Publication date
archstringx64Machine architecture
releaseNotestringRelease note contentRelease note
changelogstringChangelog contentChangelog
upgradeModeint1Upgrade mode
forcedUpgradeVersionCodeint1Forced upgrade version code
silentUpgradeVersionCodeint1Silent upgrade version code
targetstringwinTarget platform
releaseUrlstringhttps://example.com/windows-app-v2.exeRelease URL
updateTypestringmanualUpdate type
md5stringmd5 valueMD5 checksum
sha256stringsha256 valueSHA256 checksum
downloadUrlstringhttps://example.com/windows-app-v2.exeDownload URL
fileSizeint1024000File size (bytes)
downloadTimesint100Download count
isPreReleasebooleanfalseIs pre-release

Typical Error Response Body

json
{
  "code": 404001,
  "msg": "No available version found",
  "docs": "No corresponding application version found. Please confirm if 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
200200Version details found
2000Current version is latest
400400001Invalid request
400400002Missing parameters
400400003Invalid parameters
400400004Invalid headers
400400005Invalid request body
401401001Authentication failed
401401002Signature verification failed
404404001Resource not found
404404002Record not found
404404003Processing method not found
404404004Request not found
500500001Internal server errorPlease contact us Contact Us
500500002Internal server data validation failedPlease contact us Contact Us

toolsetlink@163.com