Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions packages/nodes-base/credentials/TableFlowApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import type { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';

export class TableFlowApi implements ICredentialType {
name = 'tableflowApi';
displayName = 'TableFlow API';
documentationUrl = '';

properties: INodeProperties[] = [
// User access token
{
displayName: 'Access Token',
name: 'token',
type: 'string',
default: '',
typeOptions: {
password: true,
},
required: true,
description: 'Your TableFlow API access token (JWT)',
},
];

authenticate = {
type: 'generic' as const,
properties: {
headers: {
Authorization: '={{"Bearer " + $credentials.token}}',
},
},
};

// Method for checking credentials
test: ICredentialTestRequest = {
request: {
method: 'GET',
url: 'https://example.com',
},
};
}
86 changes: 86 additions & 0 deletions packages/nodes-base/nodes/TableFlow/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# 🧩 TableFlow

> **Category:** Database / Data Management
> **Node Type:** Integration
> **Version:** 1.0
> **Author:** Your Name
> **License:** MIT

---

## 🧠 Overview

The **TableFlow** node allows you to connect n8n with the [TableFlow API](https://www.tableflow.tech).
It enables you to automate data import, synchronization, and table management workflows directly within n8n.

Use it to create, update, or fetch data from TableFlow tables — or trigger and transformations programmatically.

---

## 🔐 Credentials

### **TableFlow API**

This node requires a **TableFlow Access Token**.

1. Log in to your [TableFlow Dashboard](https://www.tableflow.tech).
2. Go to **Settings → Access Token**.
3. Generate and copy a new token.
4. In n8n, add new credentials:
- **Name:** TableFlow API
- **Access Token:** your_token_here

Credentials are stored securely and shared across TableFlow operations.

---

## ⚙️ Node Configuration

| Property | Type | Description |
|-----------|------|-------------|
| **Resource** | Dropdown | Choose which TableFlow resource to interact with (e.g., Table, Row, Import). |
| **Operation** | Dropdown | Choose the specific action to perform (e.g., Get, Create, Update, Delete). |
| **Table ID** | String | The unique identifier for the TableFlow table. |
| **Data** | JSON | JSON-formatted payload for create/update operations. |
| **Additional Fields** | Object | Optional parameters such as pagination, filtering, or sorting. |

---

## 🧩 Supported Resources and Operations

| Resource | Operation | Description |
|-----------|------------|-------------|
| **Table** | *Get All* | Retrieve all tables from your TableFlow workspace. |
| **Table** | *Get* | Retrieve details of a specific table. |
| **Row** | *Create* | Insert new rows into a table. |
| **Row** | *Update* | Modify existing table rows. |
| **Row** | *Delete* | Delete rows by ID. |

---

## 🧪 Example Workflows

### **1️⃣ List All Tables**

Fetch a list of all tables in your TableFlow workspace.

**Configuration:**
- Resource: `Table`
- Operation: `Get All`

**Example Output:**
```json
[
{
"id": "tbl_12345",
"name": "Customer Data",
"rows": 120,
"createdAt": "2025-08-10T12:00:00Z"
},
{
"id": "tbl_67890",
"name": "Product Catalog",
"rows": 45,
"createdAt": "2025-09-22T08:15:00Z"
}
]
Loading
Loading