Skip to content

threads.search

Threads whose conversation text contains a query (DMN-076).

/** `threads.search` params (DMN-076). */
export type SearchThreadsParams = {
/** Case-insensitive substring of the conversation text; shorter than 2 characters finds nothing. */
query: string;
};
/** `threads.search` result: most recently updated threads first, at most 200. */
export type ThreadSearchResults = {
results: ThreadSearchResult[];
};
/** A thread whose conversation contains the query. */
export type ThreadSearchResult = {
/** A short excerpt around the first match. */
snippet: string;
threadId: string;
};