import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const chats = await client.chat.list();
console.log(chats);
[
{}
]
API Reference
List Chat Conversations
List chat conversations available to the current user.
GET
/
chats
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const chats = await client.chat.list();
console.log(chats);