JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const folders = await client.folders.list();
console.log(folders);curl https://api.morphik.ai/folders \
-H "Authorization: Bearer $MORPHIK_API_KEY"[
{
"name": "<string>",
"id": "<string>",
"full_path": "<string>",
"parent_id": "<string>",
"depth": 123,
"description": "<string>",
"document_ids": [
"<string>"
],
"system_metadata": {},
"summary_storage_key": "<string>",
"summary_version": 123,
"summary_bucket": "<string>",
"summary_updated_at": "<string>",
"app_id": "<string>",
"end_user_id": "<string>",
"child_count": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Folders
List Folders
List all folders the user has access to.
GET
/
folders
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const folders = await client.folders.list();
console.log(folders);curl https://api.morphik.ai/folders \
-H "Authorization: Bearer $MORPHIK_API_KEY"[
{
"name": "<string>",
"id": "<string>",
"full_path": "<string>",
"parent_id": "<string>",
"depth": 123,
"description": "<string>",
"document_ids": [
"<string>"
],
"system_metadata": {},
"summary_storage_key": "<string>",
"summary_version": 123,
"summary_bucket": "<string>",
"summary_updated_at": "<string>",
"app_id": "<string>",
"end_user_id": "<string>",
"child_count": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Response
Successful Response
Was this page helpful?

