Skip to content

Other APIs

Get the Self-Hosted Sun-Panel Version Number

This API can generally be used for connection testing operations and is supported from Sun-Panel v1.7.* onwards.

URL

/openapi/v1/version

Request Content

  • No request parameters required -

Successful Response

Parameter Description

Parameter NameExample ValueParameter TypeParameter Description
version1.7.0 / 1.7.0-beta24-12-20StringVersion number
versionCode1IntVersion sequence number, this parameter is not recommended for use
Content Example
javascript
{
	"code": 0,
	"data": {
		"version": "v1.7.0-beta24-12-20",
		"versionCode": 14
	},
	"msg": "OK"
}

Error Response

For specific details, click here

Released under the MIT License.