---
title: "List splits"
method: GET
path: "/beta/dataset/{dataset_id}/split"
tags: ["Dataset"]
---

# List splits

`GET /beta/dataset/{dataset_id}/split`

## Request

- Base URL: `https://api.friendli.ai`
- URL: `https://api.friendli.ai/beta/dataset/{dataset_id}/split`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/friendli/apis/friendli-suite-api-reference/docs/beta/dataset/:dataset_id/split/get.ts> (a function with typed inputs; its response is checked against the schema)

List splits in the dataset.

## Path parameters

- `dataset_id` string, required: ID of the dataset.

## Query parameters

- `cursor` string, binary, nullable
- `limit` integer, nullable
- `direction` 'asc' | 'desc', nullable
- `versionId` string, nullable

## Headers

- `X-Friendli-Team` string, nullable: ID of team to run requests as (optional parameter).

## Response `200`

OK

- ListSplitsResponse: List splits response.
  - `data` SplitInfo[], required: List of items.
    - `id` string, required: ID of the split.
    - `name` string, required: Name of the split.
    - `createdAt` integer, required: Unix timestamp (in seconds) of when the split was created.
    - `updatedAt` integer, required: Unix timestamp (in seconds) of when the split was last modified.
  - `nextCursor` string, binary, nullable: Next cursor to use for pagination. `None` indicates no more items to fetch.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/friendli/apis/friendli-suite-api-reference.md) - [All operations](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/revisions/38fb43993a11?raw)
