Skip to content

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 NameRequiredTypeExampleDescription
X-AccessKeyYesstringmui2W50H1j-OC4xD6PgQagSecret AccessKey

Request Parameter Description

Parameter NameRequiredTypeExampleDescription
tauriKeyYesstringa0jtz0HUwL66r7gCGvbMKQUnique identifier for Tauri application
versionNameYesstring1.0.0Version name recorded in the system
appointVersionNameNostring1.0.1Desired upgrade version name, default to latest if not provided
appointVersionCodeNoint0Desired upgrade version code, default to latest if not provided or 0
devModelKeyNostringstv1Unique device model identifier
devKeyNostringLOYlLXNy7wUnique device identifier (can use MAC address)
targetYesstringlinuxOperating system: linux, darwin, windows
archYesstringx86_64Machine 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 NameTypeExampleDescription
versionstringVersion number
notesstringUpdate description.
pub_datestringVersion release date
urlstringVersion file URL
signaturestringContent of the generated .sig file
upgradeTypeintUpgrade 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 CodecodeScenario DescriptionSolution
200Request successful, obtained version upgrade strategy
204Already the latest version
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
429429001Application task strategy request rate limitThe request rate limit for the current upgrade task configuration has been reached. Please try again later.
500500001Internal server errorPlease contact us Contact Us
500500002Internal server data validation failedPlease contact us Contact Us

toolsetlink@163.com