List or retrieve sources
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/sources \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/sources"
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/sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"document": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thread_id": "<string>",
"document_chunk": 123,
"vision_chunk": 123,
"certainty": 123,
"distance": 123,
"page_start": 123,
"page_end": 123,
"used_for_generation": true,
"created_at": "2023-11-07T05:31:56Z"
}
],
"web": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thread_id": "<string>",
"url": "<string>",
"title": "<string>",
"thumbnail": "<string>",
"certainty": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Sources
List or retrieve sources
Unified endpoint to list document and web sources with filtering.
GET
/
api
/
v3
/
sources
List or retrieve sources
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/sources \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/sources"
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/sources', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"document": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thread_id": "<string>",
"document_chunk": 123,
"vision_chunk": 123,
"certainty": 123,
"distance": 123,
"page_start": 123,
"page_end": 123,
"used_for_generation": true,
"created_at": "2023-11-07T05:31:56Z"
}
],
"web": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"thread_id": "<string>",
"url": "<string>",
"title": "<string>",
"thumbnail": "<string>",
"certainty": 123,
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Unique identifier of the source
Page number for pagination
Items per page (default: 20, max: 100)
Filter by source type: "document" or "web"
Filter by thread ID; verifies the source belongs to the thread
Filter by tool call ID; verifies the source belongs to the tool call
Filter by turn ID; verifies the source belongs to the turn