---
title: "Export dataset records"
method: GET
path: "/dataset/{datasetId}/record/export"
tags: ["Dataset Record"]
---

# Export dataset records

`GET /dataset/{datasetId}/record/export`

## Request

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

## Path parameters

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

## 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 export of dataset records was retrieved successfully

- object
  - `items` object[], required
    - `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
    - `text` string, required
    - `source` string
  - `cursor` string, required: Cursor for fetching the next page

## Other responses

- `default`: An error response

---

[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/13d250576136?raw)
