Skip to main content

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);
}
{
  "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

files
array
List of uploaded files.