# API reference

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

> The routes of the console for API tokens and of the server API, with parameters, bodies, answers and permissions, from the OpenAPI description.

This reference lists the 1080 operations of NeoDesk's HTTP API: 769 routes of the console that an API token can call, and 311 routes of the server API. It is made from the API's OpenAPI 3.1 description, the same file the server serves, so the pages and the file say the same.

## Get the description

Each console serves the description of its own version at `/api/openapi.json`, without a sign-in:

```bash
curl -o openapi.json http://<console-address>:3375/api/openapi.json
```

Put your console's address in place of `<console-address>`. The command line prints the same file:

```bash
neodesk api-tokens spec > openapi.json
```

Code generators and API clients such as Postman, Bruno or Insomnia import the file. It names two servers: the console, at the address you give for `{origin}`, and the server API on port 21114 (21121 in Docker), where the paths start with `/api`.

## How to read it

- **The console** takes an API token as `Authorization: Bearer ndt_...`; see [API tokens](https://docs.neode.sk/command-line/api-tokens.md). Each of its routes names the `neodesk` command that calls it, so the [command reference](https://docs.neode.sk/command-line/reference.md) has the same route with its flags.
- **The server API** takes an API key in `X-API-Key` or a sign-in token; see [The HTTP API](https://docs.neode.sk/development/api.md#signing-in) for where it listens and who can reach it.
- "Needs" names the permission a route asks for, by its short name, as on [API tokens](https://docs.neode.sk/command-line/api-tokens.md#the-permissions). Super admins pass every check.
- Times are RFC 3339 text in UTC with milliseconds, such as `2026-12-02T14:03:05.123Z`, and a time that isn't set is `null`. Fields that end in `_at` hold one; a time you send needs its zone.
- Money is a whole number of the currency's smallest unit, such as cents for EUR, in fields that end in `_minor`, next to the currency's ISO 4217 code.
- Errors on the console are `{"success": false, "error": "...", "code": "..."}`, on the server API `{"error": "..."}`.
- Fields not listed in an answer can be there too: the schemas list the fields the server writes today, and clients should ignore the ones they don't know.

The console's routes for the browser, the devices and the RustDesk client are not in the reference; they are on [Routes without a command](https://docs.neode.sk/command-line/reference/routes-left-out.md). The server API's are on [Server API routes left out](https://docs.neode.sk/development/api-reference/left-out.md).

## How it is kept

The description is written by hand in the server's repository, `neodesk-server/openapi/openapi.json`. A test there fails when a route of the console or the server API is missing from it or when it names a route that is gone, so a change to the routes changes the description in the same pull request. The website copies the file with `node openapi-sync.ts <server-checkout>` and builds these pages from the copy.

## The console

| Area | Routes | What it is |
|---|---|---|
| [account](https://docs.neode.sk/development/api-reference/console-account.md) | 5 | You: the account and permissions the token acts with |
| [activity](https://docs.neode.sk/development/api-reference/console-activity.md) | 3 | What people did on devices: the activity agents report |
| [api-tokens](https://docs.neode.sk/development/api-reference/console-api-tokens.md) | 5 | API tokens for scripts, this command line and AI agents |
| [attestation](https://docs.neode.sk/development/api-reference/console-attestation.md) | 6 | The server's performance test and its badge |
| [audit](https://docs.neode.sk/development/api-reference/console-audit.md) | 9 | The audit log and the security overview |
| [automation](https://docs.neode.sk/development/api-reference/console-automation.md) | 21 | Alert rules, alerts, queued device commands and alert mail |
| [backups](https://docs.neode.sk/development/api-reference/console-backups.md) | 10 | Full backups, the backup schedule and restores |
| [billing](https://docs.neode.sk/development/api-reference/console-billing.md) | 28 | Billing: packages, contracts, sessions, reports and the clock |
| [branding](https://docs.neode.sk/development/api-reference/console-branding.md) | 18 | The console's look: logo, colors, profiles and fonts |
| [cdap](https://docs.neode.sk/development/api-reference/console-cdap.md) | 10 | CDAP devices, their widgets and commands |
| [cdap-studio](https://docs.neode.sk/development/api-reference/console-cdap-studio.md) | 10 | CDAP Studio flows |
| [chat](https://docs.neode.sk/development/api-reference/console-chat.md) | 27 | The chat: support conversations with the people at the computers (chat.support), the team chat between colleagues (chat.team), canned replies and the chat's settings. The messages themselves go over the chat's WebSocket. |
| [client-branding](https://docs.neode.sk/development/api-reference/console-client-branding.md) | 2 | Name, logo and links the desktop clients show |
| [companion](https://docs.neode.sk/development/api-reference/console-companion.md) | 13 | NeoDesk Companion: releases, templates, installer files and the silent install |
| [cross-platform](https://docs.neode.sk/development/api-reference/console-cross-platform.md) | 3 | What each device platform supports |
| [dashboard](https://docs.neode.sk/development/api-reference/console-dashboard.md) | 6 | The numbers on the dashboard and the server status |
| [dataguard](https://docs.neode.sk/development/api-reference/console-dataguard.md) | 7 | Data guard policies and the events devices report |
| [device-control](https://docs.neode.sk/development/api-reference/console-device-control.md) | 7 | Screen, keyboard, mouse, clipboard and terminal of a NeoDesk agent |
| [device-fields](https://docs.neode.sk/development/api-reference/console-device-fields.md) | 14 | Fields admins define for devices (customer, contract, warranty date) and their values |
| [device-files](https://docs.neode.sk/development/api-reference/console-device-files.md) | 6 | Files on a device with a NeoDesk agent |
| [device-groups](https://docs.neode.sk/development/api-reference/console-device-groups.md) | 3 | Device groups (manual and by tag) |
| [device-tokens](https://docs.neode.sk/development/api-reference/console-device-tokens.md) | 7 | Tokens that let a new device join without approval |
| [devices](https://docs.neode.sk/development/api-reference/console-devices.md) | 41 | Devices: list, details, notes, tags, bans, connection settings |
| [enrollment](https://docs.neode.sk/development/api-reference/console-enrollment.md) | 7 | Who may join, and devices waiting for approval |
| [fleet](https://docs.neode.sk/development/api-reference/console-fleet.md) | 26 | Fleet tasks, workflows, compliance and resources |
| [folders](https://docs.neode.sk/development/api-reference/console-folders.md) | 6 | Folders that sort devices |
| [generator](https://docs.neode.sk/development/api-reference/console-generator.md) | 18 | The NeoDesk Companion generator: bundles and builds |
| [guest-links](https://docs.neode.sk/development/api-reference/console-guest-links.md) | 3 | Guest links: a link that lets someone without an account connect to some devices for a while. Errors of these routes beyond the permission check are {"error": "..."}. |
| [help-requests](https://docs.neode.sk/development/api-reference/console-help-requests.md) | 3 | Help requests: a person at a computer asks for help from the NeoDesk app, and staff take and close the request. Needs chat.support. |
| [inventory](https://docs.neode.sk/development/api-reference/console-inventory.md) | 2 | Hardware and software inventory of devices |
| [invites](https://docs.neode.sk/development/api-reference/console-invites.md) | 7 | Invites that add a computer to this server |
| [keys](https://docs.neode.sk/development/api-reference/console-keys.md) | 6 | The server's key, the client settings and the QR code |
| [languages](https://docs.neode.sk/development/api-reference/console-languages.md) | 9 | The console's languages and translations |
| [mesh](https://docs.neode.sk/development/api-reference/console-mesh.md) | 16 | MeshCentral devices, groups and recordings |
| [network](https://docs.neode.sk/development/api-reference/console-network.md) | 15 | Network checks: targets, monitoring, ping and port tests |
| [organizations](https://docs.neode.sk/development/api-reference/console-organizations.md) | 26 | Organizations with their users, devices and settings |
| [pairing](https://docs.neode.sk/development/api-reference/console-pairing.md) | 5 | Pairing codes for NeoDesk Desktop and NeoDesk Companion |
| [panel-access](https://docs.neode.sk/development/api-reference/console-panel-access.md) | 5 | Which console sections and client features each account may use |
| [policies](https://docs.neode.sk/development/api-reference/console-policies.md) | 16 | Organization policies and device attestation |
| [registrations](https://docs.neode.sk/development/api-reference/console-registrations.md) | 7 | Devices that asked to register |
| [remote](https://docs.neode.sk/development/api-reference/console-remote.md) | 1 | Remote sessions in progress |
| [remote-targets](https://docs.neode.sk/development/api-reference/console-remote-targets.md) | 11 | RDP and VNC targets |
| [reports](https://docs.neode.sk/development/api-reference/console-reports.md) | 15 | Reports and trends |
| [resource-control](https://docs.neode.sk/development/api-reference/console-resource-control.md) | 11 | USB, disks, monitors and quotas on devices |
| [restart](https://docs.neode.sk/development/api-reference/console-restart.md) | 6 | Pending server restarts after a change |
| [roles](https://docs.neode.sk/development/api-reference/console-roles.md) | 10 | Roles and their permissions |
| [scaling](https://docs.neode.sk/development/api-reference/console-scaling.md) | 12 | Relay servers and scaling rules |
| [server](https://docs.neode.sk/development/api-reference/console-server.md) | 15 | The server: health, versions, resources, services and logs |
| [sessions](https://docs.neode.sk/development/api-reference/console-sessions.md) | 4 | Console sign-ins: the browsers and devices an account is signed in on |
| [settings](https://docs.neode.sk/development/api-reference/console-settings.md) | 55 | Server settings: mail, sign-in, addresses, enrollment, sessions |
| [setup-guide](https://docs.neode.sk/development/api-reference/console-setup-guide.md) | 3 | The setup guide a new install shows its first admin on the overview |
| [sites](https://docs.neode.sk/development/api-reference/console-sites.md) | 11 | Sites with their networks and relay nodes, and pinning devices and folders to a site |
| [address-books](https://docs.neode.sk/development/api-reference/console-address-books.md) | 6 | Shared address books, their members and each member's rule |
| [strategies](https://docs.neode.sk/development/api-reference/console-strategies.md) | 7 | Strategies: settings pushed to desktop clients |
| [support](https://docs.neode.sk/development/api-reference/console-support.md) | 12 | Quick support: a code or link that lets someone at a computer without NeoDesk get help once, the feedback they give afterwards, and its settings. |
| [tags](https://docs.neode.sk/development/api-reference/console-tags.md) | 3 | Device tags |
| [tenants](https://docs.neode.sk/development/api-reference/console-tenants.md) | 12 | Tenants with their devices and users |
| [tickets](https://docs.neode.sk/development/api-reference/console-tickets.md) | 14 | The helpdesk: tickets, their comments and attachments. Reading needs device.view, changing device.edit. These routes answer errors as {"error": "..."}. |
| [toolkit](https://docs.neode.sk/development/api-reference/console-toolkit.md) | 8 | Small network and text tools |
| [transfers](https://docs.neode.sk/development/api-reference/console-transfers.md) | 5 | File transfers between the console and devices |
| [updates](https://docs.neode.sk/development/api-reference/console-updates.md) | 16 | Server updates and the backups taken before them |
| [user-groups](https://docs.neode.sk/development/api-reference/console-user-groups.md) | 4 | User groups |
| [users](https://docs.neode.sk/development/api-reference/console-users.md) | 45 | Console accounts: create, change, disable, delete |
| [integrations](https://docs.neode.sk/development/api-reference/console-integrations.md) | 15 | Webhooks and notification channels: where events go, the delivery log |
| [mail-intake](https://docs.neode.sk/development/api-reference/console-mail-intake.md) | 8 | Tickets by mail: the mailboxes the server reads, their test and their log |
| [recordings](https://docs.neode.sk/development/api-reference/console-recordings.md) | 14 | Session recordings kept on the server: list, download, delete, legal holds, rules and storage |
| [maintenance](https://docs.neode.sk/development/api-reference/console-maintenance.md) | 8 | Maintenance windows that hold the alerts of devices while they are worked on |

## The server API

| Area | Routes | What it is |
|---|---|---|
| [devices](https://docs.neode.sk/development/api-reference/server-devices.md) | 38 | Devices on the server API: their records, live status, bans, IDs, tags, access policy, connection mode and telemetry, and the device lists RustDesk clients and RustDesk Pro scripts read. |
| [sign-in](https://docs.neode.sk/development/api-reference/server-sign-in.md) | 3 | Signing in to the server API with a console account, and the account the token signs in as. |
| [single sign-on](https://docs.neode.sk/development/api-reference/server-single-sign-on.md) | 6 | The LDAP and OpenID Connect settings of the server and their tests. |
| [accounts](https://docs.neode.sk/development/api-reference/server-accounts.md) | 9 | Console accounts as the server API keeps them: create, change, delete, two-factor sign-in and organizations. |
| [API keys](https://docs.neode.sk/development/api-reference/server-api-keys.md) | 3 | The API keys of the server API, sent as X-API-Key. |
| [roles](https://docs.neode.sk/development/api-reference/server-roles.md) | 6 | The roles, their built-in permissions, the stored overrides and the console sections access rules can name. |
| [user groups](https://docs.neode.sk/development/api-reference/server-user-groups.md) | 3 | User groups of console accounts. |
| [device groups and folders](https://docs.neode.sk/development/api-reference/server-device-groups-and-folders.md) | 15 | Device groups, folders and the devices an account was given one by one. |
| [settings](https://docs.neode.sk/development/api-reference/server-settings.md) | 2 | Single settings in the server API's settings table, read and written by key. |
| [health](https://docs.neode.sk/development/api-reference/server-health.md) | 3 | Whether the server answers, and its runtime figures for monitoring. |
| [keys](https://docs.neode.sk/development/api-reference/server-keys.md) | 5 | The server's public key, which clients need to trust it. |
| [organizations](https://docs.neode.sk/development/api-reference/server-organizations.md) | 30 | Organizations on the server API: their users and members, invitations, devices, settings, shared address book, saved connect passwords and policies, and the sign-in of an organization's users. |
| [branding](https://docs.neode.sk/development/api-reference/server-branding.md) | 3 | The branding NeoDesk Desktop and RustDesk clients get from the server. |
| [billing](https://docs.neode.sk/development/api-reference/server-billing.md) | 20 | Billing packages, contracts, billed sessions and work reports on the server API. |
| [strategies](https://docs.neode.sk/development/api-reference/server-strategies.md) | 6 | The server's copy of the strategies it hands to RustDesk clients, and whom they are given to. |
| [fleet](https://docs.neode.sk/development/api-reference/server-fleet.md) | 24 | Fleet management on the server API: resources of organizations, tasks that run on devices, workflows and compliance scans. The console's Fleet page passes its calls on to these routes. |
| [resource control](https://docs.neode.sk/development/api-reference/server-resource-control.md) | 7 | What devices may use: USB storage, optical drives, monitors, disks and usage limits, per device and as the server's default. The console's Resource control page passes its calls on to these routes. |
| [guest links](https://docs.neode.sk/development/api-reference/server-guest-links.md) | 5 | Guest links on the server API: making, listing and revoking them, and the routes the guest page asks with the link's token. |
| [help requests](https://docs.neode.sk/development/api-reference/server-help-requests.md) | 5 | Help requests on the server API. Its errors come as {"error": "..."} with the content type text/plain. |
| [chat](https://docs.neode.sk/development/api-reference/server-chat.md) | 9 | The chat store of the server API: messages, read marks, contacts and groups, which the console's chat reads and writes. Each route needs chat.support or chat.team. Errors come as {"error": "..."} with the content type text/plain. |
| [enrollment](https://docs.neode.sk/development/api-reference/server-enrollment.md) | 7 | The enrollment queue of the server API: devices that wait for approval, the decisions, and the enrollment mode. |
| [enrollment tokens](https://docs.neode.sk/development/api-reference/server-enrollment-tokens.md) | 7 | Tokens a device joins the server with, for one computer or for a rollout to many. |
| [pairing codes](https://docs.neode.sk/development/api-reference/server-pairing-codes.md) | 3 | Short one-time codes a person types into NeoDesk Desktop or NeoDesk Companion to configure it for this server. |
| [cdap](https://docs.neode.sk/development/api-reference/server-cdap.md) | 15 | The CDAP gateway: devices that connect over the Connected Device Access Protocol, their widgets, alerts and commands, delegations, and the WebSockets of their terminal, desktop, media and files. |
| [meshcentral](https://docs.neode.sk/development/api-reference/server-meshcentral.md) | 18 | MeshCentral support: devices that run a MeshAgent, their groups, relays for desktop, terminal, files and ports, power actions, commands, share links and recordings. |
| [remote targets](https://docs.neode.sk/development/api-reference/server-remote-targets.md) | 12 | RDP and VNC endpoints the server reaches through guacd: the targets, their saved sign-in, trusted certificates and the session tunnel. |
| [blocklist](https://docs.neode.sk/development/api-reference/server-blocklist.md) | 3 | Addresses, networks and device IDs the server refuses. |
| [audit](https://docs.neode.sk/development/api-reference/server-audit.md) | 5 | The server's audit log, and the connection, file transfer and alarm records RustDesk clients send. |
| [events](https://docs.neode.sk/development/api-reference/server-events.md) | 1 | The live stream of server events over a WebSocket. |
| [connection](https://docs.neode.sk/development/api-reference/server-connection.md) | 2 | How devices connect: peer to peer first or always through the relay, and who may start a connection. |
| [time sync](https://docs.neode.sk/development/api-reference/server-time-sync.md) | 4 | The server's clock check against NTP, which billing relies on. |
| [desktop agents](https://docs.neode.sk/development/api-reference/server-desktop-agents.md) | 3 | The management channel of NeoDesk desktop clients: which are connected, and messages to them. |
| [client api](https://docs.neode.sk/development/api-reference/server-client-api.md) | 29 | The API the RustDesk and NeoDesk desktop clients call: sign-in, the signed-in account, the address book, groups and peer keys. Its answers have the shapes the clients expect. |

## More

- [Shared schemas](https://docs.neode.sk/development/api-reference/schemas.md)

- [Server API routes left out](https://docs.neode.sk/development/api-reference/left-out.md)
