Tauri Application Upgrade Strategy API
API Description: Based on the client's version number, obtain the corresponding upgrade strategy, compatible with the file upgrade interface response information provided by Tauri official. tauri dynamic update
📮Request Information
Request URL
GET https://api.upgrade.toolsetlink.com/v1/tauri/upgrade?tauriKey=a0jtz0HUwL66r7gCGvbMKQ&versionName=1.0.0&appointVersionCode=0&devModelKey=&devKey=&target=linux&arch=x86_64
Request Headers
| Parameter Name | Required | Type | Example | Description |
|---|---|---|---|---|
| X-AccessKey | Yes | string | mui2W50H1j-OC4xD6PgQag | Secret AccessKey |
Request Parameter Description
| Parameter Name | Required | Type | Example | Description |
|---|---|---|---|---|
| tauriKey | Yes | string | a0jtz0HUwL66r7gCGvbMKQ | Unique identifier for Tauri application |
| versionName | Yes | string | 1.0.0 | Version name recorded in the system |
| appointVersionName | No | string | 1.0.1 | Desired upgrade version name, default to latest if not provided |
| appointVersionCode | No | int | 0 | Desired upgrade version code, default to latest if not provided or 0 |
| devModelKey | No | string | stv1 | Unique device model identifier |
| devKey | No | string | LOYlLXNy7w | Unique device identifier (can use MAC address) |
| target | Yes | string | linux | Operating system: linux, darwin, windows |
| arch | Yes | string | x86_64 | Machine architecture: x86_64, i686, aarch64, armv7 |
📮Response Information
Success Response Body
json
{
"version": "2.0.0",
"notes": "Upgrade notification",
"pub_date": "2025-05-26T20:40:30+08:00",
"url": "https://upgradelink.oss-cn-beijing.aliyuncs.com/upgrade/2025-05-26/other/01970c9b-be88-70db-b4bd-92303c8d1fef.json?x-oss-credential=LTAI5tA5mxKLLfa6FxPoTkqE%2F20250527%2Fcn-beijing%2Foss%2Faliyun_v4_request&x-oss-date=20250527T135625Z&x-oss-expires=600&x-oss-signature=fc961fcd21ecd763946ec123be1ef0504713f2189036fe57b687ed2917b570e8&x-oss-signature-version=OSS4-HMAC-SHA256",
"signature": "",
"upgradeType": 1
}Response Body Parameter Description
The returned content is consistent with the official Tauri dynamic update interface. tauri dynamic update
| Parameter Name | Type | Example | Description |
|---|---|---|---|
| version | string | Version number | |
| notes | string | Update description. | |
| pub_date | string | Version release date | |
| url | string | Version file URL | |
| signature | string | Content of the generated .sig file | |
| upgradeType | int | Upgrade prompt type: 1: Prompt upgrade; 2: Silent upgrade; 3: Forced upgrade |
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/tauri/app-version.html",
"data": null
}📊Status Codes
| HTTP Status Code | code | Scenario Description | Solution |
|---|---|---|---|
| 200 | Request successful, obtained version upgrade strategy | ||
| 204 | Already the latest version | ||
| 400 | 400001 | Invalid request | |
| 400 | 400002 | Missing parameters | |
| 400 | 400003 | Invalid parameters | |
| 400 | 400004 | Invalid headers | |
| 400 | 400005 | Invalid request 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 | |
| 429 | 429001 | Application task strategy request rate limit | The request rate limit for the current upgrade task configuration has been reached. Please try again later. |
| 500 | 500001 | Internal server error | Please contact us Contact Us |
| 500 | 500002 | Internal server data validation failed | Please contact us Contact Us |