data-tables
Skill18 starsChanged 43 days agoMITView on GitHub
Manage n8n DataTables (CRUD on tables, columns, rows) via the n8n public REST API. Use when the user wants to create/seed/list/delete data-table resources outside of a workflow — n8nac CLI does not support this. Curl is explicitly allowed for `/api/v1/data-tables` (carve-out in PreToolUse hook).
- Reads credentials
- Deletes or force-pushes
- Sends data out
2 other projects use a version of this.
Adopted by
Most recently taken up by
- thewyattbrocato/design-and-copy-skillstheir own version, first seen Oct 17, 2026
- eliabdevweb-svg/opencode-skills-MCPtheir own version, first seen Oct 9, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- thewyattbrocato/design-and-copy-skills★ 2same name
- eliabdevweb-svg/opencode-skills-MCP★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- build-stack-v2Skill
- build-workflowSkill
- build-workflow-v2Skill
- check-mcpsSkill
- deploySkill
- feedbackSkill
- find-credentialSkill
- find-projectSkill
- init-repoSkill
- inventorySkill
- mirror-syncSkill
- n8nac-cheatsheetSkill
- n8nac-referenceSkill
- n8n-code-javascriptSkill
- n8n-code-pythonSkill
- n8n-modeSkill
- n8n-orchestration-patternsSkill
- n8n-structured-extractionSkill
- plugin-testingSkill
- pull-schemasSkill
- session-envSkill
- stack-intakeSkill
- sync-credentialsSkill
- test-manualSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 204
Use ?dryRun=true query param on PUT/PATCH/DELETE rows when uncertain about the filter scope
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
n8n DataTables Admin
n8nac has no commands for DataTable lifecycle (n8nac datatable does not exist as of 2.2.x). The only way to create/seed/drop tables outside the n8n UI is the public REST API. This skill encapsulates the exact endpoints + the curl patterns the PreToolUse hook is configured to allow.
Carve-out scope: Only URLs containing
/api/v1/data-tablesare allowed past the REST-block. The guard catchescurl/wget/urllib/Invoke-RestMethod/requests.against/api/v1— you cannot dodge it by switching HTTP tool. Anything else (workflows, credentials, executions) still routes throughn8nac— do not try to reach those via raw HTTP from here.
Prerequisites
.env must define:
N8N_API_URL=https://your-instance.example.com
N8N_API_KEY=<key from n8n UI → Settings → API>Source it at the top of every shell invocation:
set -a; source .env; set +a
BASE="${N8N_API_URL%/}/api/v1/data-tables"
AUTH=(-H "X-N8N-API-KEY: $N8N_API_KEY" -H "Accept: application/json")Polling / loops: to read rows repeatedly, loop the carve-out
curl— acurlagainst/api/v1/data-tablesinside awhile/forstill passes the guard. Do NOT switch topython/urllib/Invoke-RestMethodto poll (the guard now blocks those too), and do NOT read n8nac's internal~/.n8n-manager/secrets.jsonfor the key — it is undocumented and may change. The key isN8N_API_KEY(n8n UI → Settings → API, or your secret store / Infisical).
API Reference (n8n public API v1)
Routes confirmed against packages/cli/src/public-api/v1/handlers/data-tables/ (master).
Tables
| Method | Path | Purpose |
GET | /data-tables | List tables (query: limit, cursor, projectId, name) |
POST | /data-tables | Create table — body: { name, projectId, columns: [{name, type}] } |
GET | /data-tables/:id | Get table with columns |
PATCH | /data-tables/:id | Rename / update meta — body: { name } |
DELETE | /data-tables/:id | Drop table (cascades rows) |
Columns
| Method | Path | Purpose |
GET | /data-tables/:id/columns | List columns |
POST | /data-tables/:id/columns | Add column — body: { name, type, index? } (type: string, number, boolean, date) |
DELETE | /data-tables/:id/columns/:colId | Drop column |
PATCH | /data-tables/:id/columns/:colId | Rename / reindex — body: { name?, index? } |
Rows
| Method | Path | Purpose |
GET | /data-tables/:id/rows | Query rows — query: offset, limit, filter, sortBy, search |
POST | /data-tables/:id/rows | Append rows — body: { data: [{col1: val, col2: val}, ...], returnType? } |
PUT | /data-tables/:id/rows | Upsert — body: { filter, data, returnData?, dryRun? } |
PATCH | /data-tables/:id/rows | Update matching — body: { filter, data, returnData?, dryRun? } |
DELETE | /data-tables/:id/rows | Delete matching — query: filter, returnData?, dryRun? |
filter is n8n's row-filter DSL — typically { "type":"and", "filters":[{"columnName":"id","condition":"eq","value":42}] }. Conditions: eq, neq, gt, gte, lt, lte, like, notLike, isNull, isNotNull.
Recipes
List all tables
set -a; source .env; set +a
curl -s "${N8N_API_URL%/}/api/v1/data-tables" \
-H "X-N8N-API-KEY: $N8N_API_KEY" -H "Accept: application/json" | jq .Create a table with typed columns
curl -s -X POST "${N8N_API_URL%/}/api/v1/data-tables" \
-H "X-N8N-API-KEY: $N8N_API_KEY" -H "Content-Type: application/json" \
--data-binary @- <<'JSON' | jq .
{
"name": "customer_queue",
"projectId": "<project-id>",
"columns": [
{ "name": "customer_id", "type": "string" },
{ "name": "status", "type": "string" },
{ "name": "retries", "type": "number" },
{ "name": "last_seen", "type": "date" }
]
}
JSONUmlaut-safe inline JSON on Windows: Never
curl -d '{"name":"Geschäft"}'— use a heredoc as shown (--data-binary @-) or write the JSON to a temp file and pass--data-binary @file.json. Seefeedback_curl_umlaut_body.md.
Seed rows from a local JSON file
# rows.json: { "data": [ {"customer_id":"abc","status":"new","retries":0,"last_seen":"2026-05-18T00:00:00Z"}, ... ] }
TABLE_ID=<id>
curl -s -X POST "${N8N_API_URL%/}/api/v1/data-tables/$TABLE_ID/rows" \
-H "X-N8N-API-KEY: $N8N_API_KEY" -H "Content-Type: application/json" \
--data-binary @rows.json | jq '.data | length'Read first 50 rows
curl -s "${N8N_API_URL%/}/api/v1/data-tables/$TABLE_ID/rows?limit=50" \
-H "X-N8N-API-KEY: $N8N_API_KEY" | jq '.data'Upsert rows by key
curl -s -X PUT "${N8N_API_URL%/}/api/v1/data-tables/$TABLE_ID/rows" \
-H "X-N8N-API-KEY: $N8N_API_KEY" -H "Content-Type: application/json" \
--data-binary @- <<'JSON' | jq .
{
"filter": { "type":"and", "filters":[{"columnName":"customer_id","condition":"eq","value":"abc"}] },
"data": { "status":"done", "retries": 1 }
}
JSONDelete rows by filter
curl -s -X DELETE "${N8N_API_URL%/}/api/v1/data-tables/$TABLE_ID/rows" \
-H "X-N8N-API-KEY: $N8N_API_KEY" -G \
--data-urlencode 'filter={"type":"and","filters":[{"columnName":"status","condition":"eq","value":"obsolete"}]}' \
| jq .Drop entire table
curl -s -X DELETE "${N8N_API_URL%/}/api/v1/data-tables/$TABLE_ID" \
-H "X-N8N-API-KEY: $N8N_API_KEY" | jq .Add a column to existing table
curl -s -X POST "${N8N_API_URL%/}/api/v1/data-tables/$TABLE_ID/columns" \
-H "X-N8N-API-KEY: $N8N_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"notes","type":"string"}' | jq .Workflow Integration
Once a table exists, reference it from a workflow via the dataTable node (operations: getRows, insertRows, updateRows, upsertRow, deleteRows). Inside the workflow node, filters use the same DSL — see feedback_n8n_datatable_upsert.md for the filters.conditions[].keyName quirk.
For node-level discovery:
npx n8nac skills node-info dataTable --jsonUpsert node shape (THREE parts — all required)
A workflow-node upsert needs filters.conditions (with keyName + condition + keyValue)
AND matchingColumns. Miss any one and the upsert matches nothing and always inserts (→ duplicates).
n8nac validation is authoritative here.
{
operation: 'upsert',
dataTableId: { __rl: true, value: '<table-id>', mode: 'id' },
filters: {
conditions: [{
keyName: 'matching_column', // (1) which column to match
condition: 'eq', // (2) MUST be set
keyValue: '={{ $json.matching_column }}', // (3) MUST be set
}],
},
columns: {
mappingMode: 'autoMapInputData',
value: {},
matchingColumns: ['matching_column'], // MUST mirror the condition key
schema: [ /* all columns with correct `type` (match LLM/extractor output types) */ ],
},
}Usage patterns (when to reach for a DataTable)
- Fan-in store for parallel sub-workflows — each async sub-workflow writes a result row
(
batch_id,item_idx,status,result); the parent pollsCOUNT(*) WHERE batch_id=Xuntil it reaches N, then reads + merges. The recommended fan-out/fan-in mechanism — seen8n-autopilot:n8n-orchestration-patterns(Pattern B). Avoids webhook-between-workflows + HMAC pain. - Idempotency / dedup — on retries, upsert on the natural key (e.g.
(batch_id, item_idx)) instead of insert, so a re-run overwrites rather than duplicating. - Error rows, not silent skips — route a risky node's error output to a DataTable write with
status: 'error'so the fan-in count still completes and the failure is visible. NevercontinueOnFail: true(masks silent failures). - Cross-run state — small dedup/seen-tables, processing cursors, last-seen timestamps. For large datasets prefer the source DB (DataTables are not a data warehouse).
- Count-query races — inserts are atomic per row; append-only
COUNTis safe without locking.
Safety
- Destructive ops (
DELETE table,DELETE rowswithout dry-run) — confirm with the user first - Use
?dryRun=truequery param on PUT/PATCH/DELETE rows when uncertain about the filter scope - API key has full instance access — never log the key, never commit
.env - Operations are not transactional across multiple tables — failures partway leave partial state
Why Not n8nac?
n8nac CLI (npx n8nac --help) has no datatable / data-table subcommand as of 2.2.x. DataTable resources live in the n8n instance, not in the workflow source — they are infrastructure, not code. The public REST API is the canonical management channel until n8nac adds first-class support.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

