---
title: "Create a knowledge base document from a JSON array of objects"
method: POST
path: "/companies/{company}/knowledge-base/documents/json_array"
tags: ["Knowledge Base"]
---

# Create a knowledge base document from a JSON array of objects

`POST /companies/{company}/knowledge-base/documents/json_array`

## Path parameters

- `company` integer, required

## Request body

- object
  - `name` string, required — Display name for the document
  - `items` object[], required — Array of freeform JSON objects. Rendered to Markdown for ElevenLabs upload; original array is returned in the resource.
  - `identifierKey` string, nullable — Optional stable identifier (e.g. FAQ, Customer_Questions). Useful when the client is filling in a section the business analysis could not extract.
  - `businessUnitId` integer, nullable

## Response `201`

Document created

- AppHttpResourcesApiKnowledgeBaseDocumentResource — unresolved $ref

---

[API](https://skmtc.dev/800/apis/public-api.md) · [All operations](https://skmtc.dev/800/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/800/public-api/revisions/aab9efc97342/schema)
