Skip to main content

getThread

client.mail.getThread(threadId: string): Promise<MailThread>

Retrieves a specific mail thread by its unique identifier.

Returns the full thread metadata including subject, participants, timestamps, and status. Use to fetch the actual messages within the thread.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the thread to retrieve

Returns

Promise<MailThread> — A promise that resolves to the mail thread details

Example

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

const client = new CodeBoltClient();

const result = await client.mail.getThread('threadId');
console.log(result);