Skip to main content

Search Documents

search_documents()

Search your documents by title prefix and/or tag. Results are scoped to the authenticated user.
Parameters:
ParameterTypeRequiredDescription
querystrNo*Title prefix to search for (case-insensitive)
tagstrNo*Exact tag to match
folder_idstrNoFolder ID to scope results
limitintNoMax results to return (default: 20, max: 50)
offsetintNoNumber of results to skip for pagination
At least one of query or tag is required.
Returns: list[SearchResult] Raises: ValidationError if neither query nor tag is provided.

SearchResult

Each result contains document metadata (no blocks — use get_document() to fetch full content).

Pagination

Use limit and offset for paginating through results:

Examples

Find all documents tagged by source

Search within a project folder