---
title: "Import nodes from CSV"
method: POST
path: "/api/import/csv"
---

# Import nodes from CSV

`POST /api/import/csv`

Upload a CSV file to create nodes. The first row is treated as column headers
(property names). Each subsequent row creates one node with the specified label.
Property types are auto-detected (integer → float → boolean → string).

## Response `200`

Import successful

- CsvImportResponse
  - `status` string
  - `nodes_created` integer
  - `label` string
  - `columns` string[]

## Other responses

- `400` — Import error (missing fields, parse error)

---

[API](https://skmtc.net/samyama-ai/apis/samyama-graph-database-api.md) · [All operations](https://skmtc.net/samyama-ai/apis/samyama-graph-database-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/samyama-ai/samyama-graph-database-api/versions/047a40292bc8/schema)
