---
title: "CSV Split"
method: POST
path: "/api/v1/tools/csv-split"
tags: ["tools"]
---

# CSV Split

`POST /api/v1/tools/csv-split`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/csv-split`
- Auth: HTTP bearer

Split one CSV into parts, either every N rows or one part per distinct value of a column. Every part keeps the header. Returns the parts as CSV text with a name each.

## Request body

- object
  - `text` string
  - `by` string
  - `size` integer
  - `column` string
  - `name` string

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `parts` object[]
      - `name` string
      - `rows` integer
      - `csv` string
    - `count` integer
    - `totalRows` integer

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

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