Agent

List Tools

GET
List agent tools

Path parameters

agent_idstringRequired

Response

This endpoint returns an object
success
boolean
data
list of objectsOptional
Represents a AgentTool record
GET
1curl https://api.beta.superagent.sh/api/v1/agents/agent_id/tools \
2 -H "Authorization: Bearer <token>"
200Retrieved
1{
2 "success": true,
3 "data": [
4 {
5 "agentId": "agentId",
6 "toolId": "toolId",
7 "createdAt": "2024-01-15T09:30:00Z",
8 "updatedAt": "2024-01-15T09:30:00Z",
9 "agent": {
10 "id": "id",
11 "type": "SUPERAGENT",
12 "name": "name",
13 "description": "description",
14 "isActive": true,
15 "createdAt": "2024-01-15T09:30:00Z",
16 "updatedAt": "2024-01-15T09:30:00Z",
17 "apiUserId": "apiUserId"
18 },
19 "tool": {
20 "id": "id",
21 "name": "name",
22 "description": "description",
23 "type": "ALGOLIA",
24 "returnDirect": true,
25 "createdAt": "2024-01-15T09:30:00Z",
26 "updatedAt": "2024-01-15T09:30:00Z",
27 "apiUserId": "apiUserId"
28 }
29 }
30 ]
31}