For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data Tables

Operations about data tables and their rows

List all data tables

get
/data-tables

Retrieve a list of all data tables with optional filtering, sorting, and pagination. Each table includes sizeBytes, the value the size sort option orders by.

Authorizations
X-N8N-API-KEYstringRequired
Query parameters
limitnumber · max: 250Optional

The maximum number of items to return.

Default: 100Example: 100
cursorstringOptional

Paginate by setting the cursor parameter to the nextCursor attribute returned by the previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.

filterstring · jsonStringOptional

JSON string of filter conditions

Example: {"name":"my-table"}
sortBystring · enumOptional

Sort format: field:asc or field:desc

Example: name:ascPossible values:
Responses
200

Operation successful.

application/json
nextCursorstring · nullableRequired

Paginate through data tables by setting the cursor parameter to a nextCursor attribute returned by a previous request. Default value fetches the first "page" of the collection.

Example: MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA
get/data-tables
GET /api/v1/data-tables HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "id": "text",
      "name": "text",
      "columns": [
        {
          "id": "text",
          "name": "text",
          "type": "string",
          "index": 1,
          "createdAt": "2026-01-01T00:00:00.000Z",
          "updatedAt": "2026-01-01T00:00:00.000Z"
        }
      ],
      "projectId": "text",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z",
      "sizeBytes": 1
    }
  ],
  "nextCursor": "MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA"
}

Create a new data table

post
/data-tables

Create a new data table in your personal project or a team project you have access to.

Authorizations
X-N8N-API-KEYstringRequired
Header parameters
Idempotency-Keystring · min: 1 · max: 128Optional

Safe retry key for this POST. Use 1 to 128 visible ASCII characters. The same key and the same request return the first successful response. A different request with this key returns 422. A retry while the first request is in progress returns 409.

Pattern: ^[\x21-\x7E]+$
Body
namestring · min: 1 · max: 128Required

Name of the data table

Example: customers
projectIdstringOptional

ID of the project to create the table in. When omitted, the table is created in the user's personal project.

Example: a1b2c3d4
fileIdstringOptional

ID of a CSV file that you uploaded in the n8n editor. If you set it, n8n fills the new table with the rows from that file. Only a session-authenticated caller can upload a file, so an API-key caller cannot use this field.

hasHeadersbooleanOptional

Set to true if the first row of the CSV file holds the column names. Applies only when you set fileId. The default is true.

Responses
201

Operation successful.

application/json
idstringRequired

Unique identifier for the data table

namestringRequired

Name of the data table

projectIdstringRequired

ID of the project this table belongs to

createdAtstring · date-timeRequired

Timestamp when the table was created

updatedAtstring · date-timeRequired

Timestamp when the table was last updated

sizeBytesintegerRequired

Physical storage in bytes, including indexes and internal overhead. Not reduced immediately by row deletion, and may be a few seconds stale.

post/data-tables
POST /api/v1/data-tables HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 153

