Skip to main content

IconView API

Icon View API

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

const client = new CodeBoltClient();

Quick Reference​

MethodDescription
batchHistoryRetrieves icon view history for multiple threads in a single request.
getHistoryRetrieves the icon view history for a specific conversation thread.
getMessageRetrieves a specific message from a conversation thread's icon view.

Methods​


batchHistory​

client.iconView.batchHistory(data: BatchIconViewHistoryRequest): Promise<Record<string, IconViewHistoryEntry[]>>

Retrieves icon view history for multiple threads in a single request.

More efficient than calling individually for each thread when you need history for several threads at once.

ParameterTypeRequiredDescription
dataBatchIconViewHistoryRequestYesRequest containing the list of thread IDs to fetch history for

Returns: Promise<Record<string, IconViewHistoryEntry[]>> — A promise that resolves to a record mapping thread IDs to their arrays

Full reference →


getHistory​

client.iconView.getHistory(threadId: string): Promise<IconViewHistoryEntry[]>

Retrieves the icon view history for a specific conversation thread.

Returns a chronologically ordered list of history entries representing the actions and messages that occurred within the thread.

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the conversation thread

Returns: Promise<IconViewHistoryEntry[]> — A promise that resolves to an array of objects

Full reference →


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.

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

Full reference →