Tool

List

GET
List all tools

Query parameters

skipintegerOptional
takeintegerOptional

Response

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