Skip to main content

getMessage

client.iconView.getMessage(threadId: string, messageId: string): Promise<IconViewMessage>

Retrieves a specific message from a conversation thread's icon view.

Returns the full details of a single message including its content, metadata, and any associated icon view display information.

Parameters​

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the conversation thread
messageIdstringYesThe unique identifier of the message within the thread

Returns​

Promise<IconViewMessage> — A promise that resolves to the

Example​

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

const client = new CodeBoltClient();

const result = await client.iconView.getMessage('threadId', 'messageId');
console.log(result);