Documentation Index
Fetch the complete documentation index at: https://docs.trelent.com/llms.txt
Use this file to discover all available pages before exploring further.
List all files you have uploaded. Use this to review available file IDs before creating jobs.
List your files
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/data-ingestion/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"
}
]
}
Response fields
List of uploaded files.
Unique file identifier to use in job submissions.
Original filename provided during upload.
When the file was uploaded.