Skip to main content

getThreadInitiated

client.chat.getThreadInitiated(threadId: string): Promise<object>

Checks whether a thread has been initiated.

Returns a boolean indicating if the thread has gone through the initiation process and is ready for interaction.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread

Returns

Promise<object> — A promise that resolves to an object with an initiated boolean flag

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.chat.getThreadInitiated('threadId');
console.log(result);