Search documents
Performs a case-insensitive substring search over the filename, caption, summary, and tags of documents the caller can see, returning matches newest first. Visibility rules are the same as the list endpoint (private, channel, and team scopes). Accepts a required q query parameter and an optional limit (default 50, max 200); the categories and tags rollup fields are returned empty for this endpoint. Requires the documents:read scope.
Authorizations
Personal Access Token. Send as Authorization: Bearer hq_pat_....
Response
Matching documents
Total rows matching the unread + search filter, before paging.
Unread across the whole inbox (drives the nav badge) - independent of the current page / search / sort.