List files scoped to an agent
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/agents/{id}/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/agents/{id}/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/agents/{id}/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"results": [
{
"id": 123,
"filename": "<string>",
"workspace": {
"id": 123,
"name": "<string>",
"workspace_type": "<string>"
},
"extension": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"total_pages": 123,
"tags": [
{
"id": 123,
"name": "<string>",
"auto_assigned": true
}
],
"created_by": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>"
},
"upload_session_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_types": [
{
"path": "<string>",
"label": "<string>",
"attribute_values": {}
}
],
"thumbnail": {
"status": "MISSING",
"url": "<string>"
},
"summaries": [
{
"summary": "<string>",
"language": "en"
}
],
"title": "<string>",
"status": "pending",
"status_detail": "<string>",
"status_vision": "pending",
"size": 123,
"search_details": {
"relevant_chunks": [
{
"text": "<string>",
"score": 123,
"scores": {
"text": 123,
"vision": 123,
"keyword": 123,
"multivector": 123,
"relevance": 123
},
"chunk_type": "<string>"
}
]
},
"signature": "<string>",
"parser": "<string>",
"external_metadata": {
"external_id": "<string>",
"doc_type": "<string>",
"additional_metadata": "<unknown>"
}
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Agents
List files scoped to an agent
Retrieve a paginated list of files (documents) accessible to the authenticated user.
Results are ordered by upload date (newest first) by default.
When using the search parameter, results are ordered by relevance.
Public datasets: instance admins (holding MANAGE_PUBLIC_DATASET) always see
public-dataset files. A company that has opted in (allow_access_to_public_datasets)
with a workspace-scoped API key granting a public workspace also sees its files —
filter with workspace_id to scope the list to it.
GET
/
api
/
v3
/
agents
/
{id}
/
files
List files scoped to an agent
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/agents/{id}/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/agents/{id}/files"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/agents/{id}/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"results": [
{
"id": 123,
"filename": "<string>",
"workspace": {
"id": 123,
"name": "<string>",
"workspace_type": "<string>"
},
"extension": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"total_pages": 123,
"tags": [
{
"id": 123,
"name": "<string>",
"auto_assigned": true
}
],
"created_by": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"username": "<string>"
},
"upload_session_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content_types": [
{
"path": "<string>",
"label": "<string>",
"attribute_values": {}
}
],
"thumbnail": {
"status": "MISSING",
"url": "<string>"
},
"summaries": [
{
"summary": "<string>",
"language": "en"
}
],
"title": "<string>",
"status": "pending",
"status_detail": "<string>",
"status_vision": "pending",
"size": 123,
"search_details": {
"relevant_chunks": [
{
"text": "<string>",
"score": 123,
"scores": {
"text": 123,
"vision": 123,
"keyword": 123,
"multivector": 123,
"relevance": 123
},
"chunk_type": "<string>"
}
]
},
"signature": "<string>",
"parser": "<string>",
"external_metadata": {
"external_id": "<string>",
"doc_type": "<string>",
"additional_metadata": "<unknown>"
}
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}