Datasource

List

GET
List all datasources

Query parameters

skipintegerOptional
takeintegerOptional

Response

This endpoint returns an object
success
boolean
total_pages
integer
data
list of objectsOptional
Represents a Datasource record
GET
1curl https://api.beta.superagent.sh/api/v1/datasources \
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 "type": "TXT",
9 "apiUserId": "apiUserId",
10 "createdAt": "2024-01-15T09:30:00Z",
11 "updatedAt": "2024-01-15T09:30:00Z",
12 "status": "IN_PROGRESS",
13 "content": "content",
14 "description": "description",
15 "url": "url",
16 "apiUser": {
17 "id": "id",
18 "createdAt": "2024-01-15T09:30:00Z",
19 "updatedAt": "2024-01-15T09:30:00Z"
20 },
21 "metadata": "metadata",
22 "datasources": [
23 {
24 "agentId": "agentId",
25 "datasourceId": "datasourceId",
26 "createdAt": "2024-01-15T09:30:00Z",
27 "updatedAt": "2024-01-15T09:30:00Z"
28 }
29 ],
30 "vectorDb": {
31 "id": "id",
32 "provider": "PINECONE",
33 "createdAt": "2024-01-15T09:30:00Z",
34 "updatedAt": "2024-01-15T09:30:00Z",
35 "apiUserId": "apiUserId"
36 },
37 "vectorDbId": "vectorDbId"
38 }
39 ]
40}