Skip to main content

Search Documents

Search documents by title prefix and/or tag. At least one of q or tag is required. Results are scoped to the authenticated user.

Query Parameters

At least one of q or tag is required.
Required role: documents:read

Example Request

Response

Response Fields

Each result in results contains:

Search Behavior

  • Title search (q): Case-insensitive prefix match. Searching q=api matches “API Documentation”, “api-guide”, etc.
  • Tag search (tag): Exact match against the metadata.tags array.
  • Combined: When both q and tag are provided, results must match both (AND logic).
  • Folder scope: When folder_id is provided, only documents in that folder are searched.

Errors