import AIInbx from 'aiinbx';const client = new AIInbx({ apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted});const response = await client.threads.forward('threadId', { to: '[email protected]' });console.log(response.emailId);
Forward the entire thread as a readable transcript.
POST
/
threads
/
{threadId}
/
forward
JavaScript
Copy
import AIInbx from 'aiinbx';const client = new AIInbx({ apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted});const response = await client.threads.forward('threadId', { to: '[email protected]' });console.log(response.emailId);