sahabaa

n8n node for Sahabaa file storage platform - Upload, download, manage files, and trigger workflows on file events

Package Information

Downloads: 0 weekly / 26 monthly
Latest Version: 2.1.0
Author: Tameem Hezam

Documentation

n8n-nodes-sahabaa

This is an n8n community node for Sahabaa - a cloud file storage platform.

Features

  • Trigger Node: Automatically start workflows when file events occur in Sahabaa
  • File Operations: Upload, download, delete, list, and move files
  • Upload from URL: Import files directly from external URLs
  • Folder Management: Create and list folders
  • Workspace Support: Work with multiple workspaces
  • Sharing: Create and manage shareable links

Nodes

This package includes two nodes:

  1. Sahabaa - Action node for file operations
  2. Sahabaa Trigger - Trigger node that starts workflows on file events

Installation

Community Nodes (Recommended)

  1. Go to Settings > Community Nodes
  2. Click Install a community node
  3. Enter n8n-nodes-sahabaa
  4. Click Install

Manual Installation

cd ~/.n8n/nodes
npm install n8n-nodes-sahabaa

Credentials

To use this node, you need to configure your Sahabaa API credentials:

  1. Base URL: Your Sahabaa instance URL (e.g., https://my.sahabaa.com)
  2. API Token: Your Bearer API token

Getting an API Token

  1. Log in to your Sahabaa account
  2. Go to Settings > API Tokens or use the access token endpoint
  3. Create a new token and copy it

Trigger Events

The Sahabaa Trigger node listens for the following events:

Event Description
File Uploaded Triggered when a new file is uploaded
File Deleted Triggered when a file is deleted
File Moved Triggered when a file is moved to a different folder
File Renamed Triggered when a file is renamed
File Shared Triggered when a file is shared with other users
Folder Created Triggered when a new folder is created
Folder Deleted Triggered when a folder is deleted
Shareable Link Created Triggered when a shareable link is created

Setting up the Trigger

  1. Add the Sahabaa Trigger node to your workflow
  2. Configure your Sahabaa credentials (Base URL + API Token)
  3. Select the events you want to listen to
  4. Activate your workflow - The webhook is automatically registered!

That's it! No manual webhook URL copying needed. When you activate the workflow, n8n automatically creates a webhook in your Sahabaa account. When you deactivate, it's automatically removed.

Operations

File

Operation Description
Upload Upload a file from binary data
Upload from URL Upload a file from a remote URL
Download Download a file
Get Get file details
Delete Delete a file
List List all files
Move Move files to another folder

Folder

Operation Description
Create Create a new folder
List List all folders for a user
Get Path Get the full path of a folder

Workspace

Operation Description
List List all workspaces
Get Get workspace details

Share

Operation Description
Create Link Create a shareable link
Get Link Get shareable link details
Delete Link Delete a shareable link

Usage Examples

Upload a File from Previous Node

  1. Add a node that outputs binary data (e.g., HTTP Request, Read Binary File)
  2. Add the Sahabaa node
  3. Select Resource: File and Operation: Upload
  4. Set the Binary Property name (default: data)

Upload from URL

  1. Add the Sahabaa node
  2. Select Resource: File and Operation: Upload from URL
  3. Enter the URL of the file to upload
  4. Optionally set a parent folder ID

List Files in a Workspace

  1. Add the Sahabaa node
  2. Select Resource: File and Operation: List
  3. Enter the Workspace ID (0 for personal drive)

Development

# Clone the repository
git clone https://github.com/tamemway/n8n-nodes-sahabaa.git
cd n8n-nodes-sahabaa

# Install dependencies
npm install

# Build the node
npm run build

# Link for local development
npm link
cd ~/.n8n/nodes
npm link n8n-nodes-sahabaa

License

MIT

Author

Tameem Hezam - tttt20142024@gmail.com

Links

Discussion