import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const folders = await client.folders.list();
console.log(folders);
[
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"document_ids": [
"<string>"
],
"system_metadata": {},
"rules": [
{}
],
"workflow_ids": [
"<string>"
],
"app_id": "<string>",
"end_user_id": "<string>"
}
]
List all folders the user has access to.
Args: auth: Authentication context
Returns: List[Folder]: List of folders
import Morphik from 'morphik';
const client = new Morphik({
apiKey: 'My API Key',
});
const folders = await client.folders.list();
console.log(folders);
[
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"document_ids": [
"<string>"
],
"system_metadata": {},
"rules": [
{}
],
"workflow_ids": [
"<string>"
],
"app_id": "<string>",
"end_user_id": "<string>"
}
]
Successful Response
The response is of type Folder · object[]
.
Was this page helpful?