CRUD operations for pages, hierarchy management, permissions, bulk operations, and agent configuration.
Create a new page.
Body:
{
"driveId": "string",
"title": "string",
"type": "DOCUMENT | FOLDER | AI_CHAT | CHANNEL | CANVAS | FILE | SHEET | TASK_LIST | CODE",
"parentId": "string (optional)",
"content": "string (optional)"
}
Auth: User must be drive owner or admin.
Fetch a page with children and messages.
Response:
{
"id": "string",
"title": "string",
"type": "string",
"content": "string",
"driveId": "string",
"parentId": "string | null",
"children": [],
"createdAt": "string",
"updatedAt": "string"
}
Update page title or content. Synchronizes mentions on content updates.
Body:
{
"title": "string (optional)",
"content": "string (optional)"
}
Move a page to trash (soft delete).
Returns breadcrumb navigation path from drive root to current page.
Lists direct child pages with basic metadata.
Update page position for drag-and-drop reordering.
Body:
{
"pageId": "string",
"parentId": "string | null",
"position": "number"
}
List all permissions for a page. Returns drive owner info and user permissions.
Grant or update permissions.
Body:
{
"userId": "string",
"canView": true,
"canEdit": true,
"canShare": false,
"canDelete": false
}
Auth: User must be drive owner or have canShare permission.
Revoke a user's permissions on a page.
Body:
{ "userId": "string" }
Check the current user's permissions on a page.
Response:
{ "canView": true, "canEdit": true, "canShare": false, "canDelete": false }
Get agent configuration for an AI_CHAT page.
Response:
{
"systemPrompt": "string",
"enabledTools": ["string"],
"availableTools": ["string"],
"aiProvider": "string",
"aiModel": "string"
}
Update agent configuration.
Body:
{
"systemPrompt": "string (optional)",
"enabledTools": ["string"] ,
"aiProvider": "string (optional)",
"aiModel": "string (optional)"
}
Create multiple pages atomically in a folder structure.
Delete multiple pages in a single operation.
Move multiple pages to a new parent or drive.
Rename multiple pages using pattern matching.
Update content in multiple pages simultaneously.
Get file processing status for FILE type pages.
Requeue a file for processing.
Restore a trashed page to its original location.
Search docs, blog posts, and more.