List your files
- TypeScript
- Python
- cURL
Response fields
List of uploaded files.
{
"files": [
{
"id": "e2d4c3d2-41c0-4a6b-a387-580807fb5ad2",
"filename": "document.pdf",
"created_at": "2024-12-01T10:00:00Z"
},
{
"id": "b4c77b85-3ad4-4cb0-8d06-5ff8ff5df2ad",
"filename": "presentation.pptx",
"created_at": "2024-12-01T11:30:00Z"
}
]
}
View your uploaded files and their metadata.
import { DataIngestionClient } from "@trelent/data-ingestion";
const client = new DataIngestionClient();
const response = await client.listFiles();
for (const file of response.files) {
console.log(file.id, file.filename, file.created_at);
}
from trelent_data_ingestion_sdk import DataIngestionClient
client = DataIngestionClient()
response = client.list_files()
for file in response.files:
print(file.id, file.filename, file.created_at)
curl -X GET "${API_URL}/v1/files/" \
-H "Authorization: Bearer ${API_TOKEN}"
{
"files": [
{
"id": "e2d4c3d2-41c0-4a6b-a387-580807fb5ad2",
"filename": "document.pdf",
"created_at": "2024-12-01T10:00:00Z"
},
{
"id": "b4c77b85-3ad4-4cb0-8d06-5ff8ff5df2ad",
"filename": "presentation.pptx",
"created_at": "2024-12-01T11:30:00Z"
}
]
}