# Console: dashboard

Source: https://docs.neode.sk/development/api-reference/console-dashboard/
Last updated: 2026-12-03

> 6 operations. The numbers on the dashboard and the server status.

These routes are on the console, port 3375. They take an API token as `Authorization: Bearer ndt_...`; see [API tokens](https://docs.neode.sk/command-line/api-tokens.md).

The numbers on the dashboard and the server status.

## GET /api/dashboard/activity

Show the recent activity the dashboard lists.

The ten newest entries of the server's audit log, and when it has none, of the console's own. An account limited to some devices gets none of the server's entries about a device outside its devices.

Needs `audit.view`. `neodesk dashboard activity` calls it.

**200**: Done (`application/json`)

| Field | Type | What it is |
|---|---|---|
| `success` | `true` |  |
| `events` | array of object | at most 10 items |
| `events[].action` | string | info when the entry names none |
| `events[].action_label` | string | The action again, Event when the entry names none |
| `events[].device_id` | string | Empty when the entry is about no device |
| `events[].details` | string |  |
| `events[].timestamp` |  | When it happened, as the audit log holds it; left out when the entry has no time |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 500 | Something failed on the server (the text of errors.server_error) |

## GET /api/dashboard/client-config

Show the addresses and key a client needs to connect.

Answers what a RustDesk client needs to reach this server, as fields, as the text and the link a client imports, and as a QR code.

`neodesk dashboard client-config` calls it.

| Parameter | In | Type | What it is |
|---|---|---|---|
| `host` | query | string | The host to build the configuration for, when it is a valid one; otherwise the console picks it from the settings and the request |

**200**: Done (`application/json`)

| Field | Type | What it is |
|---|---|---|
| `success` | `true` |  |
| `data` | object |  |
| `data.server_id` | string | The ID server (signal) address |
| `data.relay_server` | string |  |
| `data.api_url` | string |  |
| `data.public_key` | string | Empty when the server has none |
| `data.has_public_key` | boolean |  |
| `data.deploy_config_string` | string | The configuration string a client imports; empty without a public key |
| `data.config_uri` | string | The link that configures a client; empty without a public key |
| `data.client_server_host` | string | The host the addresses use |
| `data.endpoint_sources` | object | Where each address came from: saved, env, query, panel_host, relay_servers, config, request, default or derived |
| `data.endpoint_sources.host` | string |  |
| `data.endpoint_sources.relay` | string |  |
| `data.endpoint_sources.api` | string |  |
| `data.env_override_active` | boolean | true when an environment setting sets a public address |
| `data.phone_unreachable_host` | boolean | true when the host is this machine's own name or address, or ends in .local, so a phone that scans the code will not reach it |
| `data.qr` | string or null | A PNG data URL of the QR code of config_uri; null without a public key |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## GET /api/server/bandwidth

Show the relay bandwidth.

The counters come from the server's statistics; each is 0 when the server gives none.

`neodesk dashboard bandwidth` calls it.

**200**: Done (`application/json`)

| Field | Type | What it is |
|---|---|---|
| `success` | `true` |  |
| `data` | object |  |
| `data.relay_active` | integer | Relay sessions running now |
| `data.relayed_sessions` | integer | Relay sessions since the server started |
| `data.transferred_bytes` | integer |  |
| `data.active_sessions` | integer |  |
| `data.throttle_hits` | integer | How often the bandwidth limit slowed a session |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## GET /api/server/status

Show whether the signal, relay and API servers run.

The signal server, the relay and the API are one program: when the API answers its health check, all three run. Only when it does not are the relay and signal ports probed, each for up to two seconds.

`neodesk dashboard status` calls it.

**200**: Done (`application/json`)

| Field | Type | What it is |
|---|---|---|
| `success` | `true` |  |
| `data` | object |  |
| `data.backend` | `"neodesk"` |  |
| `data.uptime_seconds` | integer | Seconds since the console started |
| `data.hbbs` | object | The server API |
| `data.hbbs.status` | string, one of `running`, `stopped`, `unknown` |  |
| `data.hbbr` | object | The relay |
| `data.hbbr.status` | string, one of `running`, `stopped`, `unknown` |  |
| `data.signal` | object | The signal server |
| `data.signal.status` | string, one of `running`, `stopped`, `unknown` |  |
| `data.api_port` | integer |  |
| `data.signal_port` | integer |  |
| `data.relay_port` | integer |  |
| `data.nat_port` | integer | signal_port - 1 |
| `data.ws_signal_port` | integer | signal_port + 2 |
| `data.ws_relay_port` | integer | relay_port + 2 |
| `data.client_api_port` | integer | The port of the RustDesk client API |
| `data.console_port` | integer |  |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 500 | Something failed on the server (the text of errors.server_error) |

## GET /api/stats

Show the counts of the dashboard: devices online, offline, banned.

An account limited to some devices gets the counts of those.

`neodesk dashboard stats` calls it.

**200**: Done (`application/json`)

| Field | Type | What it is |
|---|---|---|
| `success` | `true` |  |
| `data` | object |  |
| `data.devices` | object |  |
| `data.devices.total` | integer |  |
| `data.devices.online` | integer |  |
| `data.devices.offline` | integer |  |
| `data.devices.banned` | integer |  |
| `data.devices.withNotes` | integer | Devices with a note |
| `data.hbbs` | object | The server's health check (GET /api/health/detail on the server API, else GET /api/health), as it answered it. The fields after error are there only when the server answered. |
| `data.hbbs.status` | string, one of `running`, `unreachable` | running when the server API answered its health check, else unreachable |
| `data.hbbs.backend` | `"neodesk"` |  |
| `data.hbbs.error` | string | Why the health check failed; only when unreachable |
| `data.hbbs.version` | string |  |
| `data.hbbs.uptime_seconds` | integer | Seconds since the server started |
| `data.hbbs.tls` | boolean |  |
| `data.hbbs.peers_total` | integer |  |
| `data.hbbs.peers_online` | integer |  |
| `data.hbbs.peers_in_memory` | integer |  |
| `data.hbbs.peers_degraded` | integer |  |
| `data.hbbs.peers_critical` | integer |  |
| `data.hbbs.peers_udp` | integer |  |
| `data.hbbs.peers_tcp` | integer |  |
| `data.hbbs.peers_ws` | integer |  |
| `data.hbbs.relay_active_sessions` | integer |  |
| `data.hbbs.billing_pending_relays` | integer |  |
| `data.hbbs.clock_synced` | boolean |  |
| `data.hbbs.connection` | object | The connection settings of the signal server |
| `data.hbbs.connection.p2p_first` | boolean |  |
| `data.hbbs.connection.always_use_relay` | boolean |  |
| `data.hbbs.connection.p2p_fallback_ms` | integer |  |
| `data.hbbs.connection.same_nat_relay` | boolean |  |
| `data.hbbs.connection.allow_shared_nat_initiator` | boolean |  |
| `data.hbbs.connection.logged_in_only_initiator` | boolean |  |
| `data.hbbs.connection.operator_only_outbound` | boolean |  |
| `data.hbbs.connection.relay_servers` | string |  |
| `data.backend` | `"neodesk"` |  |
| `data.publicKey` | boolean | true when the server has a public key |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 500 | Something failed on the server (the text of errors.server_error) |

## POST /api/sync-status

Ask to sync the online status of devices (does nothing, kept for old scripts).

Kept for scripts made for older releases. The server keeps the online state itself, so nothing is synced and the answer always says so.

`neodesk dashboard sync` calls it.

**200**: Done (`application/json`)

| Field | Type |
|---|---|
| `success` | `true` |
| `data` | object |
| `data.synced` | `0` |
| `data.skipped` | `true` |
| `data.reason` | `"neodesk_manages_state"` |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
