---
title: "Create vector index on a Table"
method: POST
path: "/v1/table/{name}/create_index/"
tags: ["Tables"]
---

# Create vector index on a Table

`POST /v1/table/{name}/create_index/`

Create vector index on a Table

## Path parameters

- `name` string, required

## Request body

- object
  - `column` string
  - `metric_type` string — The metric type to use for the index. l2, Cosine, Dot are supported.
  - `index_type` string
  - `custom_stop_words` string[], nullable — The custom stop-word list for an FTS index. A non-null array replaces the language's built-in stop-word list and is only applied when remove_stop_words is enabled. Null uses the built-in language list, while an empty array explicitly replaces it with no stop words.

## Response `200`

Index successfully created

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Not found

## Changes

- **2026-07-29** `ba6a93e8b48d` — 1 info
  - added the new optional request property `custom_stop_words`
- **2024-07-01** `b7f1fafb7c9f` — 1 info
  - endpoint added
- **2024-06-28** `e3f83adeda47` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/lancedb/apis/lancedb-cloud-api/changes/v1/table/:name/create_index/post.md)

---

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