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

# Upload Excel and extract as JSON

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

## Request

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

Upload an Excel file and extract its content as structured JSON.

## Query parameters

- `sheetIndex` integer
- `hasHeader` boolean

## Response `200`

JSON data

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