Flowise Document Store API

The document-store API from Flowise — 9 operation(s) for document-store.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 13

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /document-store/store Create a document store · Create a new document store #
Ask an LLM
“How do I create a new document store for my vector store?”
“Can I set the embedding and vector store config when creating a document store?”
Tell an agent
Create a document store named {name}.
Create document store {name} with embedding config {embeddingConfig}.
GET /document-store/store List document stores · List all document stores #
Ask an LLM
“Which document stores exist in my Flowise instance?”
“Can I see all vector stores set up for document storage?”
Tell an agent
List all document stores.
Show every vector store configured for document storage.
GET /document-store/store/{id} Get a document store · Get a specific document store #
Ask an LLM
“What loaders and embedding config does a document store have?”
“Can I look up one document store by its ID?”
Tell an agent
Get document store {id}.
Show the loaders and embedding config of document store {id}.
PUT /document-store/store/{id} Update a document store · Update a specific document store #
Ask an LLM
“How do I change the embedding config of an existing document store?”
“Can I deactivate a document store without deleting it?”
Tell an agent
Update document store {id} with embedding config {embeddingConfig}.
Set the status of document store {id} to {status}.
DELETE /document-store/store/{id} Delete a document store · Delete a specific document store #
Ask an LLM
“How do I delete a document store I no longer use?”
“Can I remove a whole document store by its ID?”
Tell an agent destructive · confirm first
Delete document store {id}.
Remove the unused document store {id}.
POST /document-store/upsert/{id} Add or replace documents in a store · Upsert document to document store #
Ask an LLM
“How do I load new files into an existing document store?”
“Can I upsert documents with a custom loader and splitter?”
Tell an agent
Upsert files {files} into document store {id}.
Load {files} into document store {id} using loader {loader}.
POST /document-store/refresh/{id} Re-process all documents in a store · Re-process and upsert all documents in document store #
Ask an LLM
“How do I re-process every document in a document store?”
“Can I refresh all chunks in a document store with new items?”
Tell an agent
Re-process all documents in document store {id}.
Refresh the chunks in document store {id} with items {items}.
POST /document-store/vectorstore/query Search a document store's chunks · Retrieval query #
Ask an LLM
“How do I find the chunks in a document store that match a query?”
“Can I search a document store's upserted chunks?”
Tell an agent
Search document store {storeId} for {query}.
Find chunks in document store {storeId} matching {query}.
DELETE /document-store/loader/{storeId}/{loaderId} Remove a loader and its chunks · Delete specific document loader and associated chunks from document store #
Ask an LLM
“How do I remove a document loader and its chunks from a store?”
“Does deleting a loader also delete its chunks?”
Tell an agent destructive · confirm first
Delete loader {loaderId} from document store {storeId}.
Remove document loader {loaderId} and its chunks from store {storeId}.
DELETE /document-store/vectorstore/{id} Delete vector store data · Delete data from vector store #
Ask an LLM
“How do I delete only the vector store data from a document store?”
“Which data gets removed when I delete a document store's vector store?”
Tell an agent destructive · confirm first
Delete the vector store data from document store {id}.
Remove only the vector store data of document store {id}.
GET /document-store/chunks/{storeId}/{loaderId}/{pageNo} Get chunks from a document loader · Get chunks from a specific document loader #
Ask an LLM
“How do I page through the chunks a document loader created?”
“Can I fetch one page of chunks from a document store loader?”
Tell an agent
Get page {pageNo} of chunks from loader {loaderId} in document store {storeId}.
Show the chunks created by loader {loaderId} in store {storeId}.
PUT /document-store/chunks/{storeId}/{loaderId}/{chunkId} Update a document store chunk · Update a specific chunk #
Ask an LLM
“How do I fix a single chunk in a document store loader?”
“Can I change the text of one chunk without re-processing the whole file?”
Tell an agent
Update chunk {chunkId} in loader {loaderId} of document store {storeId}.
Change the text of chunk {chunkId} in store {storeId}, loader {loaderId}.
DELETE /document-store/chunks/{storeId}/{loaderId}/{chunkId} Delete a document store chunk · Delete a specific chunk from a document loader #
Ask an LLM
“How do I remove one chunk from a document store loader?”
“Can I delete a single chunk without deleting its loader?”
Tell an agent destructive · confirm first
Delete chunk {chunkId} from loader {loaderId} in document store {storeId}.
Remove the single chunk {chunkId} in store {storeId}, loader {loaderId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/flowise:flowise-document-store-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

flowise-document-store-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Flowise Document Store API
  version: 1.0.0
  description: 'Flowise REST API for managing AI agent flows, chatflows, assistants, document stores, tools, variables, and predictions.

    Bearer token authentication uses an API key generated in the Flowise admin UI. The default server is your local or hosted Flowise instance at /api/v1.'
  license:
    name: Apache 2.0
    url: https://github.com/FlowiseAI/Flowise/blob/main/LICENSE.md
  contact:
    name: FlowiseAI
    email: support@flowiseai.com
servers:
- url: http://localhost:3000/api/v1
  description: Local Flowise server
- url: https://{instance}.flowiseai.com/api/v1
  description: Flowise Cloud instance
  variables:
    instance:
      default: app
tags:
- name: Document Store
paths:
  /document-store/store:
    post:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Create a new document store
      description: Creates a new document store with the provided details
      operationId: createDocumentStore
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentStore'
        required: true
      responses:
        '200':
          description: Successfully created document store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentStore'
        '400':
          description: Invalid request body
        '500':
          description: Internal server error
    get:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: List all document stores
      description: Retrieves a list of all document stores
      operationId: getAllDocumentStores
      responses:
        '200':
          description: A list of document stores
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DocumentStore'
        '500':
          description: Internal server error
  /document-store/store/{id}:
    get:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Get a specific document store
      description: Retrieves details of a specific document store by its ID
      operationId: getDocumentStoreById
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
        description: Document Store ID
      responses:
        '200':
          description: Successfully retrieved document store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentStore'
        '404':
          description: Document store not found
        '500':
          description: Internal server error
    put:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Update a specific document store
      description: Updates the details of a specific document store by its ID
      operationId: updateDocumentStore
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
        description: Document Store ID
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentStore'
        required: true
      responses:
        '200':
          description: Successfully updated document store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentStore'
        '404':
          description: Document store not found
        '500':
          description: Internal server error
    delete:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Delete a specific document store
      description: Deletes a document store by its ID
      operationId: deleteDocumentStore
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
        description: Document Store ID
      responses:
        '200':
          description: Successfully deleted document store
        '404':
          description: Document store not found
        '500':
          description: Internal server error
  /document-store/upsert/{id}:
    post:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Upsert document to document store
      operationId: upsertDocument
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
        description: Document Store ID
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentStoreLoaderForUpsert'
          multipart/form-data:
            schema:
              type: object
              properties:
                files:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: Files to be uploaded
                docId:
                  type:
                  - string
                  - 'null'
                  example: 603a7b51-ae7c-4b0a-8865-e454ed2f6766
                  description: Document ID to use existing configuration
                loader:
                  type:
                  - string
                  - 'null'
                  example: '{"name":"plainText","config":{"text":"why the sky is blue"}}'
                  description: Loader configurations
                splitter:
                  type:
                  - string
                  - 'null'
                  example: '{"name":"recursiveCharacterTextSplitter","config":{"chunkSize":2000}}'
                  description: Splitter configurations
                embedding:
                  type:
                  - string
                  - 'null'
                  example: '{"name":"openAIEmbeddings","config":{"modelName":"text-embedding-ada-002"}}'
                  description: Embedding configurations
                vectorStore:
                  type:
                  - string
                  - 'null'
                  example: '{"name":"faiss"}'
                  description: Vector Store configurations
                recordManager:
                  type:
                  - string
                  - 'null'
                  example: '{"name":"postgresRecordManager"}'
                  description: Record Manager configurations
                metadata:
                  type:
                  - object
                  - 'null'
                  description: Metadata associated with the document
                  example:
                    foo: bar
                replaceExisting:
                  type:
                  - boolean
                  - 'null'
                  description: Whether to replace existing document loader with the new upserted chunks. However this does not delete the existing embeddings in the vector store
                createNewDocStore:
                  type:
                  - boolean
                  - 'null'
                  description: Whether to create a new document store
                docStore:
                  type:
                  - object
                  - 'null'
                  description: Only when createNewDocStore is true, pass in the new document store configuration
                  properties:
                    name:
                      type: string
                      example: plainText
                      description: Name of the new document store to be created
                    description:
                      type: string
                      example: plainText
                      description: Description of the new document store to be created
              required:
              - files
        required: true
      responses:
        '200':
          description: Successfully execute upsert operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VectorUpsertResponse'
        '400':
          description: Invalid request body
        '500':
          description: Internal server error
  /document-store/refresh/{id}:
    post:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Re-process and upsert all documents in document store
      description: Re-process and upsert all existing documents in document store
      operationId: refreshDocument
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
          format: uuid
        description: Document Store ID
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocumentStoreLoaderForRefresh'
        required: true
      responses:
        '200':
          description: Successfully execute refresh operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VectorUpsertResponse'
        '400':
          description: Invalid request body
        '500':
          description: Internal server error
  /document-store/vectorstore/query:
    post:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Retrieval query
      description: Retrieval query for the upserted chunks
      operationId: queryVectorStore
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - storeId
              - query
              properties:
                storeId:
                  type: string
                  description: Document Store ID
                  example: 603a7b51-ae7c-4b0a-8865-e454ed2f6766
                query:
                  type: string
                  description: Query to search for
                  example: What is the capital of France?
        required: true
      responses:
        '200':
          description: Successfully executed query on vector store
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeTaken:
                    type: number
                    description: Time taken to execute the query (in milliseconds)
                  docs:
                    type: array
                    items:
                      $ref: '#/components/schemas/Document'
        '400':
          description: Invalid request body
        '500':
          description: Internal server error
  /document-store/loader/{storeId}/{loaderId}:
    delete:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Delete specific document loader and associated chunks from document store
      description: Delete specific document loader and associated chunks from document store. This does not delete data from vector store.
      operationId: deleteLoaderFromDocumentStore
      parameters:
      - in: path
        name: storeId
        required: true
        schema:
          type: string
        description: Document Store ID
      - in: path
        name: loaderId
        required: true
        schema:
          type: string
        description: Document Loader ID
      responses:
        '200':
          description: Successfully deleted loader from document store
        '400':
          description: Invalid ID provided
        '404':
          description: Document Store not found
        '500':
          description: Internal server error
  /document-store/vectorstore/{id}:
    delete:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Delete data from vector store
      description: Only data that were upserted with Record Manager will be deleted from vector store
      operationId: deleteVectorStoreFromStore
      parameters:
      - in: path
        name: id
        required: true
        schema:
          type: string
        description: Document Store ID
      responses:
        '200':
          description: Successfully deleted data from vector store
        '400':
          description: Invalid ID provided
        '404':
          description: Document Store not found
        '500':
          description: Internal server error
  /document-store/chunks/{storeId}/{loaderId}/{pageNo}:
    get:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Get chunks from a specific document loader
      description: Get chunks from a specific document loader within a document store
      operationId: getDocumentStoreFileChunks
      parameters:
      - in: path
        name: storeId
        required: true
        schema:
          type: string
          format: uuid
        description: Document Store ID
      - in: path
        name: loaderId
        required: true
        schema:
          type: string
          format: uuid
        description: Document loader ID
      - in: path
        name: pageNo
        required: true
        schema:
          type: string
        description: Pagination number
      responses:
        '200':
          description: Successfully retrieved chunks from document loader
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentStoreFileChunkPagedResponse'
        '404':
          description: Document store not found
        '500':
          description: Internal server error
  /document-store/chunks/{storeId}/{loaderId}/{chunkId}:
    put:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Update a specific chunk
      description: Updates a specific chunk from a document loader
      operationId: editDocumentStoreFileChunk
      parameters:
      - in: path
        name: storeId
        required: true
        schema:
          type: string
        description: Document Store ID
      - in: path
        name: loaderId
        required: true
        schema:
          type: string
        description: Document Loader ID
      - in: path
        name: chunkId
        required: true
        schema:
          type: string
        description: Document Chunk ID
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Document'
        required: true
      responses:
        '200':
          description: Successfully updated chunk
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentStoreFileChunkPagedResponse'
        '404':
          description: Document store not found
        '500':
          description: Internal server error
    delete:
      tags:
      - Document Store
      security:
      - bearerAuth: []
      summary: Delete a specific chunk from a document loader
      operationId: deleteDocumentStoreFileChunk
      parameters:
      - in: path
        name: storeId
        required: true
        schema:
          type: string
        description: Document Store ID
      - in: path
        name: loaderId
        required: true
        schema:
          type: string
        description: Document Loader ID
      - in: path
        name: chunkId
        required: true
        schema:
          type: string
        description: Document Chunk ID
      responses:
        '200':
          description: Successfully deleted chunk
        '400':
          description: Invalid ID provided
        '404':
          description: Document Store not found
        '500':
          description: Internal server error
components:
  schemas:
    DocumentStoreFileChunk:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the file chunk
        docId:
          type: string
          format: uuid
          description: Document ID within the store
        storeId:
          type: string
          format: uuid
          description: Document Store ID
        chunkNo:
          type: integer
          description: Chunk number within the document
        pageContent:
          type: string
          description: Content of the chunk
        metadata:
          type: string
          description: Metadata associated with the chunk
    VectorUpsertResponse:
      type: object
      properties:
        numAdded:
          type: number
          description: Number of vectors added
          example: 1
        numDeleted:
          type: number
          description: Number of vectors deleted
          example: 1
        numUpdated:
          type: number
          description: Number of vectors updated
          example: 1
        numSkipped:
          type: number
          description: Number of vectors skipped (not added, deleted, or updated)
          example: 1
        addedDocs:
          type: array
          items:
            $ref: '#/components/schemas/Document'
    DocumentStoreLoaderForUpsert:
      type: object
      properties:
        docId:
          type:
          - string
          - 'null'
          format: uuid
          description: Document ID within the store. If provided, existing configuration from the document will be used for the new document
        metadata:
          type:
          - object
          - 'null'
          description: Metadata associated with the document
          example:
            foo: bar
        replaceExisting:
          type:
          - boolean
          - 'null'
          description: Whether to replace existing document loader with the new upserted chunks. However this does not delete the existing embeddings in the vector store
        createNewDocStore:
          type:
          - boolean
          - 'null'
          description: Whether to create a new document store
        docStore:
          type:
          - object
          - 'null'
          description: Only when createNewDocStore is true, pass in the new document store configuration
          properties:
            name:
              type: string
              example: plainText
              description: Name of the new document store to be created
            description:
              type: string
              example: plainText
              description: Description of the new document store to be created
        loader:
          type:
          - object
          - 'null'
          properties:
            name:
              type: string
              example: plainText
              description: Name of the loader (camelCase)
            config:
              type: object
              description: Configuration for the loader
        splitter:
          type:
          - object
          - 'null'
          properties:
            name:
              type: string
              example: recursiveCharacterTextSplitter
              description: Name of the text splitter (camelCase)
            config:
              type: object
              description: Configuration for the text splitter
        embedding:
          type:
          - object
          - 'null'
          properties:
            name:
              type: string
              example: openAIEmbeddings
              description: Name of the embedding generator (camelCase)
            config:
              type: object
              description: Configuration for the embedding generator
        vectorStore:
          type:
          - object
          - 'null'
          properties:
            name:
              type: string
              example: faiss
              description: Name of the vector store (camelCase)
            config:
              type: object
              description: Configuration for the vector store
        recordManager:
          type:
          - object
          - 'null'
          properties:
            name:
              type: string
              example: postgresRecordManager
              description: Name of the record manager (camelCase)
            config:
              type: object
              description: Configuration for the record manager
    DocumentStoreLoaderForRefresh:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/DocumentStoreLoaderForUpsert'
    DocumentStoreLoaderForPreview:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the document store loader
        loaderId:
          type: string
          description: ID of the loader
        loaderName:
          type: string
          description: Name of the loader
        loaderConfig:
          type: object
          description: Configuration for the loader
        splitterId:
          type: string
          description: ID of the text splitter
        splitterName:
          type: string
          description: Name of the text splitter
        splitterConfig:
          type: object
          description: Configuration for the text splitter
        totalChunks:
          type: number
          description: Total number of chunks
        totalChars:
          type: number
          description: Total number of characters
        status:
          type: string
          enum:
          - EMPTY
          - SYNC
          - SYNCING
          - STALE
          - NEW
          - UPSERTING
          - UPSERTED
          description: Status of the document store loader
        storeId:
          type: string
          description: ID of the document store
        files:
          type: array
          items:
            $ref: '#/components/schemas/DocumentStoreLoaderFile'
        source:
          type: string
          description: Source of the document store loader
        credential:
          type: string
          description: Credential associated with the document store loader
        rehydrated:
          type: boolean
          description: Whether the loader has been rehydrated
        preview:
          type: boolean
          description: Whether the loader is in preview mode
        previewChunkCount:
          type: number
          description: Number of chunks in preview mode
    Document:
      type: object
      properties:
        pageContent:
          type: string
          example: This is the content of the page.
        metadata:
          type: object
          additionalProperties:
            type: string
          example:
            author: John Doe
            date: '2024-08-24'
    DocumentStore:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the document store
        name:
          type: string
          description: Name of the document store
        description:
          type: string
          description: Description of the document store
        loaders:
          type: string
          description: Loaders associated with the document store, stored as JSON string
        whereUsed:
          type: string
          description: Places where the document store is used, stored as JSON string
        status:
          type: string
          enum:
          - EMPTY
          - SYNC
          - SYNCING
          - STALE
          - NEW
          - UPSERTING
          - UPSERTED
          description: Status of the document store
        vectorStoreConfig:
          type: string
          description: Configuration for the vector store, stored as JSON string
        embeddingConfig:
          type: string
          description: Configuration for the embedding, stored as JSON string
        recordManagerConfig:
          type: string
          description: Configuration for the record manager, stored as JSON string
        createdDate:
          type: string
          format: date-time
          description: Date and time when the document store was created
        updatedDate:
          type: string
          format: date-time
          description: Date and time when the document store was last updated
    DocumentStoreLoaderFile:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier for the file
        name:
          type: string
          description: Name of the file
        mimePrefix:
          type: string
          description: MIME prefix of the file
        size:
          type: number
          description: Size of the file
        status:
          type: string
          enum:
          - EMPTY
          - SYNC
          - SYNCING
          - STALE
          - NEW
          - UPSERTING
          - UPSERTED
          description: Status of the file
        uploaded:
          type: string
          format: date-time
          description: Date and time when the file was uploaded
    DocumentStoreFileChunkPagedResponse:
      type: object
      properties:
        chunks:
          type: array
          items:
            $ref: '#/components/schemas/DocumentStoreFileChunk'
        count:
          type: number
          example: 1
        file:
          $ref: '#/components/schemas/DocumentStoreLoaderForPreview'
        currentPage:
          type: number
        storeName:
          type: string
        description:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT