Using the API directly is not recommended for most users. Instead, we recommend using the Python SDK.
Request Body
The ID of the dataset to list the files in
Headers
Your Sutro API key using Key authentication scheme.Format:
Key YOUR_API_KEY
Example: Authorization: Key sk_live_abc123...
Response
Returns a JSON object containing a list of files in the dataset, in the order they were uploaded.A list of files in the dataset, ordered by upload time. Each file object contains metadata about the file including file_name, upload time, size, and other relevant information.
Code Examples
File Object Fields
Each file in thefiles
array contains the following fields:
file_name
: Name of the file as it appears in the datasetfile_id
: Unique identifier for the fileuploaded_at
: ISO timestamp of when the file was uploadedsize_bytes
: Size of the file in bytesrow_count
: Number of rows/records in the fileschema
: Schema information including field names and types
Notes
- Files are returned in the order they were uploaded to the dataset
- This ordering is preserved and matches the order used for batch inference
- Use the
file_name
from this response with the download endpoint - All files in a dataset share the same schema structure