import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const summaryResponse = await client.folders.getSummary('folder_id_or_name');
console.log(summaryResponse.content);{
"content": "<string>",
"storage_key": "<string>",
"version": 123,
"bucket": "<string>",
"updated_at": "<string>"
}Retrieve the latest summary for a folder.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const summaryResponse = await client.folders.getSummary('folder_id_or_name');
console.log(summaryResponse.content);{
"content": "<string>",
"storage_key": "<string>",
"version": 123,
"bucket": "<string>",
"updated_at": "<string>"
}Was this page helpful?