Vaults

Search vault documents

Changed on

Search across vault documents using hybrid vector + BM25 search (default), fast vector similarity search, or a simple vector fallback. Returns matching chunks and their source documents.

post/vault/{id}/search

Request

  • Base URL
    https://api.case.dev
  • URL
    https://api.case.dev/vault/{id}/search
  • Auth
    HTTP bearer

Path parameters

idstring required

Unique identifier of the vault to search

Request body

querystring required

Search query or question to find relevant documents

method'hybrid' | 'fast' | 'vector'

Search method: 'hybrid' for combined vector + keyword ranking (default), 'fast' for quick vector similarity search, 'vector' for a simple document listing fallback

topKinteger

Maximum number of results to return. Hybrid search supports 1 to 50; other methods may support up to 100.

Response

Search results with relevant documents and contextual answers

methodstring

Search method used

querystring

Original search query

vault_idstring

ID of the searched vault

Changes

    • breaking

      removed the enum value entity of the request property

    • breaking

      removed the enum value global of the request property

    • breaking

      removed the enum value graph of the request property

    • breaking

      removed the enum value local of the request property

    • warning

      removed the optional property from the response with the status

    • info

      added the new optional request property /

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status