---
title: "List datasets"
method: GET
path: "/v1/datasets"
tags: ["Datasets"]
---

# List datasets

`GET /v1/datasets`

## Request

- Base URL: `https://api.lunary.ai`
- URL: `https://api.lunary.ai/v1/datasets`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lunary/apis/lunary-api/docs/v1/datasets/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

List of datasets

- Dataset[]
  - `id` string
  - `slug` string
  - `format` 'text' | 'chat'
  - `ownerId` string
  - `projectId` string

---

[API](https://skmtc.dev/lunary/apis/lunary-api.md) - [All operations](https://skmtc.dev/lunary/apis/lunary-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lunary/apis/lunary-api/revisions/a38233713bdc?raw)
