---
title: "Retrieve a list of dataset files"
method: GET
path: "/dataset/{datasetId}/file/list"
tags: ["Dataset File"]
---

# Retrieve a list of dataset files

`GET /dataset/{datasetId}/file/list`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/dataset/{datasetId}/file/list`
- Auth: HTTP bearer

## Path parameters

- `datasetId` string, required: The ID of the dataset

## Query parameters

- `cursor` string: The cursor to use for pagination
- `order` 'asc' | 'desc': The order of the paginated items
- `take` integer: The number of items to retrieve

## Response `200`

The list of files was retrieved successfully

- object
  - `items` object[], required
    - `name` string: The associated name
    - `description` string: The associated description
    - `meta` Meta: Meta data information
    - `id` string, required: The instance ID
    - `createdAt` number, required: The timestamp (ms) when the instance was created
    - `updatedAt` number, required: The timestamp (ms) when the instance was updated
    - `visibility` 'private' | 'protected' | 'public': The file visibility
  - `cursor` string, required: Cursor for fetching the next page

## Other responses

- `default`: An error response

## Changes

- **2026-10-20** `5e7b6bf465ce`: 1 info
  - added the optional property `oneOf[subschema #1]/data/allOf[subschema #4]/contactId` to the response with the `200` status

[Operation history](https://skmtc.dev/chatbotkit/apis/cbk-api/changes/dataset/:datasetId/file/list/get.md)

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/5e7b6bf465ce?raw)
