Agents
Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/{agent_id}/files/root HTTP/1.1
Accept: */*
No content
Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/{agent_id}/files/{uid} HTTP/1.1
Accept: */*
{
"id": 1,
"session_id": "text",
"name": "text",
"path": "text",
"is_file": true,
"parent_id": 1,
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"children": [
{
"id": 1,
"session_id": "text",
"name": "text",
"path": "text",
"is_file": true,
"parent_id": 1,
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"children": [
{
"id": 1,
"session_id": "text",
"name": "text",
"path": "text",
"is_file": true,
"parent_id": 1,
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"children": [
"[Circular Reference]"
]
}
]
}
]
}^[^:]+$^[^:]+$Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/{uid}/tags HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"name": "text",
"value": "text",
"color": "text"
}No content
^[^:]+$^[^:]+$Successful Response
Bad request
Not found
Validation Error
PUT /api/v2/agents/{agent_id}/tasks/{uid}/tags/{tag_id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"name": "text",
"value": "text",
"color": "text"
}No content
Successful Response
No content
Bad request
Not found
Validation Error
DELETE /api/v2/agents/{agent_id}/tasks/{uid}/tags/{tag_id} HTTP/1.1
Accept: */*
No content
-11falsefalsetrueidPossible values: descPossible values: Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/tasks HTTP/1.1
Accept: */*
{
"records": [
{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}
],
"limit": 1,
"page": 1,
"total_pages": 1,
"total": 1
}-11falsefalsetrueidPossible values: descPossible values: Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/{agent_id}/tasks HTTP/1.1
Accept: */*
{
"records": [
{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}
],
"limit": 1,
"page": 1,
"total_pages": 1,
"total": 1
}Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/{agent_id}/tasks/{uid} HTTP/1.1
Accept: */*
{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
No content
Bad request
Not found
Validation Error
DELETE /api/v2/agents/{agent_id}/tasks/{uid} HTTP/1.1
Accept: */*
No content
Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/jobs HTTP/1.1
Accept: */*
{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/kill_job HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 8
{
"id": 1
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/stop_job HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 8
{
"id": 1
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Executes a command on the agent. If literal is true, it will ignore the built-in aliases such a whoami or ps and execute the command directly.
falseSuccessful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/shell HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"command": "text",
"literal": false
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}falsefalseSuccessful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/module HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"module_id": "text",
"ignore_language_version_check": false,
"ignore_admin_check": false,
"options": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"modified_input": "text"
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/upload HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"path_to_file": "text",
"file_id": 1
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/download HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"path_to_file": "text"
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/sysinfo HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/update_comms HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"new_listener_id": 1
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/sleep HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"delay": 1,
"jitter": 1
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/kill_date HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"kill_date": "text"
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/working_hours HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"working_hours": "text"
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/directory_list HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"path": "text"
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/exit HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 2
{}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{agent_id}/tasks/socks HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 10
{
"port": 1
}{
"id": 1,
"input": "text",
"full_input": "text",
"output": "text",
"original_output": "text",
"user_id": 1,
"username": "text",
"agent_id": "text",
"downloads": [
{
"id": 1,
"filename": "text",
"link": "text"
}
],
"module_name": "text",
"module_options": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"task_name": "text",
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}^[^:]+$^[^:]+$Successful Response
Bad request
Not found
Validation Error
POST /api/v2/agents/{uid}/tags HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"name": "text",
"value": "text",
"color": "text"
}No content
^[^:]+$^[^:]+$Successful Response
Bad request
Not found
Validation Error
PUT /api/v2/agents/{uid}/tags/{tag_id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"name": "text",
"value": "text",
"color": "text"
}No content
Successful Response
No content
Bad request
Not found
Validation Error
DELETE /api/v2/agents/{uid}/tags/{tag_id} HTTP/1.1
Accept: */*
No content
10001descPossible values: Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/checkins HTTP/1.1
Accept: */*
{
"records": [
{
"agent_id": "text",
"checkin_time": "2026-01-01T00:00:00.000Z"
}
],
"limit": 1,
"page": 1,
"total_pages": 1,
"total": 1
}dayPossible values: Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/checkins/aggregate HTTP/1.1
Accept: */*
{
"records": [
{
"count": 1,
"checkin_time": "2026-01-01T00:00:00.000Z"
}
],
"start_date": "2026-01-01T00:00:00.000Z",
"end_date": "2026-01-01T00:00:00.000Z",
"bucket_size": "text"
}Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/{uid} HTTP/1.1
Accept: */*
{
"session_id": "text",
"name": "text",
"listener": "text",
"host_id": 1,
"hostname": "text",
"language": "text",
"language_version": "text",
"delay": 1,
"jitter": 1,
"external_ip": "text",
"internal_ip": "text",
"username": "text",
"high_integrity": true,
"process_id": 1,
"process_name": "text",
"os_details": "text",
"nonce": "text",
"checkin_time": "2026-01-01T00:00:00.000Z",
"lastseen_time": "2026-01-01T00:00:00.000Z",
"parent": "text",
"children": "text",
"servers": "text",
"profile": "text",
"functions": "text",
"kill_date": "text",
"working_hours": "text",
"lost_limit": 1,
"notes": "text",
"architecture": "text",
"archived": true,
"stale": true,
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}Successful Response
Bad request
Not found
Validation Error
PUT /api/v2/agents/{uid} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"name": "text",
"notes": "text"
}{
"session_id": "text",
"name": "text",
"listener": "text",
"host_id": 1,
"hostname": "text",
"language": "text",
"language_version": "text",
"delay": 1,
"jitter": 1,
"external_ip": "text",
"internal_ip": "text",
"username": "text",
"high_integrity": true,
"process_id": 1,
"process_name": "text",
"os_details": "text",
"nonce": "text",
"checkin_time": "2026-01-01T00:00:00.000Z",
"lastseen_time": "2026-01-01T00:00:00.000Z",
"parent": "text",
"children": "text",
"servers": "text",
"profile": "text",
"functions": "text",
"kill_date": "text",
"working_hours": "text",
"lost_limit": 1,
"notes": "text",
"architecture": "text",
"archived": true,
"stale": true,
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}falsetrueSuccessful Response
Bad request
Not found
Validation Error
GET /api/v2/agents HTTP/1.1
Accept: */*
{
"records": [
{
"session_id": "text",
"name": "text",
"listener": "text",
"host_id": 1,
"hostname": "text",
"language": "text",
"language_version": "text",
"delay": 1,
"jitter": 1,
"external_ip": "text",
"internal_ip": "text",
"username": "text",
"high_integrity": true,
"process_id": 1,
"process_name": "text",
"os_details": "text",
"nonce": "text",
"checkin_time": "2026-01-01T00:00:00.000Z",
"lastseen_time": "2026-01-01T00:00:00.000Z",
"parent": "text",
"children": "text",
"servers": "text",
"profile": "text",
"functions": "text",
"kill_date": "text",
"working_hours": "text",
"lost_limit": 1,
"notes": "text",
"architecture": "text",
"archived": true,
"stale": true,
"tags": [
{
"id": 1,
"name": "text",
"value": "text",
"label": "text",
"color": "text"
}
]
}
]
}-11descPossible values: Successful Response
Bad request
Not found
Validation Error
GET /api/v2/agents/{uid}/checkins HTTP/1.1
Accept: */*
{
"records": [
{
"agent_id": "text",
"checkin_time": "2026-01-01T00:00:00.000Z"
}
],
"limit": 1,
"page": 1,
"total_pages": 1,
"total": 1
}Last updated
Was this helpful?