Get a dataset by its ID with its associated items
cURL
curl --request GET \ --url https://api.getbasalt.ai/datasets/{slug} \ --header 'Authorization: Bearer <token>'
{ "warning": "Some rows contained columns that do not exist in the dataset and were omitted.", "dataset": { "slug": "my-dataset", "name": "My Dataset", "columns": [ "input", "output" ], "rows": [ { "values": { "columnName1": "value1", "columnName2": "value2" }, "idealOutput": "This is the expected output", "metadata": { "source": "user", "context": "testing" } } ] } }
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 response is of type object.
object
Was this page helpful?