> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runflow.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload File to Vector Store

> Upload and process a file, adding it to the specified vector store



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/runtime/v1/vectors/files/upload
openapi: 3.0.0
info:
  title: Runflow Runtime API
  description: >-
    Programmatic surface for the Runflow platform — used by the SDK, the CLI,
    the execution engine, and any server-to-server caller. Authenticate with an
    `x-api-key` header (or `Authorization: Bearer ...`).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.runflow.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags: []
paths:
  /api/v1/runtime/v1/vectors/files/upload:
    post:
      tags:
        - Runtime API - Vector Search
      summary: Upload File to Vector Store
      description: Upload and process a file, adding it to the specified vector store
      operationId: RuntimeVectorController_uploadFile
      parameters: []
      requestBody:
        required: true
        description: File upload with vector store and optional metadata
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: File to upload
                vectorStore:
                  type: string
                  description: Vector store name
                title:
                  type: string
                  description: Optional title for the document
                metadata:
                  type: string
                  description: Optional metadata as JSON string
              required:
                - file
                - vectorStore
      responses:
        '201':
          description: >-
            { success, documentId, vectorStore, file: { originalName, mimeType,
            size }, message } on success.
        '400':
          description: No file or invalid metadata JSON.
        '401':
          description: Missing or invalid API key.
      security:
        - bearer: []
components: {}

````