Skip to content

File Application First Download URL

API Description: Download the corresponding version based on the version number. If no version number is provided, the latest version is used by default.

When users download an application for the first time, they need to download the latest version. This API's request address is fixed. If no version number is provided, it automatically gets the latest uploaded version, making it suitable for use in fixed download buttons.

📮 Request Information

Request URL

GET https://api.upgrade.toolsetlink.com/v1/file/download?fileKey=LOYlLXNy7wV3ySuh0XgtSg&versionCode=1

Request Parameters

Parameter NameRequiredTypeExample ValueDescription
fileKeyYesstringLOYlLXNy7wV3ySuh0XgtSgUnique file application identifier
versionCodeNoint1Application version number, defaults to latest version if not provided

📮 Response Information

Success

Direct file download starts

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/file/app-version.html",
  "data": null
}

📊 Status Codes

HTTP Status CodeCodeScenario DescriptionSolution
200Direct file download starts
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
429429001Application task strategy request rate limitThe request rate limit configured for the current upgrade task has been reached, please try again later.
500500001Server internal errorPlease contact us Contact Us
500500002Server internal data verification failedPlease contact us Contact Us

toolsetlink@163.com