Get Dataset

Retrieve the Dataset with the given ID.

Unless include_datapoints is set to true, the response will not include the Datapoints. Use the List Datapoints endpoint (GET /{id}/datapoints) to efficiently retrieve Datapoints for a large Dataset.

By default, the deployed version of the Dataset is returned. Use the query parameters version_id or environment to target a specific version of the Dataset.

Path parameters

idstringRequired
Unique identifier for Dataset.

Headers

X-API-KEYstringRequired

Query parameters

version_idstringOptional
A specific Version ID of the Dataset to retrieve.
environmentstringOptional
Name of the Environment to retrieve a deployed Version from.
include_datapointsbooleanOptionalDefaults to false

If set to true, include all Datapoints in the response. Defaults to false. Consider using the paginated List Datapoints endpoint instead.

Response

Successful Response
pathstring
Path of the Dataset, including the name, which is used as a unique identifier.
idstring

Unique identifier for the Dataset. Starts with ds_.

namestring
Name of the Dataset, which is used as a unique identifier.
version_idstring

Unique identifier for the specific Dataset Version. If no query params provided, the default deployed Dataset Version is returned. Starts with dsv_.

created_atdatetime
updated_atdatetime
last_used_atdatetime
datapoints_countinteger
The number of Datapoints in this Dataset version.
directory_idstring or null
ID of the directory that the file is in on Humanloop.
descriptionstring or null
Description of the Dataset.
schemamap from strings to any or null
The JSON schema for the File.
readmestring or null
Long description of the file.
tagslist of strings or null
List of tags associated with the file.
type"dataset" or nullDefaults to dataset
environmentslist of objects or null
The list of environments the Dataset Version is deployed to.
created_byany or null
The user who created the Dataset.
version_namestring or null
Unique name for the Dataset version. Version names must be unique for a given Dataset.
version_descriptionstring or null
Description of the version, e.g., the changes made in this version.
datapointslist of objects or null
The list of Datapoints in this Dataset version. Only provided if explicitly requested.
attributesmap from strings to any or null
Additional fields to describe the Dataset. Helpful to separate Dataset versions from each other with details on how they were created or used.

Errors