Search documents (full-text)
Full-text and hybrid document search within the workspace you provide.
Request
- Base URL: https://api.paperoffice.ai/latest
- URL: https://api.paperoffice.ai/latest/documents/document-search
- Auth: HTTP bearer
Query parameters
Search term (full text, semantic vector, or hybrid keyword+vector).
Workspace ID to scope the search (required for single-workspace search).
Search strategy: intelligent (auto), fulltext, semantic, hybrid, or exact field match (exact requires field_key).
Legacy alias for search_mode (same values).
current = only the workspace in workspace_id; all = all workspaces the bearer may access.
Bias when mode=intelligent: keyword (BM25), semantic (vectors), or balanced (default).
Meta-field key for exact mode (required when search_mode=exact).
Maximum results (default 20, max 100).
1-based page number for paginated results.
Optional locale hint for query normalization (e.g. de:DE).
Explicit list of workspace IDs (Alternative to search_scope=all).
Include matched meta-field snippets in each hit.
Include short OCR text previews (larger payload).
Minimum semantic similarity score (0.0–1.0, default 0.5).
Advanced: restrict embedding types used in semantic leg (comma-separated).
Hybrid mode: semantic leg weight (0.0–1.0).
Hybrid mode: keyword/BM25 leg weight (0.0–1.0).
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.