Usage

import Itzam from "itzam";

const itzam = new Itzam("YOUR_API_KEY");

const threads = await itzam.threads.list("customer-support");

console.log(threads);

Parameters

ParameterTypeDescription
workflowSlugstringRequired. The slug of the workflow.

Return Value

type ThreadsResponse = {
  threads: {
    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
  }[]; // Array of thread objects
};