KontoCloud
HTTP API / Operation reference

Desktop releases

5 operations

Example values illustrate the structure. Replace them with your identifiers and data; business validation still applies to these examples.

GET

/api/desktop/download

#

get_desktop_download

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Query parameters

FieldTypeRequired
targetstringRequired
version
stringnull
Optional

Request body

No request body.

Successful response

200 · application/json

DesktopDownload

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/desktop/download?target=example' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/desktop.rs · desktop::download

GET

/api/desktop/get/{target}

#

get_desktop_get_target

Access

No user session required. Submit credentials, codes or tickets as specified below.

Path parameters

FieldTypeRequired
targetstringRequired

Request body

No request body.

Successful response

302

Call example

This route returns HTTP 302 with Location. Open it as a download link. Generic SDK clients deliberately do not follow redirects and treat 302 as an HTTP error; do not use json() for this route.

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/desktop.rs · desktop::get_public

GET

/api/desktop/latest

#

get_desktop_latest

Access

No user session required. Submit credentials, codes or tickets as specified below.

Request body

No request body.

Successful response

200 · application/json

DesktopLatest

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/desktop/latest'

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/desktop.rs · desktop::latest

GET

/api/desktop/releases

#

get_desktop_releases

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Request body

No request body.

Successful response

200 · application/json

DesktopReleases

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/desktop/releases' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/desktop.rs · desktop::releases

GET

/api/desktop/update

#

get_desktop_update

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Query parameters

FieldTypeRequired
targetstringRequired
versionstringRequired

Request body

No request body.

Successful response

200 · application/json

DesktopUpdateCheck

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/desktop/update?target=example&version=example' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

desktop_version_invalid

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/desktop.rs · desktop::update

Complete JSON types

The types below include every nested field for this area. Requiredness describes deserialization; business validation can require additional values.

DesktopDownload

FieldTypeRequired
versionstringRequired
urlstringRequired
file_namestringRequired
sizeinteger · u64Required
sha256stringRequired
expires_ininteger · u64Required

DesktopFile

FieldTypeRequired
targetstringRequired
file_namestringRequired
sizeinteger · u64Required
sha256stringRequired
signaturestringRequired

DesktopLatestFile

FieldTypeRequired
targetstringRequired
versionstringRequired
published_atstring · ISO 8601Required
file_namestringRequired
sizeinteger · u64Required
sha256stringRequired

DesktopUpdate

FieldTypeRequired
versionstringRequired
notesstringRequired
published_atstring · ISO 8601Required
fileDesktopFileRequired
urlstringRequired
expires_ininteger · u64Required

DesktopVersion

FieldTypeRequired
versionstringRequired
published_atstring · ISO 8601Required
notesstringServer default: ""Optional
filesRequired