{
  "name": "customers",
  "columns": [
    {
      "name": "text",
      "type": "string",
      "csvColumnName": "Email Address"
    }
  ],
  "projectId": "a1b2c3d4",
  "fileId": "text",
  "hasHeaders": true
}
{
  "id": "text",
  "name": "text",
  "columns": [
    {
      "id": "text",
      "name": "text",
      "type": "string",
      "index": 1,
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "projectId": "text",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "sizeBytes": 1
}

Get a data table

get
/data-tables/{dataTableId}

Retrieve a specific data table by ID.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Responses
200

Operation successful.

application/json
idstringRequired

Unique identifier for the data table

namestringRequired

Name of the data table

projectIdstringRequired

ID of the project this table belongs to

createdAtstring · date-timeRequired

Timestamp when the table was created

updatedAtstring · date-timeRequired

Timestamp when the table was last updated

sizeBytesintegerRequired

Physical storage in bytes, including indexes and internal overhead. Not reduced immediately by row deletion, and may be a few seconds stale.

get/data-tables/{dataTableId}
GET /api/v1/data-tables/{dataTableId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
  "id": "text",
  "name": "text",
  "columns": [
    {
      "id": "text",
      "name": "text",
      "type": "string",
      "index": 1,
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "projectId": "text",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "sizeBytes": 1
}

Delete a data table

delete
/data-tables/{dataTableId}

Delete a data table. This will also delete all rows in the table.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Responses
204

Operation successful.

No content

delete/data-tables/{dataTableId}
DELETE /api/v1/data-tables/{dataTableId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*

No content

Update a data table

patch
/data-tables/{dataTableId}

Update a data table's name.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Body
namestring · min: 1 · max: 128Required

New name for the data table

Example: updated-customers
Responses
200

Operation successful.

application/json
idstringRequired

Unique identifier for the data table

namestringRequired

Name of the data table

projectIdstringRequired

ID of the project this table belongs to

createdAtstring · date-timeRequired

Timestamp when the table was created

updatedAtstring · date-timeRequired

Timestamp when the table was last updated

sizeBytesintegerRequired

Physical storage in bytes, including indexes and internal overhead. Not reduced immediately by row deletion, and may be a few seconds stale.

patch/data-tables/{dataTableId}
PATCH /api/v1/data-tables/{dataTableId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 28

{
  "name": "updated-customers"
}
{
  "id": "text",
  "name": "text",
  "columns": [
    {
      "id": "text",
      "name": "text",
      "type": "string",
      "index": 1,
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "projectId": "text",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "sizeBytes": 1
}

List data table dependencies

get
/data-tables/{dataTableId}/dependencies

List the workflows that use the data table.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Query parameters
limitnumber · max: 250Optional

The maximum number of items to return.

Default: 100Example: 100
cursorstringOptional

Paginate by setting the cursor parameter to the nextCursor attribute returned by the previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.

Responses
200

Operation successful.

application/json
nextCursorstring · nullableRequired
inaccessibleCountintegerRequired

The number of dependencies that you do not have access to. They are not listed.

get/data-tables/{dataTableId}/dependencies
GET /api/v1/data-tables/{dataTableId}/dependencies HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "type": "agent",
      "id": "2tUt1wbLX592XDdX",
      "name": "Sync customers",
      "projectId": "text"
    }
  ],
  "nextCursor": "text",
  "inaccessibleCount": 1
}

List columns of a data table

get
/data-tables/{dataTableId}/columns

Retrieve all columns for a specific data table.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Responses
200

Operation successful.

application/json
idstringRequired

Column ID

namestringRequired

Column name

typestring · enumRequired

Column data type

Possible values:
indexintegerRequired

Column position

createdAtstring · date-timeRequired

Timestamp when the column was created

updatedAtstring · date-timeRequired

Timestamp when the column was last updated

dataTableIdstringRequired

ID of the data table this column belongs to

get/data-tables/{dataTableId}/columns
GET /api/v1/data-tables/{dataTableId}/columns HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
[
  {
    "id": "text",
    "name": "text",
    "type": "string",
    "index": 1,
    "createdAt": "2026-01-01T00:00:00.000Z",
    "updatedAt": "2026-01-01T00:00:00.000Z",
    "dataTableId": "text"
  }
]

Add a column to a data table

post
/data-tables/{dataTableId}/columns

Add a new column to an existing data table.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Header parameters
Idempotency-Keystring · min: 1 · max: 128Optional

Safe retry key for this POST. Use 1 to 128 visible ASCII characters. The same key and the same request return the first successful response. A different request with this key returns 422. A retry while the first request is in progress returns 409.

Pattern: ^[\x21-\x7E]+$
Body
namestring · min: 1 · max: 63Required

Column name. Must start with a letter; only letters, digits, and underscores after that; maximum 63 characters.

Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
typestring · enumRequired

Column data type

Possible values:
indexintegerOptional

Column position (optional, appended to end if omitted)

Responses
201

Operation successful.

application/json
idstringRequired

Column ID

namestringRequired

Column name

typestring · enumRequired

Column data type

Possible values:
indexintegerRequired

Column position

createdAtstring · date-timeRequired

Timestamp when the column was created

updatedAtstring · date-timeRequired

Timestamp when the column was last updated

dataTableIdstringRequired

ID of the data table this column belongs to

post/data-tables/{dataTableId}/columns
POST /api/v1/data-tables/{dataTableId}/columns HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 41

{
  "name": "text",
  "type": "string",
  "index": 1
}
{
  "id": "text",
  "name": "text",
  "type": "string",
  "index": 1,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "dataTableId": "text"
}

Delete a column

delete
/data-tables/{dataTableId}/columns/{columnId}

Remove a column from a data table. This will also delete all data in the column.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
columnIdstring · nanoidRequired

The ID of the column

Pattern: ^[A-Za-z0-9]{16}$
Responses
204

Operation successful.

No content

delete/data-tables/{dataTableId}/columns/{columnId}
DELETE /api/v1/data-tables/{dataTableId}/columns/{columnId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*

No content

Update a column

patch
/data-tables/{dataTableId}/columns/{columnId}

Rename and/or reorder a column in a data table.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
columnIdstring · nanoidRequired

The ID of the column

Pattern: ^[A-Za-z0-9]{16}$
Body
namestring · min: 1 · max: 63Optional

Column name. Must start with a letter; only letters, digits, and underscores after that; maximum 63 characters.

Pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
indexintegerOptional

New zero-based position for the column

Responses
200

Operation successful.

application/json
idstringRequired

Column ID

namestringRequired

Column name

typestring · enumRequired

Column data type

Possible values:
indexintegerRequired

Column position

createdAtstring · date-timeRequired

Timestamp when the column was created

updatedAtstring · date-timeRequired

Timestamp when the column was last updated

dataTableIdstringRequired

ID of the data table this column belongs to

patch/data-tables/{dataTableId}/columns/{columnId}
PATCH /api/v1/data-tables/{dataTableId}/columns/{columnId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 25

{
  "name": "text",
  "index": 1
}
{
  "id": "text",
  "name": "text",
  "type": "string",
  "index": 1,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "dataTableId": "text"
}

List rows of a data table

get
/data-tables/{dataTableId}/rows

Retrieve rows from a data table with optional filtering, sorting, and pagination.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Query parameters
limitnumber · max: 250Optional

The maximum number of items to return.

Default: 100Example: 100
cursorstringOptional

Paginate by setting the cursor parameter to the nextCursor attribute returned by the previous request's response. Default value fetches the first "page" of the collection. See pagination for more detail.

filterstring · jsonStringOptional

JSON string of filter conditions

Example: {"type":"and","filters":[{"columnName":"status","condition":"eq","value":"active"}]}
sortBystringOptional

Sort format: columnName:asc or columnName:desc

Example: createdAt:desc
searchstringOptional

Search text across all string columns

Responses
200

Operation successful.

application/json
nextCursorstring · nullableRequired

Paginate through rows by setting the cursor parameter to a nextCursor attribute returned by a previous request. Default value fetches the first "page" of the collection.

Example: MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA
get/data-tables/{dataTableId}/rows
GET /api/v1/data-tables/{dataTableId}/rows HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "id": 1,
      "createdAt": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "nextCursor": "MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDA"
}

Insert rows into a data table

post
/data-tables/{dataTableId}/rows

Insert one or more rows into a data table.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Header parameters
Idempotency-Keystring · min: 1 · max: 128Optional

Safe retry key for this POST. Use 1 to 128 visible ASCII characters. The same key and the same request return the first successful response. A different request with this key returns 422. A retry while the first request is in progress returns 409.

Pattern: ^[\x21-\x7E]+$
Body
returnTypeany ofOptional

count: return only the number of rows inserted. id: return an array of objects with the id of each inserted row. all: return the full row data for all inserted rows.

Default: count
string · enumOptionalPossible values:
or
string · enumOptionalPossible values:
or
string · enumOptionalPossible values:
Responses
200

Operation successful.

application/json
or
or
post/data-tables/{dataTableId}/rows
POST /api/v1/data-tables/{dataTableId}/rows HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 66

{
  "data": [
    {
      "ANY_ADDITIONAL_PROPERTY": "text"
    }
  ],
  "returnType": "count"
}
{
  "success": true,
  "insertedRows": 1
}

Upsert a row in a data table

post
/data-tables/{dataTableId}/rows/upsert

Update an existing row, or insert a new one if no row matches the filter conditions.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Header parameters
Idempotency-Keystring · min: 1 · max: 128Optional

Safe retry key for this POST. Use 1 to 128 visible ASCII characters. The same key and the same request return the first successful response. A different request with this key returns 422. A retry while the first request is in progress returns 409.

Pattern: ^[\x21-\x7E]+$
Body
returnDatabooleanOptional

Set to true to return the upserted row(s): the matching rows if updated, or the new row if one was inserted. Set to false to return true on success.

Default: false
dryRunbooleanOptional

Set to true to preview the change without saving it.

Default: false
Responses
200

Operation successful.

application/json
booleanOptional

Returned when returnData is false and dryRun is false

or
or
post/data-tables/{dataTableId}/rows/upsert
POST /api/v1/data-tables/{dataTableId}/rows/upsert HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 167

{
  "filter": {
    "type": "and",
    "filters": [
      {
        "columnName": "text",
        "condition": "eq",
        "value": "text"
      }
    ]
  },
  "data": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "returnData": false,
  "dryRun": false
}
true

Update rows in a data table

patch
/data-tables/{dataTableId}/rows/update

Update rows matching filter conditions in a data table.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Body
returnDatabooleanOptional

Set to true to return the updated row(s). Set to false to return true on success.

Default: false
dryRunbooleanOptional

Set to true to preview the change without saving it.

Default: false
Responses
200

Operation successful.

application/json
booleanOptional

Returned when returnData is false and dryRun is false

or
or
patch/data-tables/{dataTableId}/rows/update
PATCH /api/v1/data-tables/{dataTableId}/rows/update HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 167

{
  "filter": {
    "type": "and",
    "filters": [
      {
        "columnName": "text",
        "condition": "eq",
        "value": "text"
      }
    ]
  },
  "data": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  },
  "returnData": false,
  "dryRun": false
}
true

Clear all rows from a data table

delete
/data-tables/{dataTableId}/rows/clear

Permanently delete all rows from a data table. The table structure is retained. This action cannot be undone.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Responses
200

Operation successful.

application/json
deletedCountintegerRequired

The number of rows that were deleted

delete/data-tables/{dataTableId}/rows/clear
DELETE /api/v1/data-tables/{dataTableId}/rows/clear HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
  "deletedCount": 1
}

Delete rows from a data table

delete
/data-tables/{dataTableId}/rows/delete

Delete rows matching filter conditions from a data table. Filter is required to prevent accidental deletion of all data.

Authorizations
X-N8N-API-KEYstringRequired
Path parameters
dataTableIdstring · nanoidRequired

The ID of the data table

Pattern: ^[A-Za-z0-9]{16}$
Query parameters
filterstring · jsonStringRequired

JSON string of filter conditions. Required to prevent accidental deletion of all data.

Example: {"type":"and","filters":[{"columnName":"status","condition":"eq","value":"archived"}]}
returnDatastring · enumOptional

If true, return the deleted rows. If false, return true on success.

Default: falsePossible values:
dryRunstring · enumOptional

If true, preview which rows would be deleted without actually deleting them.

Default: falsePossible values:
Responses
200

Operation successful.

application/json
booleanOptional

Returned when returnData is false and dryRun is false

or
or
delete/data-tables/{dataTableId}/rows/delete
DELETE /api/v1/data-tables/{dataTableId}/rows/delete?filter=text HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
true

Last updated

Was this helpful?