Skip to main content

advancedSearch

plugin.threadsApi.advancedSearch(data: ThreadSearchRequest): Promise<Thread[]>

Performs an advanced search for threads based on multiple criteria.

Allows complex queries with filtering, sorting, and pagination to find threads matching specific conditions. Use this for flexible thread discovery and management operations.

Parameters​

ParameterTypeRequiredDescription
dataThreadSearchRequestYesThe search request containing filter and query parameters

Returns​

Promise<Thread[]> — A promise that resolves to an array of matching Thread objects

Example​

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.threadsApi.advancedSearch(/* ThreadSearchRequest */);
console.log(result);