n8n

N8n DataTable API

Operations about data tables and their rows

GitHub OpenAPI

Operations 17

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /data-tables List data tables · List all data tables #
Ask an LLM
“What data tables exist in my n8n instance?”
“Can I see all my data tables?”
Tell an agent
List all data tables.
Show every data table I have set up.
POST /data-tables Create a data table · Create a data table #
Ask an LLM
“How do I create a new data table for storing records?”
“Can I add a blank data table to n8n?”
Tell an agent
Create a new data table.
Add a blank data table for my records.
GET /data-tables/{dataTableId} Get a data table · Get a data table #
Ask an LLM
“What are the settings of one data table?”
“Can I fetch a single data table by its ID?”
Tell an agent
Get data table {dataTableId}.
Show the configuration of data table {dataTableId}.
DELETE /data-tables/{dataTableId} Delete a data table · Delete a data table #
Ask an LLM
“How do I delete a data table I no longer use?”
“Can I remove a whole data table and its structure?”
Tell an agent destructive · confirm first
Delete data table {dataTableId}.
Remove the data table {dataTableId} and its structure.
PATCH /data-tables/{dataTableId} Update a data table · Update a data table #
Ask an LLM
“Can I rename an existing data table?”
“Is there a way to edit a data table's settings?”
Tell an agent
Update data table {dataTableId}.
Rename or edit the settings of data table {dataTableId}.
GET /data-tables/{dataTableId}/rows List rows in a data table · List rows in a data table #
Ask an LLM
“What rows are in a given data table?”
“Can I list every row of one table?”
Tell an agent
List the rows in data table {dataTableId}.
Show all records stored in {dataTableId}.
POST /data-tables/{dataTableId}/rows Insert rows into a data table · Insert rows into a data table #
Ask an LLM
“How do I add new rows to a data table?”
“Can I bulk insert rows into a table?”
Tell an agent
Insert these rows into data table {dataTableId}.
Add new records to {dataTableId}.
POST /data-tables/{dataTableId}/rows/update Update rows in a data table (POST) · Update rows in a data table #
Ask an LLM
“Can I update rows in a data table with a POST request?”
“Is there a POST form of row update for a table?”
Tell an agent
POST a row update to data table {dataTableId}.
Use the POST row update endpoint on {dataTableId}.
PATCH /data-tables/{dataTableId}/rows/update Update rows matching a filter · Update rows in a data table #
Ask an LLM
“How do I update all rows in a table that match a filter?”
“Can I preview changes before updating rows by filter?”
Tell an agent
Update rows in {dataTableId} matching {filter} with {data}.
Dry-run updating {dataTableId} rows matching {filter} to {data}.
POST /data-tables/{dataTableId}/rows/upsert Upsert rows into a data table · Upsert rows in a data table #
Ask an LLM
“How do I insert rows or update existing ones in a data table?”
“Can I upsert rows into a table by a unique key?”
Tell an agent
Upsert these rows into data table {dataTableId}.
Insert or update rows in {dataTableId} in one call.
POST /data-tables/{dataTableId}/rows/delete Delete rows by POST · Delete rows in a data table #
Ask an LLM
“Can I delete rows from a data table with a POST request?”
“Is there a POST form of row deletion for a table?”
Tell an agent destructive · confirm first
POST a row deletion to data table {dataTableId}.
Use the POST row deletion endpoint on {dataTableId}.
DELETE /data-tables/{dataTableId}/rows/delete Delete rows matching a filter · Delete rows from a data table #
Ask an LLM
“How do I delete rows in a table that match a filter?”
“Can I preview which rows would be deleted before removing them?”
Tell an agent destructive · confirm first
Delete rows in {dataTableId} matching {filter}.
Dry-run deleting {dataTableId} rows matching {filter}.
GET /data-tables/{dataTableId}/columns List columns in a data table · List columns in a data table #
Ask an LLM
“What columns does a data table have?”
“Can I see the column names of one table?”
Tell an agent
List the columns of data table {dataTableId}.
Show the column names in {dataTableId}.
POST /data-tables/{dataTableId}/columns Add a column to a data table · Add a column to a data table #
Ask an LLM
“How do I add a new column to an existing data table?”
“Can I grow a table by adding another column?”
Tell an agent
Add a column to data table {dataTableId}.
Grow {dataTableId} by adding a new column.
DELETE /data-tables/{dataTableId}/columns/{columnId} Delete a column from a data table · Delete a column from a data table #
Ask an LLM
“How do I remove a column from a data table?”
“Can I drop a column I no longer need?”
Tell an agent destructive · confirm first
Delete column {columnId} from data table {dataTableId}.
Drop column {columnId} in {dataTableId}.
PATCH /data-tables/{dataTableId}/columns/{columnId} Rename or reorder a column · Update a column #
Ask an LLM
“Can I rename a column in a data table?”
“Is it possible to change a column's position?”
Tell an agent
Rename column {columnId} in {dataTableId} to {name}.
Move column {columnId} in {dataTableId} to position {index}.
DELETE /data-tables/{dataTableId}/rows/clear Clear all rows from a data table · Clear all rows from a data table #
Ask an LLM
“How do I wipe every row out of a data table but keep the structure?”
“Can I empty a table without deleting it?”
Tell an agent destructive · confirm first
Clear all rows from data table {dataTableId}.
Empty {dataTableId} of every row while keeping its structure.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/n8n:n8n-datatable-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

