API: Agents
This section explains how to list, inspect, and update agents via the API.
List Agents
Retrieve all agents, or filter by active/inactive state.
All agents:
Active agents only:
Inactive agents only:
Get Agent Details
Fetch full information for a specific agent.
Mark Agent as Inactive
Move a connected agent to the inactive list.
Block an Agent
Block an agent from communicating with the server.
Restore an Agent
Remove the blocked state from an agent.
List Agent Command Templates
Retrieve command templates that are available for a specific agent.
List Agent Commands
Retrieve all commands that have been created for a specific agent, keyed by command ID. Each value follows the same shape as GET /api/v1/commands/{COMMAND_ID}.
Response is a JSON object of the form { "<commandId>": { ...CommandResponse }, ... }.
Update Agent
You can add or update metadata and custom properties for an agent or modify other agent aspects.
Update metadata
All fields are optional. Only the fields present in the request body are updated; omitted fields are left unchanged.
Field reference for metadata update
| Field | Type | Description |
|---|---|---|
username |
string | Username running the agent process. |
proc |
string | Process name of the agent. |
pid |
integer | Process ID. |
workingDir |
string | Working directory of the agent process. |
os |
string | Operating system. Values: WINDOWS, LINUX, BSD, MAC. |
osMajor |
integer (byte) | OS major version number. |
osMinor |
integer (byte) | OS minor version number. |
ips |
string | IP address(es) of the agent machine. |
hostname |
string | Hostname of the agent machine. |
processArch |
string | Architecture of the agent process. Values: X86, X64. |
osArch |
string | Architecture of the OS. Values: X86, X64. |
ansiCodePage |
integer | Windows ANSI code page (Windows only). |
integrity |
string | Process integrity level (e.g. System, High, Medium, Low). |
agentType |
string | Agent type / codename identifier. |
agentVersion |
integer | Agent build version number. |
customProperties |
object | Arbitrary key-value pairs attached to the agent. Replaces the existing map. |
Clear agent command queue
Info
Replace all example values with the actual data for the agent you are updating.