---
title: "Upload a file"
method: POST
path: "/api/v1/collections/{collection}/files/{filename}"
---

# Upload a file

`POST /api/v1/collections/{collection}/files/{filename}`

## Request

- Base URL: `https://api.vectorpanda.com`
- URL: `https://api.vectorpanda.com/api/v1/collections/{collection}/files/{filename}`
- Auth: HTTP bearer

Upload a vector data file to a collection. Supported formats:
Parquet, CSV, NumPy (.npy/.npz), HDF5, Arrow IPC, JSONL,
Safetensors, BVECS/FVECS/IVECS. Max file size: 5GB.

## Response `201`

File uploaded

- object
  - `status` string
  - `collection` string
  - `filename` string
  - `size` integer

## Other responses

- `409`: File already exists

---

[API](https://skmtc.dev/vectorpanda/apis/vector-panda-api.md) · [All operations](https://skmtc.dev/vectorpanda/apis/vector-panda-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vectorpanda/apis/vector-panda-api/revisions/f5fc74e883d4?raw)
