---
title: "Upload Excel and extract as CSV"
method: POST
path: "/api/excel/upload/to-csv"
tags: ["Excel"]
---

# Upload Excel and extract as CSV

`POST /api/excel/upload/to-csv`

## Request

- Base URL: `https://api.dokmatiq.com`
- URL: `https://api.dokmatiq.com/api/excel/upload/to-csv`
- Auth: API key in header `X-API-Key`

Upload an Excel file and extract its content as CSV text.

## Query parameters

- `sheetIndex` integer
- `delimiter` string

## Response `200`

CSV content

## Other responses

- `400`: Invalid file

---

[API](https://skmtc.dev/dokmatiq/apis/docgen-api.md) · [All operations](https://skmtc.dev/dokmatiq/apis/docgen-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dokmatiq/apis/docgen-api/revisions/3fa1a922764d?raw)
