Check for updates (admin)
GET
/api/updates/check
const url = 'http://localhost:3000/api/updates/check';const options = {method: 'GET', headers: {cookie: 'session=<session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/updates/check \ --cookie session=<session>Self-hosted/community builds only — the router is not mounted on other editions. Fetches the latest release manifest with a 5s timeout; network failure returns a graceful payload, not an error status.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Update availability
Media type application/json
object
data
object
currentVersion
required
string
latestVersion
string
hasUpdate
required
boolean
channel
string
severity
string
changelog
string
releasedAt
string
Example
{ "data": { "currentVersion": "0.1.0", "latestVersion": "0.2.0", "channel": "stable", "severity": "normal" }}Not authenticated
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}Admin access required
Media type application/json
object
error
required
string
Example
{ "error": "Not found"}