Skip to main content

API Reference

This reference documents the Peresvet ST controller REST API. Use it to integrate external systems, automate administrative operations, and access task, agent, network, file, report, and settings data without using the web interface.

Send every request to the controller. You do not need to contact agents directly: the controller manages them, sends commands, and collects execution results. External clients therefore use a single controller API, while the DPDK layer and agent network interfaces remain outside the public contract.

Paths on operation pages are relative to the OpenAPI basePath: /v1. Add this prefix to the controller address when making a request.

How to use this reference

The API section begins with this overview and continues into collections for users, tasks, agents, networks, files, and other operation groups. Collections and operations appear in the right-hand navigation, while the main page area shows the method, path, parameters, and responses for the selected operation.

Each operation includes its request contract, a parameter table, possible responses, and an example data structure. Types and descriptions come from the controller's Swagger annotations, so this reference reflects the controller's actual contract.

Basic workflow

First, create a session through the authentication endpoint. On success, the controller sets HttpOnly cookies that your browser or HTTP client must include in subsequent requests.

POST /v1/auth/login HTTP/1.1
Host: controller.example
Content-Type: application/json

{"email":"admin@example.com","password":"password"}

After authentication, use the same session when requesting controller resources.

GET /v1/tasks?count=10&page=1&key=id&order=desc HTTP/1.1
Host: controller.example
Cookie: accessToken=...

API collections

Section
Tag
Endpoints
Systemmeta3
Authenticationauth4
Usersusers11
Groupsgroups6
Agentsagents17
Taskstasks43
Task templatestask-templates6
Networksnetworks12
Certificatescertificates6
MAC addressesmacs6
Filesfiles15
Tunnelstunnels9
Applicationsapplications10
Malwaremalware13
CVEcve11
Notificationsnotifications3
Settingssettings2
AI administrationai-admin5
AI Gatewayai-gateway29
Compromised hostscompromised-host1
Dictionariesdictionaries6
Projectsprojects7