A comprehensive n8n node for integrating with OnlyOffice Document Server, providing full folder and file management capabilities.
- List Folders: List all folders you have access to
- Create Folder: Create new folders in your OnlyOffice instance
- Rename Folder: Rename existing folders
- Move/Copy Folder: Move or copy folders to different locations
- Delete Folder: Delete folders (with option for immediate deletion or trash)
- List Files: List all files within your OnlyOffice instance
- Create File: Create new documents (Word, Excel, PowerPoint)
- Rename File: Rename existing files
- Move/Copy File: Move or copy files to different locations
- Delete File: Delete files (with option for immediate deletion or trash)
-
Install the package in your n8n instance:
npm install n8n-nodes-onlyoffice
-
Restart your n8n instance to load the new node.
Options for n8n Cloud users:
- Request Verification: Contact n8n support to request verification of this node for cloud use
- Self-Host: Consider using a self-hosted n8n instance which supports all community nodes
- Alternative: Use built-in HTTP Request nodes to interact with the OnlyOffice API directly
Why the limitation? n8n Cloud maintains a curated list of verified community nodes to ensure security, performance, and reliability for all cloud users. While this node works perfectly in self-hosted environments, it requires verification before being available in n8n Cloud.
- In n8n, go to Credentials and create a new OnlyOffice API credential
- Configure the following:
- Base URL: Your OnlyOffice instance URL (e.g.,
https://your-onlyoffice-instance.com) - Access Token: Your OnlyOffice API token
- Base URL: Your OnlyOffice instance URL (e.g.,
- Log into your OnlyOffice instance
- Go to Settings → Integration → API
- Generate a new API token
- Copy the token to use in n8n credentials
- Add the OnlyOffice node to your workflow
- Set Resource to "File"
- Set Operation to "List"
- Set Folder ID to
@my(for My Documents) or@common(for Common Documents)
- Set Resource to "File"
- Set Operation to "Create"
- Set Parent Folder ID to
@my - Set Title to your desired filename (without extension)
- Choose File Type (Document, Spreadsheet, or Presentation)
- Set Resource to "File"
- Set Operation to "Move"
- Set Item ID to the ID of the file to move
- Set Destination Folder ID to the target folder ID
- Choose Conflict Resolution strategy
@my- My Documents folder@common- Common Documents folder@shared- Shared Documents folder@trash- Trash folder- Or use specific folder IDs obtained from list operations
When creating files, you can choose from:
- Document (.docx): Microsoft Word compatible documents
- Spreadsheet (.xlsx): Microsoft Excel compatible spreadsheets
- Presentation (.pptx): Microsoft PowerPoint compatible presentations
When moving or copying files/folders, you can choose how to handle conflicts:
- Skip: Skip the operation if a file/folder with the same name exists
- Overwrite: Replace the existing file/folder
- Duplicate: Create a copy with a different name
This node uses the OnlyOffice Document Server API v2.0:
GET /api/2.0/files/{folderId}- List folder contentsPOST /api/2.0/files/folder/{parentFolderId}- Create folderPOST /api/2.0/files/{parentFolderId}/file- Create filePUT /api/2.0/files/folder/{itemId}- Rename folderPUT /api/2.0/files/file/{itemId}- Rename filePUT /api/2.0/files/fileops/move- Move itemsPUT /api/2.0/files/fileops/copy- Copy itemsDELETE /api/2.0/files/folder/{itemId}- Delete folderDELETE /api/2.0/files/file/{itemId}- Delete file
npm install
npm run buildnpm run devnpm run lint
npm run lintfixMIT
For issues and feature requests, please create an issue in the GitHub repository.