---
title: Add Collection Files
url: https://docs.vultr.com/products/compute/serverless-inference/vector-store/add-collection-files
description: Upload and manage files within your collection to organize and share resources with your team.
publish_date: 2025-03-11T19:28:36.418543Z
last_updated: 2026-05-26T19:10:46.122808Z
---

# How to Add a File to Vector Store Collection

A collection file is a document that can be uploaded to a vector store collection, allowing you to batch-import structured data efficiently. Instead of adding individual items manually, collection files provide a way to store and manage multiple data points in a single upload.

Follow this guide to add a file to a vector store collection on Vultr Serverless Inference using the Vultr API.

1. Send a `GET` request to the [**List Collections** endpoint](https://api.vultrinference.com/#tag/Vector-Store/operation/list-vector-stores) and note the target collection's ID.

    ```console
    $ curl "https://api.vultrinference.com/v1/vector_store" \
        -X GET \ 
        -H "Authorization: Bearer ${INFERENCE_API_KEY}"
    ```

1. Send a `POST` request to the [**Add Collection File** endpoint](https://api.vultrinference.com/#tag/Vector-Store/operation/add-vector-store-file) to add a file to the target vector store collection.

    ```console
    $ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}/files" \
        -X POST \
        -H "Authorization: Bearer ${INFERENCE_API_KEY}" \
        -H "Content-Type: multipart/form-data" \
        -F "file=@{path-to-your-file}"
    ```

1. Send a `GET` request to the [**List Collection Files** endpoint](https://api.vultrinference.com/#tag/Vector-Store/operation/list-vector-store-files) to list all files in the vector store collection.

    ```console
    $ curl "https://api.vultrinference.com/v1/vector_store/{collection-id}/files" \
        -X GET \ 
        -H "Authorization: Bearer ${INFERENCE_API_KEY}"
    ```
