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);curl https://api.morphik.ai/chats \
-H "Authorization: Bearer $MORPHIK_API_KEY"[
{}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}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);curl https://api.morphik.ai/chats \
-H "Authorization: Bearer $MORPHIK_API_KEY"[
{}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

