---
title: "Create index"
method: POST
path: "/indexes"
---

# Create index

`POST /indexes`

Initialize an upload and start a build for a new index.

## Request body

- object
  - `indexName` string, required
  - `modelId` 'moss-minilm' | 'moss-mediumlm'
  - `documents` DocumentInfo[], required
    - `id` string, required
    - `text` string, required
    - `metadata` object
    - `embedding` number[]

## Response `202`

Build started

- MutationResult
  - `jobId` string, required

---

[API](https://skmtc.dev/moss/apis/moss-control-plane-api.md) · [All operations](https://skmtc.dev/moss/apis/moss-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/moss/moss-control-plane-api/revisions/95ef164ff2d7/schema)
