---
title: "Import nodes from JSON"
method: POST
path: "/api/import/json"
---

# Import nodes from JSON

`POST /api/import/json`

Create nodes from an array of JSON objects. Each object becomes one node
with the specified label. Object keys become property names; values must be
string, number, or boolean (other types are silently skipped).

## Request body

- JsonImportRequest
  - `label` string, required — Node label to assign to all created nodes
  - `nodes` object[], required — Array of JSON objects, each becoming a node
  - `graph` string — Target graph/tenant name (default: 'default')

## Response `200`

Import successful

- JsonImportResponse
  - `status` string
  - `nodes_created` integer
  - `label` string

## Other responses

- `400` — Import error (missing label, invalid data)

---

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