import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const folder = await client.folders.retrieve('folder_id');
console.log(folder.id);
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"document_ids": [
"<string>"
],
"system_metadata": {},
"rules": [
{}
],
"workflow_ids": [
"<string>"
],
"app_id": "<string>",
"end_user_id": "<string>"
}
Get a folder by ID.
Args: folder_id: ID of the folder auth: Authentication context
Returns: Folder: Folder if found and accessible
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const folder = await client.folders.retrieve('folder_id');
console.log(folder.id);
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"document_ids": [
"<string>"
],
"system_metadata": {},
"rules": [
{}
],
"workflow_ids": [
"<string>"
],
"app_id": "<string>",
"end_user_id": "<string>"
}
Successful Response
Represents a folder that contains documents
Was this page helpful?