Datasets
List Datasets visible to the caller
Returns Datasets whose source sessions belong to workspaces the caller can access, newest first.
GET
/
v1
/
datasets
List Datasets visible to the caller
curl --request GET \
--url https://api.lusor.ai/v1/datasets \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/datasets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/datasets"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session_id": "<string>",
"run_id": "<string>",
"name": "<string>",
"output": {
"schema": [
"<string>"
],
"rows": [
{}
]
},
"row_count": 2,
"source": "session",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?
⌘I
List Datasets visible to the caller
curl --request GET \
--url https://api.lusor.ai/v1/datasets \
--header 'X-Api-Key: <api-key>'const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.lusor.ai/v1/datasets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lusor.ai/v1/datasets"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"session_id": "<string>",
"run_id": "<string>",
"name": "<string>",
"output": {
"schema": [
"<string>"
],
"rows": [
{}
]
},
"row_count": 2,
"source": "session",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"message": "<string>"
}
