Electron App First Download URL
API Description: Based on version number, operating system, and machine architecture, download the corresponding version. If no version number is provided, the latest version is used by default.
When users first download the app, they need to download the latest version. This API request URL is fixed, and if no version number is provided, it automatically obtains the latest uploaded version, making it suitable for use in fixed download buttons.
📮 Request Information
Request URL
GET https://api.upgrade.toolsetlink.com/v1/electron/download?electronKey=LOYlLXNy7wV3ySuh0XgtSg&target=linux&arch=x86_64&versionCode=1
Request Parameters
| Parameter Name | Required | Type | Example Value | Description |
|---|---|---|---|---|
| electronKey | Yes | string | a0jtz0HUwL66r7gCGvbMKQ | Unique Electron app identifier |
| target | Yes | string | linux | Operating system: linux, darwin, windows |
| arch | Yes | string | x86_64 | Machine architecture: x86_64, i686, aarch64, armv7 |
| versionCode | No | int | 1 | App version code, defaults to latest version if not provided |
📮 Response Information
Success
Directly initiates Electron version file download
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/tauri/app-version.html",
"data": null
}📊 Status Codes
| HTTP Status Code | Code | Scenario Description | Solution |
|---|---|---|---|
| 200 | Direct file download | ||
| 400 | 400001 | Invalid request | |
| 400 | 400002 | Parameter missing | |
| 400 | 400003 | Invalid parameter | |
| 400 | 400004 | Invalid header | |
| 400 | 400005 | Invalid body | |
| 401 | 401001 | Authentication failed | |
| 401 | 401002 | Signature verification failed | |
| 404 | 404001 | Resource not found | |
| 404 | 404002 | Record not found | |
| 404 | 404003 | Processing method not found | |
| 404 | 404004 | Request not found | |
| 500 | 500001 | Server internal error | Please contact us Contact Us |
| 500 | 500002 | Server internal data verification failed | Please contact us Contact Us |