Get a dataset by its slug with its associated items
cURL
curl --request GET \ --url https://api.getbasalt.ai/datasets/{slug} \ --header 'Authorization: Bearer <token>'
{ "dataset": { "slug": "my-dataset", "name": "My Dataset", "columns": [ { "name": "input", "type": "text" }, { "name": "output", "type": "text" } ], "rows": [ { "values": { "columnName1": "value1", "columnName2": "value2" }, "idealOutput": "This is the expected output", "metadata": { "source": "user", "context": "testing" } } ] }, "warning": "Some rows contained columns that do not exist in the dataset and were omitted." }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The slug of the dataset to get
"my-slug"
The dataset with its items
The retrieved dataset
Show child attributes
Warning message about columns that were omitted because they do not exist in the dataset
"Some rows contained columns that do not exist in the dataset and were omitted."
Was this page helpful?