Skip to main content

getJsonThread

client.memory.getJsonThread(threadId: string): Promise<MemoryThread>

Retrieves a specific JSON thread by its unique identifier.

Returns the full JSON thread including its stored data payload and metadata.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the JSON thread to retrieve

Returns

Promise<MemoryThread> — A promise that resolves to the JSON memory thread

Example

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

const client = new CodeBoltClient();

const result = await client.memory.getJsonThread('threadId');
console.log(result);