curl --request GET \
--url https://api.example.com/api/documents/assistant/folders \
--header 'x-api-key: <x-api-key>'[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Product Documentation",
"icon": "📚",
"sort_order": 0,
"created_at": "2024-01-15T10:00:00.000Z",
"documents": [
{
"id": "<string>",
"name": "<string>"
}
],
"subfolders": [
{}
]
}
]Retrieve all knowledge base folders for your organization.
curl --request GET \
--url https://api.example.com/api/documents/assistant/folders \
--header 'x-api-key: <x-api-key>'[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Product Documentation",
"icon": "📚",
"sort_order": 0,
"created_at": "2024-01-15T10:00:00.000Z",
"documents": [
{
"id": "<string>",
"name": "<string>"
}
],
"subfolders": [
{}
]
}
]API key needed to authorize the request
Folders retrieved successfully.
Was this page helpful?