---
title: "Create a new vector collection"
method: POST
path: "/vectors"
tags: ["Vectors"]
---

# Create a new vector collection

`POST /vectors`

## Request

- Base URL: `https://apipie.ai`
- URL: `https://apipie.ai/vectors`
- Auth: API key in header `Authorization`

Creates a new vector collection with the specified name and dimension. (equivalent to creating an index and namespace on pinecone)

## Request body

- CreateCollectionRequest
  - `collection_name` string
  - `dimension` integer
  - `vector_provider` 'pinecone' | 'qdrant': Vector provider to use to store the collection

## Response `200`

Collection created successfully

- CreateCollectionResponse
  - `message` string

## Other responses

- `400`: Bad request
- `404`: Collection not found
- `500`: Internal server error

---

[API](https://skmtc.dev/apipie/apis/introduction.md) · [All operations](https://skmtc.dev/apipie/apis/introduction/llms.txt) · [OpenAPI document](https://skmtc.dev/apipie/apis/introduction/revisions/f8386be4eb3f?raw)
