import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.chat.retrieveHistory('chat_id');
console.log(response);
Retrieve the message history for a chat conversation.
GET
/
chat
/
{chat_id}
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.chat.retrieveHistory('chat_id');
console.log(response);