Agents
Get agent modes
Get all available modes for AI chat box and enabled workers
GET
/
api
/
agents
/
modes
Get agent modes
curl --request GET \
--url https://{baseUrl}/api/v1/api/agents/modesimport requests
url = "https://{baseUrl}/api/v1/api/agents/modes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/agents/modes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/agents/modes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"modes": [
{
"id": "ask",
"name": "ask",
"description": "Ask anything about security",
"color": "#6b7280",
"isAvailable": true
}
],
"workers": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastSeenAt": "2023-11-07T05:31:56Z",
"token": "<string>",
"currentJobsCount": 123,
"type": "built_in",
"scope": "cloud",
"tool": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"command": "<string>",
"category": "subdomains",
"version": "<string>",
"isBuiltIn": true,
"isInstalled": true,
"isOfficialSupport": true,
"type": "built_in",
"providerId": "<string>",
"logoUrl": "<string>",
"availableWorkersCount": 123
},
"internalNetworkId": "<string>",
"tools": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"command": "<string>",
"category": "subdomains",
"version": "<string>",
"isBuiltIn": true,
"isInstalled": true,
"isOfficialSupport": true,
"type": "built_in",
"providerId": "<string>",
"logoUrl": "<string>",
"availableWorkersCount": 123
}
],
"name": "<string>",
"os": "<string>",
"ipAddress": "<string>",
"enabledAgentMode": true,
"isOnline": true
}
]
}⌘I
Get agent modes
curl --request GET \
--url https://{baseUrl}/api/v1/api/agents/modesimport requests
url = "https://{baseUrl}/api/v1/api/agents/modes"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/agents/modes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/agents/modes"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"modes": [
{
"id": "ask",
"name": "ask",
"description": "Ask anything about security",
"color": "#6b7280",
"isAvailable": true
}
],
"workers": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"lastSeenAt": "2023-11-07T05:31:56Z",
"token": "<string>",
"currentJobsCount": 123,
"type": "built_in",
"scope": "cloud",
"tool": {
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"command": "<string>",
"category": "subdomains",
"version": "<string>",
"isBuiltIn": true,
"isInstalled": true,
"isOfficialSupport": true,
"type": "built_in",
"providerId": "<string>",
"logoUrl": "<string>",
"availableWorkersCount": 123
},
"internalNetworkId": "<string>",
"tools": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"command": "<string>",
"category": "subdomains",
"version": "<string>",
"isBuiltIn": true,
"isInstalled": true,
"isOfficialSupport": true,
"type": "built_in",
"providerId": "<string>",
"logoUrl": "<string>",
"availableWorkersCount": 123
}
],
"name": "<string>",
"os": "<string>",
"ipAddress": "<string>",
"enabledAgentMode": true,
"isOnline": true
}
]
}