---
title: "Get dataset by ID or slug"
method: GET
path: "/v1/datasets/{identifier}"
tags: ["Datasets"]
---

# Get dataset by ID or slug

`GET /v1/datasets/{identifier}`

## Request

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

## Path parameters

- `identifier` string, required

## Response `200`

Dataset details

- 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)
