Using the API directly is not recommended for most users. Instead, we recommend using the Python SDK.
Headers
Your Sutro API key using Key authentication scheme.Format:
Key YOUR_API_KEYExample: Authorization: Key sk_live_abc123...Response
Returns a JSON object containing a list of datasets.A list of datasets you have access to. Each dataset object contains metadata about the dataset including dataset_id, name, creation time, and other relevant information.
Code Examples
Dataset Object Fields
Each dataset in thedatasets array contains the following fields:
dataset_id: Unique identifier for the datasetname: Human-readable name of the datasetcreated_at: ISO timestamp of when the dataset was createdfile_count: Number of files in the datasettotal_size_bytes: Total size of all files in the dataset (in bytes)schema: Schema information including field names and types
Notes
- Datasets are returned in reverse chronological order (newest first)
- The response includes metadata about each dataset to help with dataset management
- Use the
dataset_idfrom this response with other dataset-related endpoints