---
name: "inventory_export"
area: "inventory"
title: "Export to CSV"
price: "$0.001"
method: "POST"
url: "https://api.conecto.chat/v1/tools/inventory_export"
mcp_server: "https://api.conecto.chat/mcp/inventory"
auth: "Authorization: Bearer <conecto_sk_ key>"
docs_url: "https://conecto.chat/tools/inventory/inventory_export"
---

# Export to CSV (`inventory_export`)

A CSV of the items (per location, with quantities and value) or of the moves in a period, with a download link.

A CSV in the file store, with a download link: items (one row per item and location, with quantities, unit cost and value) or moves (from-to).

Price: $0.001 a call. A call that fails costs nothing.

## Use it when

The stock list is needed in a spreadsheet: for insurance, an accountant or a supplier.

## Say this to your agent

> Export the stock list for the insurance renewal.

## Inputs

| Name | Type | Required | Description | Allowed values | Default |
|---|---|---|---|---|---|
| `what` | string | yes |  | `"items"`, `"moves"` |  |
| `from` | string | no | YYYY-MM-DD (matches ^\\d{4}-\\d{2}-\\d{2}$) |  |  |
| `to` | string | no | YYYY-MM-DD (matches ^\\d{4}-\\d{2}-\\d{2}$) |  |  |

## Example

Written for Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff.

MCP: call `inventory_export` on the MCP server `https://api.conecto.chat/mcp/inventory` with these arguments:

```json
{
  "what": "items"
}
```

REST:

```bash
curl https://api.conecto.chat/v1/tools/inventory_export \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"what": "items"}'
```

## Response

```json
{
  "call_id": "5f0c8a2e-3b7d-4c1e-9a64-2d8e1f7b0c93",
  "tool": "inventory_export",
  "status": "succeeded",
  "replayed": false,
  "cost_usd": "$0.001",
  "balance_usd": "$19.75",
  "result": {
    "file": {
      "file_id": "e64e2b72-0c63-4b63-8932-40f6bfcbbe7b",
      "name": "Stock 2026-10-14.csv",
      "content_type": "text/csv",
      "size": "609 bytes",
      "size_bytes": 609,
      "sha256": "cdfdc70c38fdb04e71619d58f4265cd0d04e1e3359340b72fb20783dcd3b6605",
      "created_at": "2026-10-14T08:00:00+00:00",
      "download_url": "https://cncto.co/d/e64e2b72-0c63-4b63-8932-40f6bfcbbe7b?t=eyJmIjoiZTY0ZTJiNzItMGM2My00YjYzLTg5MzItNDBmNmJmY2JiZTdiIiwiZXhwIjoxNzkyMTYxMTE2fQ:1xHMUu:qHn0espy0eQL32yShD6j8roDhde4p1pugmzpv15Tn0k",
      "link_expires_in_hours": 24
    },
    "rows": 6
  }
}
```

`result`: The CSV file with its file_id and download link, and how many rows.

## Errors

| Code | Status | When | Fix |
|---|---|---|---|
| `invalid_input` | 400 | A date is not a date like 2026-10-01. | Fix the date. |
| `storage_full` | 409 | The file store has no room for the CSV. | Delete files with files_delete, or add room with files_add_storage. |

The refusals every tool can give (401 key, 402 balance, 429 limits) are on the errors page: https://conecto.chat/docs/errors.md

## Related

- [inventory_save_items](https://conecto.chat/tools/inventory/inventory_save_items.md): Adds stock items or changes them by SKU: name, unit, barcode, cost, price and reorder point. $0.005 per item saved.
- [inventory_list_items](https://conecto.chat/tools/inventory/inventory_list_items.md): Items with their stock in total and per location, the moving-average cost and the value. Free up to 1,000,000 reads a month.
- [inventory_move](https://conecto.chat/tools/inventory/inventory_move.md): Changes stock, all moves or none: receive, ship, transfer between locations, or adjust. $0.005 per move.
- [inventory_stocktake](https://conecto.chat/tools/inventory/inventory_stocktake.md): Records a count of one location; each difference from the books becomes a count move. $0.002 per line counted.
- [inventory_history](https://conecto.chat/tools/inventory/inventory_history.md): Stock moves, newest first, of one item, at one location, of one kind, or in a period. Free up to 1,000,000 reads a month.
- [inventory_locations](https://conecto.chat/tools/inventory/inventory_locations.md): Every location with how many items it holds and their value. Free up to 1,000,000 reads a month.
- [inventory_save_location](https://conecto.chat/tools/inventory/inventory_save_location.md): Adds a location (a warehouse, a shop, a van), or renames, describes or archives one. $0.001 a call.
- [inventory_report](https://conecto.chat/tools/inventory/inventory_report.md): Valuation (what was held on a day and its value), movement (per item in a period, with the cost of goods shipped) or low stock. Free up to 1,000,000 reads a month.
- [inventory_import](https://conecto.chat/tools/inventory/inventory_import.md): Creates or changes items from a CSV in the file store, with optional quantities per location; all rows or none. $0.001 per row imported.
