Skip to main content

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

ParameterTypeRequiredDescription
threadIdstringYesThe 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);