Agent

List Datasources

GET
List agent datasources

Path parameters

agent_idstringRequired

Response

This endpoint returns an object
success
boolean
data
list of objectsOptional
Represents a AgentDatasource record
GET
1curl https://api.beta.superagent.sh/api/v1/agents/agent_id/datasources \
2 -H "Authorization: Bearer <token>"
200
Retrieved
1{
2 "success": true,
3 "data": [
4 {
5 "agentId": "agentId",
6 "datasourceId": "datasourceId",
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 "datasource": {
20 "id": "id",
21 "name": "name",
22 "type": "TXT",
23 "apiUserId": "apiUserId",
24 "createdAt": "2024-01-15T09:30:00Z",
25 "updatedAt": "2024-01-15T09:30:00Z",
26 "status": "IN_PROGRESS"
27 }
28 }
29 ]
30}