Skip to Content
upserve

HTTP endpoints

Look up adapter routes, asset downloads, webhooks and CLI health checks.

Replace APP with your application ID and CHANNEL with a configured channel. If you've mounted Upserve under /updates, prefix every path below with /updates.

Applications with authorize() check it before adapter and asset routes. Webhooks use signature verification separately. For response bodies and statuses, follow the linked integration guide.

Update protocols

AdapterMethodPathResult
TauriGET/APP/CHANNEL/tauri/latest.jsonStatic manifest or 204
TauriGET/APP/CHANNEL/tauri/:target/:arch/:currentDynamic offer or 204
ElectronGET, HEAD/APP/CHANNEL/electron/:fileYAML or a matching history asset
ElectronGET, HEAD/APP/CHANNEL/electron/:release/:fileAsset from an exact provider release ID
AndroidGET/APP/CHANNEL/android/latest.jsonManifest or 204
AndroidGET/APP/CHANNEL/android/update/:currentNewer eligible manifest or 204
GenericGET/APP/CHANNEL/generic/latestLatest release or 204
GenericGET/APP/CHANNEL/generic/update/:currentNewer release or 204
GenericGET/APP/CHANNEL/generic/versions/:versionExact version or 404
GenericGET/APP/CHANNEL/generic/releases{ releases: [...] }
GenericGET/APP/CHANNEL/generic/channels{ channels: [...] }

Current-version parameters are semantic versions, not tags. An unknown application or channel returns 404. Generic channel discovery still requires a valid channel path, but doesn't fetch releases from GitHub.

Asset downloads

GET and HEAD /APP/CHANNEL/assets/:release/:asset resolve a registered provider release ID and asset ID within the channel. Use URLs returned by the API instead of constructing them from filenames. Missing IDs return 404.

The result redirects or streams according to the delivery policy. Range and conditional responses depend on the provider; the GitHub provider supports single ranges.

Webhooks

POST /webhooks/APP is registered when the provider implements verifyWebhook. The GitHub provider requires a valid signature, a release event and the correct repository. See webhooks for setup and status codes.

Standalone health checks

The CLI adds these endpoints; createUpserve() alone doesn't:

PathResponse
GET /health/live200, { "status": "ok" }
GET /health/ready200, { "status": "ready" }, or 503, { "status": "draining" } during shutdown

These checks don't contact GitHub. Test an actual update endpoint to verify repository access and manifests.

On this page