---
title: "Create a new collection"
method: POST
path: "/collections"
tags: ["Collection"]
---

# Create a new collection

`POST /collections`

Creates a new collection if it does not already exist. The maximum number of collections per user is restricted based on the plan. Before you can insert and search points, you must create a collection.

## Request body

- CreateCollectionRequest
  - `id` string — The unique identifier of the collection
  - `indexSchema` IndexSchema — The schema for the collection, each property can be indexed with a different type of index.

## Response `200`

Operation was successful

- object
  - `message` string, required — A message indicating the result of the operation

## Other responses

- `403` — Something unexpected happened
- `409` — Something unexpected happened

---

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