Search the docs
Menu
Updated Edit on GitHub

Server API: branding

Copy as Markdown

These routes are on the server API, port 21114 (21121 in Docker). They take an API key in X-API-Key or a sign-in token; see The HTTP API.

The branding NeoDesk Desktop and RustDesk clients get from the server.

GET /api/branding

Show the branding desktop clients apply.

Answers anyone, limited per address. In NeoDesk mode it answers NeoDesk's own branding with revision "0", whatever is stored. Answers with an ETag and Cache-Control: private, max-age=60; a request whose If-None-Match is that ETag gets 304.

On the server API, port 21114.

200: Done (application/json)

ClientBranding.

304: The branding is the one the client has

Error When
429 Too many requests from this address

POST /api/branding

Change the client branding.

The body may be up to 2 MB. Every save sets a new revision, the time in Unix milliseconds, and goes to the audit log. The answer is the branding as it is stored now.

On the server API, port 21114. Only for the role admin.

Request body, application/json:

ClientBrandingChange.

200: Done (application/json)

ClientBrandingSaved.

Error When
400 A value is not valid. The answer to an accent color, a logo or a body that is no JSON is plain text, to an email or website {"error": "..."}
401 No credential, or one that is not valid
403 The credential's role lacks the permission

GET /api/branding/stored

Show the client branding as it is stored.

Whatever the branding mode: what the console's Client Branding page edits.

On the server API, port 21114. Only for the role admin.

200: Done (application/json)

ClientBranding.

Error When
401 No credential, or one that is not valid
403 The credential's role lacks the permission

Type to search pages, sections, commands and settings.