---
title: "Create index"
method: POST
path: "/api/index"
tags: ["Index"]
---

# Create index

`POST /api/index`

## Request body

- MetaIndexSimple
  - `mappings` object
  - `name` string
  - `settings` MetaIndexSettings
    - `analysis` MetaIndexAnalysis
      - `analyzer` object
      - `char_filter` object
      - `filter` object — compatibility with es, alias for TokenFilter
      - `token_filter` object
      - `tokenizer` object
    - `number_of_replicas` integer
    - `number_of_shards` integer
  - `shard_num` integer
  - `storage_type` string

## Response `200`

OK

- MetaHTTPResponseIndex
  - `index` string
  - `message` string
  - `storage_type` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/zincsearch/apis/zinc-search-engine-api.md) · [All operations](https://skmtc.net/zincsearch/apis/zinc-search-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zincsearch/zinc-search-engine-api/versions/c7ce1991bb9a/schema)
