---
title: "Create vector store"
method: POST
path: "/vector-stores"
tags: ["VectorStore"]
---

# Create vector store

`POST /vector-stores`

Create a new vector store configuration for the current tenant

## Request body

- HandlerCreateStoreRequest
  - `connection_config` TypesConnectionConfig, required
    - `addr` string — Common
    - `api_key` string — AES-GCM encrypted
    - `grpc_address` string — Weaviate
    - `host` string — Qdrant
    - `password` string — AES-GCM encrypted
    - `port` integer
    - `scheme` string
    - `use_default_connection` boolean — Postgres
    - `use_tls` boolean
    - `username` string
    - `version` string — Version is the detected server version (e.g., "7.10.1", "16.2", "1.12.6"). Auto-populated by TestConnection on successful connectivity check.
  - `engine_type` 'postgres' | 'elasticsearch' | 'infinity' | 'elasticfaiss' | 'qdrant' | 'milvus' | 'weaviate' | 'sqlite', required
  - `index_config` TypesIndexConfig
    - `collection_name` string — Milvus
    - `collection_prefix` string — Qdrant
    - `index_name` string — ES, OpenSearch
    - `number_of_replicas` integer — ES, OpenSearch
    - `number_of_shards` integer — ES, OpenSearch
  - `name` string, required

## Response `201`

Created vector store

- object

## Other responses

- `400` — Invalid request or validation error
- `401` — Unauthorized
- `409` — Duplicate endpoint and index

## Changes

- **2026-04-16** `5f1beef7f165` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/vector-stores/post.md)

---

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