Usage

const thread = await itzam.threads.get("thread_1234567890");

console.log(thread.name);

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe ID of the thread to get.

Return Value

type Thread = {
  id: string; // The unique thread ID
  name: string; // The thread name
  lookupKey: string | null; // The lookup key if provided
  createdAt: string; // ISO 8601 timestamp
  updatedAt: string; // ISO 8601 timestamp
};