GET
/
datasets
/
{slug}
Get a dataset by ID
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"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

The slug of the dataset to get

Example:

"my-slug"

Response

200
application/json

The dataset with its items

The response is of type object.