curl --request GET \
--url https://paradigm.lighton.ai/api/v3/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/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/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2",
"results": [
[
{
"id": 124,
"filename": "customer_nda.pdf",
"workspace": {
"id": 3,
"name": "Legal Team",
"workspace_type": "shared"
},
"summaries": [],
"title": "Customer NDA",
"extension": "pdf",
"status": "embedded",
"status_vision": "embedded",
"created_at": "2024-01-14T14:20:00Z",
"updated_at": "2024-01-14T14:22:00Z",
"total_pages": 8,
"tags": [
{
"id": 7,
"name": "confidential",
"auto_assigned": true
},
{
"id": 12,
"name": "Q1-2026",
"auto_assigned": false
}
],
"created_by": {
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"username": "jdoe"
},
"external_metadata": {
"external_id": "legal-doc-456789",
"doc_type": "nda",
"additional_metadata": {
"external_url": "https://contracts.example.com/legal/customer-nda"
}
},
"content_types": [
{
"path": "legal:contract:nda",
"label": "Non-Disclosure Agreement"
}
],
"thumbnail": {
"status": "READY",
"url": "/api/v3/files/124/thumbnail"
}
},
{
"id": 123,
"filename": "design_doc.pdf",
"workspace": {
"id": 1,
"name": "Engineering Team",
"workspace_type": "shared"
},
"summaries": [
{
"language": "en",
"summary": "This document outlines Q4 initiatives..."
}
],
"title": "Retrieval Service Design Document",
"extension": "pdf",
"status": "embedded",
"status_vision": "embedded",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:35:00Z",
"total_pages": 25,
"size": 2458624,
"tags": [
{
"id": 10,
"name": "Project X",
"auto_assigned": false
}
],
"created_by": {
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"username": "jdoe"
},
"content_types": [],
"thumbnail": {
"status": "READY",
"url": "/api/v3/files/123/thumbnail"
}
}
]
]
}List files accessible to the authenticated user
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.
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/files \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/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/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2",
"results": [
[
{
"id": 124,
"filename": "customer_nda.pdf",
"workspace": {
"id": 3,
"name": "Legal Team",
"workspace_type": "shared"
},
"summaries": [],
"title": "Customer NDA",
"extension": "pdf",
"status": "embedded",
"status_vision": "embedded",
"created_at": "2024-01-14T14:20:00Z",
"updated_at": "2024-01-14T14:22:00Z",
"total_pages": 8,
"tags": [
{
"id": 7,
"name": "confidential",
"auto_assigned": true
},
{
"id": 12,
"name": "Q1-2026",
"auto_assigned": false
}
],
"created_by": {
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"username": "jdoe"
},
"external_metadata": {
"external_id": "legal-doc-456789",
"doc_type": "nda",
"additional_metadata": {
"external_url": "https://contracts.example.com/legal/customer-nda"
}
},
"content_types": [
{
"path": "legal:contract:nda",
"label": "Non-Disclosure Agreement"
}
],
"thumbnail": {
"status": "READY",
"url": "/api/v3/files/124/thumbnail"
}
},
{
"id": 123,
"filename": "design_doc.pdf",
"workspace": {
"id": 1,
"name": "Engineering Team",
"workspace_type": "shared"
},
"summaries": [
{
"language": "en",
"summary": "This document outlines Q4 initiatives..."
}
],
"title": "Retrieval Service Design Document",
"extension": "pdf",
"status": "embedded",
"status_vision": "embedded",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:35:00Z",
"total_pages": 25,
"size": 2458624,
"tags": [
{
"id": 10,
"name": "Project X",
"auto_assigned": false
}
],
"created_by": {
"id": 42,
"first_name": "Jane",
"last_name": "Doe",
"username": "jdoe"
},
"content_types": [],
"thumbnail": {
"status": "READY",
"url": "/api/v3/files/123/thumbnail"
}
}
]
]
}Authorizations
Query Parameters
[Facet] Filter by attribute value. Repeated attribute entries are ANDed; values inside one entry are ORed with | (pipe is the recommended OR delimiter — comma also works but can be ambiguous with multi-key values). Example: attribute=fiscal_year:2024|2025&attribute=status:active → (fiscal_year 2024 OR 2025) AND (status active). Formats: name (has any value), name:value (exact), name:>value / name:>=value (gt/gte), name:<value / name:<=value (lt/lte), name:prefix* (starts with, case-insensitive), name:*text* (contains, case-insensitive), name:a|b (OR). Smart dates: filing_date:2023 (year), filing_date:2023-06 (month). Type-aware: booleans (true/false), multi-select (membership check). Scoped: content_type(legal:compliance).regulation:AML.