JavaScript
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.documents.getSummary('document_id');
console.log(summaryResponse.content);curl https://api.morphik.ai/documents/$DOCUMENT_ID/summary \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"content": "<string>",
"storage_key": "<string>",
"version": 123,
"bucket": "<string>",
"updated_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Documents
Get Document Summary
Retrieve the latest summary for a document.
GET
/
documents
/
{document_id}
/
summary
JavaScript
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.documents.getSummary('document_id');
console.log(summaryResponse.content);curl https://api.morphik.ai/documents/$DOCUMENT_ID/summary \
-H "Authorization: Bearer $MORPHIK_API_KEY"{
"content": "<string>",
"storage_key": "<string>",
"version": 123,
"bucket": "<string>",
"updated_at": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?

