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 with the v1 endpoints.
All agents:
Active agents only:
Inactive agents only:
Search Agents (v2)
Use GET /api/v2/agents for a paged, filtered list. Its items are agent
records with creation and latest-update events. See the shared
pagination response.
| Parameter | Description |
|---|---|
page, pageSize |
Zero-based page (default 0) and items per page (default 100, range 1–1000) |
status |
Repeatable: ACTIVE, INACTIVE, or BLOCKED; omitted means all statuses |
metadataOs |
Repeatable: WINDOWS, LINUX, BSD, or MAC |
metadataOsArch |
Repeatable: X86, X64, ARM32, or ARM64 |
recentListenerId |
Repeatable positive listener ID |
firstRegistrationTimeSince, firstRegistrationTimeBefore |
Inclusive lower and exclusive upper bounds for first registration |
lastCallbackTimeSince, lastCallbackTimeBefore |
Inclusive lower and exclusive upper bounds for latest callback |
sort |
Repeatable sort field, optionally followed by :ASC or :DESC |
Sort fields are GUID, FIRST_REGISTRATION_TIME, LAST_CALLBACK_TIME,
STATUS, METADATA_OS, METADATA_IPS, METADATA_OS_ARCH, and
METADATA_USERNAME. Time bounds are truncated to seconds. An equal or
reversed Since/Before pair matches no agents. Older From/To time
filters are deprecated; To includes its named second.
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
Return a blocked or inactive agent to active status.
Update Several Agent Statuses
Set several agents to the same ACTIVE, INACTIVE, or BLOCKED status in one
request. agentGuids must contain 1–500 unique UUIDs. This operation requires
the MANAGE_AGENTS authority.
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, ARM32, ARM64. |
osArch |
string | Architecture of the OS. Values: X86, X64, ARM32, ARM64. |
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.