---
title: "Csv To Bundle"
method: POST
path: "/api/tools/csv-to-bundle"
---

# Csv To Bundle

`POST /api/tools/csv-to-bundle`

## Request

- Base URL: `https://opwhcervi3.execute-api.ca-central-1.amazonaws.com`
- URL: `https://opwhcervi3.execute-api.ca-central-1.amazonaws.com/api/tools/csv-to-bundle`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`

The Spreadsheet-to-agent converter: turns a CSV export (`kind`: `shift-report` or `oee`) into an agent input bundle. Free with any account (X-Api-Key or a Bearer session); it is never counted, consumes no Advisor question or Try Pro run, and does not persist data or charge billing. 422 with FastAPI field details for an invalid body.

## Headers

- `Authorization` string, nullable
- `X-Api-Key` string, nullable

## Request body

- CsvToBundleRequest
  - `csv_text` string, required
  - `kind` 'shift-report' | 'oee', required
  - `site_profile` object, nullable

## Response `200`

Successful Response

- object

## Other responses

- `401`: Missing, malformed, or invalid credentials.
- `422`: Validation Error

---

[API](https://skmtc.dev/dxpert/apis/dxpert-ai-api.md) · [All operations](https://skmtc.dev/dxpert/apis/dxpert-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dxpert/apis/dxpert-ai-api/revisions/460f1c8c53d1?raw)
