Datasets

Datasets

Get all datasets

Returns all the existing datasets in a client.

URL

Request

Path parameters
Parameter name
Parameter type
Description
clientId
string
Client Id obtained from Deepen AI
Response
Returns a json with each field representing a dataset Id and its corresponding value being a DatasetResource.

Get all datasetIds

Returns all the existing datasetIds in a client.
Request
Path parameters
Parameter name
Parameter type
Description
clientId
string
Client Id obtained from Deepen AI
Response
Returns a json with key “datasets” and value as a list of dataset details object.
Dataset details object has field names ‘dataset_id’ and ‘dataset_name’ with corresponding values.
Response Object:
{“datasets”:
[
{“dataset_id”: “testdatasetId1”, “dataset_name”:”testdatasetname1”},
{“dataset_id”: “testdatasetId1”, “dataset_name”:”testdatasetname1”}
]
}

Get dataset

Get the metadata related to a dataset.
URL
Request
Path parameters
Parameter name
Parameter type
Description
datasetId
string
Dataset Id of the dataset
**Note: To get the dataset details of old format datasets (created using v1 APIs) using this api please pass the dataset_id as client_id:project_id:dataset_id
Response
Returns a DatasetResource object.

Files

Get all files

Returns all the files in a dataset.
URL
Request
Path parameters
Parameter name
Parameter type
Description
datasetId
string
Dataset Id of the dataset
Response
Returns a json with field ‘files’ that represents an array of FileResource objects.

Get file

Get the metadata related to a file.
URL
Request
Path parameters
Parameter name
Parameter type
Description
datasetId
string
Dataset Id of the file
fileId
string
File Id of the file
Response
Returns a FileResource object.
Export as PDF
Copy link