Data Tables
Operations about data tables and their rows
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.
The maximum number of items to return.
100Example: 100Paginate 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.
JSON string of filter conditions
{"name":"my-table"}Sort format: field:asc or field:desc
name:ascPossible values: Operation successful.
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.
MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDAThe request is invalid or provides malformed data.
Unauthorized
Forbidden
Too many requests.
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 in your personal project or a team project you have access to.
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.
^[\x21-\x7E]+$Name of the data table
customersID of the project to create the table in. When omitted, the table is created in the user's personal project.
a1b2c3d4ID 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.
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.
Operation successful.
Unique identifier for the data table
Name of the data table
ID of the project this table belongs to
Timestamp when the table was created
Timestamp when the table was last updated
Physical storage in bytes, including indexes and internal overhead. Not reduced immediately by row deletion, and may be a few seconds stale.
The request is invalid or provides malformed data.
Unauthorized
Forbidden
Conflict
Unsupported media type.
Unprocessable Entity
Too many requests.
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
}Retrieve a specific data table by ID.
The ID of the data table
^[A-Za-z0-9]{16}$Operation successful.
Unique identifier for the data table
Name of the data table
ID of the project this table belongs to
Timestamp when the table was created
Timestamp when the table was last updated
Physical storage in bytes, including indexes and internal overhead. Not reduced immediately by row deletion, and may be a few seconds stale.
Unauthorized
Forbidden
The specified resource was not found.
Too many requests.
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. This will also delete all rows in the table.
The ID of the data table
^[A-Za-z0-9]{16}$Operation successful.
No content
Unauthorized
Forbidden
The specified resource was not found.
Too many requests.
DELETE /api/v1/data-tables/{dataTableId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
No content
Update a data table's name.
The ID of the data table
^[A-Za-z0-9]{16}$New name for the data table
updated-customersOperation successful.
Unique identifier for the data table
Name of the data table
ID of the project this table belongs to
Timestamp when the table was created
Timestamp when the table was last updated
Physical storage in bytes, including indexes and internal overhead. Not reduced immediately by row deletion, and may be a few seconds stale.
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Conflict
Unsupported media type.
Too many requests.
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 the workflows that use the data table.
The ID of the data table
^[A-Za-z0-9]{16}$The maximum number of items to return.
100Example: 100Paginate 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.
Operation successful.
The number of dependencies that you do not have access to. They are not listed.
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Too many requests.
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
}Retrieve all columns for a specific data table.
The ID of the data table
^[A-Za-z0-9]{16}$Operation successful.
Column ID
Column name
Column data type
Column position
Timestamp when the column was created
Timestamp when the column was last updated
ID of the data table this column belongs to
Unauthorized
Forbidden
The specified resource was not found.
Too many requests.
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 new column to an existing data table.
The ID of the data table
^[A-Za-z0-9]{16}$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.
^[\x21-\x7E]+$Column name. Must start with a letter; only letters, digits, and underscores after that; maximum 63 characters.
^[a-zA-Z][a-zA-Z0-9_]*$Column data type
Column position (optional, appended to end if omitted)
Operation successful.
Column ID
Column name
Column data type
Column position
Timestamp when the column was created
Timestamp when the column was last updated
ID of the data table this column belongs to
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Conflict
Unsupported media type.
Unprocessable Entity
Too many requests.
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"
}Remove a column from a data table. This will also delete all data in the column.
The ID of the data table
^[A-Za-z0-9]{16}$The ID of the column
^[A-Za-z0-9]{16}$Operation successful.
No content
Unauthorized
Forbidden
The specified resource was not found.
Too many requests.
DELETE /api/v1/data-tables/{dataTableId}/columns/{columnId} HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
No content
Rename and/or reorder a column in a data table.
The ID of the data table
^[A-Za-z0-9]{16}$The ID of the column
^[A-Za-z0-9]{16}$Column name. Must start with a letter; only letters, digits, and underscores after that; maximum 63 characters.
^[a-zA-Z][a-zA-Z0-9_]*$New zero-based position for the column
Operation successful.
Column ID
Column name
Column data type
Column position
Timestamp when the column was created
Timestamp when the column was last updated
ID of the data table this column belongs to
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Conflict
Unsupported media type.
Too many requests.
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"
}Retrieve rows from a data table with optional filtering, sorting, and pagination.
The ID of the data table
^[A-Za-z0-9]{16}$The maximum number of items to return.
100Example: 100Paginate 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.
JSON string of filter conditions
{"type":"and","filters":[{"columnName":"status","condition":"eq","value":"active"}]}Sort format: columnName:asc or columnName:desc
createdAt:descSearch text across all string columns
Operation successful.
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.
MTIzZTQ1NjctZTg5Yi0xMmQzLWE0NTYtNDI2NjE0MTc0MDAThe request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Too many requests.
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 one or more rows into a data table.
The ID of the data table
^[A-Za-z0-9]{16}$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.
^[\x21-\x7E]+$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.
countOperation successful.
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Conflict
Unsupported media type.
Unprocessable Entity
Too many requests.
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
}Update an existing row, or insert a new one if no row matches the filter conditions.
The ID of the data table
^[A-Za-z0-9]{16}$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.
^[\x21-\x7E]+$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.
falseSet to true to preview the change without saving it.
falseOperation successful.
Returned when returnData is false and dryRun is false
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Conflict
Unsupported media type.
Unprocessable Entity
Too many requests.
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
}trueUpdate rows matching filter conditions in a data table.
The ID of the data table
^[A-Za-z0-9]{16}$Set to true to return the updated row(s). Set to false to return true on success.
falseSet to true to preview the change without saving it.
falseOperation successful.
Returned when returnData is false and dryRun is false
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Unsupported media type.
Too many requests.
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
}truePermanently delete all rows from a data table. The table structure is retained. This action cannot be undone.
The ID of the data table
^[A-Za-z0-9]{16}$Operation successful.
The number of rows that were deleted
Unauthorized
Forbidden
The specified resource was not found.
Too many requests.
DELETE /api/v1/data-tables/{dataTableId}/rows/clear HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
{
"deletedCount": 1
}Delete rows matching filter conditions from a data table. Filter is required to prevent accidental deletion of all data.
The ID of the data table
^[A-Za-z0-9]{16}$JSON string of filter conditions. Required to prevent accidental deletion of all data.
{"type":"and","filters":[{"columnName":"status","condition":"eq","value":"archived"}]}If true, return the deleted rows. If false, return true on success.
falsePossible values: If true, preview which rows would be deleted without actually deleting them.
falsePossible values: Operation successful.
Returned when returnData is false and dryRun is false
The request is invalid or provides malformed data.
Unauthorized
Forbidden
The specified resource was not found.
Too many requests.
DELETE /api/v1/data-tables/{dataTableId}/rows/delete?filter=text HTTP/1.1
X-N8N-API-KEY: YOUR_API_KEY
Accept: */*
trueLast updated
Was this helpful?