getThreadInfo
plugin.threadsApi.getThreadInfo(threadId: string): Promise<ThreadInfo>
Retrieves detailed information about a specific thread.
Returns comprehensive metadata and status information for the specified thread, including its configuration, current state, and related attributes.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
threadId | string | Yes | The unique identifier of the thread to retrieve |
Returns
Promise<ThreadInfo> — A promise that resolves to ThreadInfo containing thread details
Example
import plugin from '@codebolt/plugin-sdk';
const result = await plugin.threadsApi.getThreadInfo('threadId');
console.log(result);