GET
/
documents
/
v2
/
datasets
cURL
curl --request GET \
  --url https://api.tensorlake.ai/documents/v2/datasets \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "name": "Invoices Dataset",
      "dataset_id": "dataset_12345",
      "description": "This dataset contains invoices for the year 2023.",
      "status": "idle",
      "created_at": "2023-10-01T12:00:00Z",
      "updated_at": "2023-10-01T12:00:00Z"
    }
  ],
  "has_more": true,
  "next_cursor": "<string>",
  "prev_cursor": "<string>"
}
List all the datasets in your organization.

Authorizations

Authorization
string
header
required

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

Query Parameters

cursor
any

Optional cursor for pagination.

This is a base64-encoded string representing a timestamp. It is used to paginate through the results.

limit
integer

The maximum number of results to return per page.

The default is 25.

Required range: x >= 0
status
enum<string> | null

The status dataset to filter the results by.

This is an optional parameter that can be used to filter the results by the status of the dataset.

The possible values are processing and `idle``.

Available options:
idle,
processing
name
string | null

The name of the dataset to filter the results by.

This is an optional parameter that can be used to filter the results by the name of the dataset.

Because dataset names are not unique, this will return all datasets that match the provided name.

Response

List of datasets retrieved successfully

The response is of type object.