import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.documents.downloadFile('document_id');
console.log(response);{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Download the actual file content for a document. This endpoint is used for local storage when file:// URLs cannot be accessed by browsers.
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const response = await client.documents.downloadFile('document_id');
console.log(response);{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?