---
title: "Create a vector index"
method: POST
path: "/api/vector/indexes"
---

# Create a vector index

`POST /api/vector/indexes`

## Request body

- object
  - `label` string, required
  - `property_key` string, required
  - `dimensions` integer, required
  - `metric` string — Distance metric, e.g. cosine or euclidean.

## Response `200`

The index was created

## Changes

- **2026-08-18** `9b1635d24ee5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/samyama-ai/apis/samyama-graph-database-api/changes/api/vector/indexes/post.md)

---

[API](https://skmtc.dev/samyama-ai/apis/samyama-graph-database-api.md) · [All operations](https://skmtc.dev/samyama-ai/apis/samyama-graph-database-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/samyama-ai/samyama-graph-database-api/revisions/7f3d37bbc2cd/schema)