n8n-datatable-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: N8n Data Table API
  version: 1.1.1
  license:
    name: Sustainable Use License
    url: https://github.com/n8n-io/n8n/blob/master/LICENSE.md
  termsOfService: https://n8n.io/legal/#terms
  description: 'Operations tagged DataTable across 2 of this provider''s published API definitions: n8n-openapi.yml, n8n-datatable-api-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.n8n.cloud/api/v1
  description: n8n Cloud
- url: '{baseUrl}/api/v1'
  description: Self-hosted n8n
  variables:
    baseUrl:
      default: http://localhost:5678
- url: /api/v1
  description: Current n8n instance (self-hosted built-in playground)
- url: '{url}/api/v1'
  description: Self-hosted n8n instance
  variables:
    url:
      default: https://example.com
tags:
- name: DataTable
  description: Operations about data tables and their rows
paths:
  /data-tables:
    get:
      tags:
      - DataTable
      summary: List all data tables
      operationId: listDataTables
      responses:
        '200':
          description: Operation successful.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    post:
      tags:
      - DataTable
      summary: Create a data table
      operationId: createDataTable
      responses:
        '201':
          description: Created
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    servers:
    - url: https://app.n8n.cloud/api/v1
      description: n8n Cloud
    - url: '{baseUrl}/api/v1'
      description: Self-hosted n8n
      variables:
        baseUrl:
          default: http://localhost:5678
  /data-tables/{dataTableId}:
    get:
      tags:
      - DataTable
      summary: Get a data table
      operationId: getDataTable
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    delete:
      tags:
      - DataTable
      summary: Delete a data table
      operationId: deleteDataTable
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Deleted
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    patch:
      tags:
      - DataTable
      summary: Update a data table
      operationId: updateDataTable
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    servers:
    - url: https://app.n8n.cloud/api/v1
      description: n8n Cloud
    - url: '{baseUrl}/api/v1'
      description: Self-hosted n8n
      variables:
        baseUrl:
          default: http://localhost:5678
  /data-tables/{dataTableId}/rows:
    get:
      tags:
      - DataTable
      summary: List rows in a data table
      operationId: listDataTableRows
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    post:
      tags:
      - DataTable
      summary: Insert rows into a data table
      operationId: insertDataTableRows
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Created
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    servers:
    - url: https://app.n8n.cloud/api/v1
      description: n8n Cloud
    - url: '{baseUrl}/api/v1'
      description: Self-hosted n8n
      variables:
        baseUrl:
          default: http://localhost:5678
  /data-tables/{dataTableId}/rows/update:
    post:
      tags:
      - DataTable
      summary: Update rows in a data table
      operationId: updateDataTableRows
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    servers:
    - url: https://app.n8n.cloud/api/v1
      description: n8n Cloud
    - url: '{baseUrl}/api/v1'
      description: Self-hosted n8n
      variables:
        baseUrl:
          default: http://localhost:5678
    patch:
      x-eov-operation-id: updateDataTableRows
      x-required-scope: dataTableRow:update
      x-eov-operation-handler: v1/handlers/data-tables/data-tables.rows.handler
      tags:
      - DataTable
      summary: Update rows in a data table
      description: Update rows matching filter conditions in a data table.
      operationId: update-data-table-rows
      parameters:
      - name: dataTableId
        in: path
        description: The ID of the data table
        required: true
        schema:
          type: string
          format: nanoid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                filter:
                  type: object
                  properties:
                    type:
                      type: string
                      enum:
                      - and
                      - or
                      default: and
                    filters:
                      type: array
                      minItems: 1
                      items:
                        type: object
                        properties:
                          columnName:
                            type: string
                          condition:
                            type: string
                            enum:
                            - eq
                            - neq
                            - like
                            - ilike
                            - gt
                            - gte
                            - lt
                            - lte
                          value: {}
                        required:
                        - columnName
                        - condition
                        - value
                  required:
                  - filters
                  description: Filter conditions to match rows for update
                data:
                  type: object
                  additionalProperties: true
                  description: Column values to update
                returnData:
                  type: boolean
                  default: false
                  description: If true, return the updated rows; if false, return true on success
                dryRun:
                  type: boolean
                  default: false
                  description: If true, preview changes without persisting them
              required:
              - filter
              - data
            example:
              filter:
                type: and
                filters:
                - columnName: status
                  condition: eq
                  value: pending
              data:
                status: completed
                updatedBy: admin
              returnData: false
              dryRun: false
      responses:
        '200':
          description: Rows updated successfully
          content:
            application/json:
              schema:
                oneOf:
                - type: boolean
                  description: True when returnData is false
                - type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: The row ID (auto-generated)
                      createdAt:
                        type: string
                        format: date-time
                        description: The date and time the row was created
                      updatedAt:
                        type: string
                        format: date-time
                        description: The date and time the row was last updated
                    additionalProperties: true
                    description: A data table row with system columns (id, createdAt, updatedAt) and user-defined columns
                  description: Updated rows when returnData is true
        '400':
          description: The request is invalid or provides malformed data.
        '401':
          description: Unauthorized
        '404':
          description: The specified resource was not found.
      security:
      - ApiKeyAuth: []
  /data-tables/{dataTableId}/rows/upsert:
    post:
      tags:
      - DataTable
      summary: Upsert rows in a data table
      operationId: upsertDataTableRows
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    servers:
    - url: https://app.n8n.cloud/api/v1
      description: n8n Cloud
    - url: '{baseUrl}/api/v1'
      description: Self-hosted n8n
      variables:
        baseUrl:
          default: http://localhost:5678
  /data-tables/{dataTableId}/rows/delete:
    post:
      tags:
      - DataTable
      summary: Delete rows in a data table
      operationId: deleteDataTableRows
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    servers:
    - url: https://app.n8n.cloud/api/v1
      description: n8n Cloud
    - url: '{baseUrl}/api/v1'
      description: Self-hosted n8n
      variables:
        baseUrl:
          default: http://localhost:5678
    delete:
      x-eov-operation-id: deleteDataTableRows
      x-required-scope: dataTableRow:delete
      x-eov-operation-handler: v1/handlers/data-tables/data-tables.rows.handler
      tags:
      - DataTable
      summary: Delete rows from a data table
      description: Delete rows matching filter conditions from a data table. Filter is required to prevent accidental deletion of all data.
      operationId: delete-data-table-rows
      parameters:
      - name: dataTableId
        in: path
        description: The ID of the data table
        required: true
        schema:
          type: string
          format: nanoid
      - name: filter
        in: query
        required: true
        description: JSON string of filter conditions. Required to prevent accidental deletion of all data.
        schema:
          type: string
          format: jsonString
        example: '{"type":"and","filters":[{"columnName":"status","condition":"eq","value":"archived"}]}'
      - name: returnData
        in: query
        description: If true, return the deleted rows; if false, return true on success
        schema:
          type: boolean
          default: false
      - name: dryRun
        in: query
        description: If true, preview which rows would be deleted without actually deleting them
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: Rows deleted successfully
          content:
            application/json:
              schema:
                oneOf:
                - type: boolean
                  description: True when returnData is false
                - type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: The row ID (auto-generated)
                      createdAt:
                        type: string
                        format: date-time
                        description: The date and time the row was created
                      updatedAt:
                        type: string
                        format: date-time
                        description: The date and time the row was last updated
                    additionalProperties: true
                    description: A data table row with system columns (id, createdAt, updatedAt) and user-defined columns
                  description: Deleted rows when returnData is true
        '400':
          description: The request is invalid or provides malformed data.
        '401':
          description: Unauthorized
        '404':
          description: The specified resource was not found.
      security:
      - ApiKeyAuth: []
  /data-tables/{dataTableId}/columns:
    get:
      tags:
      - DataTable
      summary: List columns in a data table
      operationId: listDataTableColumns
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    post:
      tags:
      - DataTable
      summary: Add a column to a data table
      operationId: addDataTableColumn
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Created
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    servers:
    - url: https://app.n8n.cloud/api/v1
      description: n8n Cloud
    - url: '{baseUrl}/api/v1'
      description: Self-hosted n8n
      variables:
        baseUrl:
          default: http://localhost:5678
  /data-tables/{dataTableId}/columns/{columnId}:
    delete:
      tags:
      - DataTable
      summary: Delete a column from a data table
      operationId: deleteDataTableColumn
      parameters:
      - name: dataTableId
        in: path
        required: true
        schema:
          type: string
      - name: columnId
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Deleted
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
    servers:
    - url: https://app.n8n.cloud/api/v1
      description: n8n Cloud
    - url: '{baseUrl}/api/v1'
      description: Self-hosted n8n
      variables:
        baseUrl:
          default: http://localhost:5678
    patch:
      x-eov-operation-id: updateDataTableColumn
      x-required-scope: dataTableColumn:update
      x-eov-operation-handler: v1/handlers/data-tables/data-tables.columns.handler
      tags:
      - DataTable
      summary: Update a column
      description: Rename and/or reorder a column in a data table.
      operationId: update-data-table-column
      parameters:
      - name: dataTableId
        in: path
        description: The ID of the data table
        required: true
        schema:
          type: string
          format: nanoid
      - name: columnId
        in: path
        description: The ID of the column
        required: true
        schema:
          type: string
          format: nanoid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Column name. Must start with a letter; only letters, digits, and underscores after that; maximum 63 characters.
                  minLength: 1
                  maxLength: 63
                  pattern: ^[a-zA-Z][a-zA-Z0-9_]*$
                index:
                  type: integer
                  minimum: 0
                  description: New zero-based position for the column
              additionalProperties: false
              anyOf:
              - required:
                - name
              - required:
                - index
            example:
              name: email
              index: 1
      responses:
        '200':
          description: Column updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Column ID
                  name:
                    type: string
                    description: Column name
                  dataTableId:
                    type: string
                    description: ID of the data table this column belongs to
                  type:
                    type: string
                    enum:
                    - string
                    - number
                    - boolean
                    - date
                    description: Column data type
                  index:
                    type: integer
                    description: Column position
                required:
                - id
                - name
                - dataTableId
                - type
                - index
        '400':
          description: The request is invalid or provides malformed data.
        '401':
          description: Unauthorized
        '404':
          description: The specified resource was not found.
        '409':
          description: Conflict
      security:
      - ApiKeyAuth: []
  /data-tables/{dataTableId}/rows/clear:
    servers:
    - url: /api/v1
      description: Current n8n instance (self-hosted built-in playground)
    - url: '{url}/api/v1'
      description: Self-hosted n8n instance
      variables:
        url:
          default: https://example.com
    delete:
      x-eov-operation-id: clearDataTableRows
      x-required-scope: dataTableRow:delete
      x-eov-operation-handler: v1/handlers/data-tables/data-tables.rows.handler
      tags:
      - DataTable
      summary: Clear all rows from a data table
      description: Permanently deletes all rows from a data table. The table structure will be retained. This action cannot be undone.
      operationId: clear-data-table-rows
      parameters:
      - name: dataTableId
        in: path
        description: The ID of the data table
        required: true
        schema:
          type: string
          format: nanoid
      responses:
        '200':
          description: Rows cleared successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  deletedCount:
                    type: integer
                    description: The number of rows that were deleted
        '401':
          description: Unauthorized
        '404':
          description: The specified resource was not found.
      security:
      - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-N8N-API-KEY
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    CookieAuth:
      type: apiKey
      in: cookie
      name: n8n-auth
externalDocs:
  description: n8n API documentation
  url: https://docs.n8n.io/api/
x-refined-from:
- n8n-openapi.yml
- n8n-datatable-api-openapi.yml