n8n

N8n Workflow API

Operations about workflows

GitHub OpenAPI

Operations 13

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

POST /workflows Create a workflow · Create a workflow #
Ask an LLM
“How do I create a workflow with the n8n REST API?”
“Can I save a basic workflow by sending it to n8n?”
Tell an agent
Create a new workflow.
Save this workflow definition to n8n.
GET /workflows List workflows · Retrieve all workflows #
Ask an LLM
“Which workflows are active in my n8n instance?”
“Can I list only workflows tagged with a certain tag?”
Tell an agent
List all workflows.
List workflows with active set to {active}.
GET /workflows/{id} Get a workflow · Retrieves a workflow #
Ask an LLM
“How do I fetch the definition of one workflow?”
“Can I exclude pinned data when retrieving a workflow?”
Tell an agent
Get workflow {id}.
Retrieve workflow {id} without its pinned data.
DELETE /workflows/{id} Delete a workflow · Delete a workflow #
Ask an LLM
“How do I permanently remove a workflow?”
“Can I delete a workflow by its ID?”
Tell an agent destructive · confirm first
Delete workflow {id}.
Remove the workflow with ID {id}.
PUT /workflows/{id} Update a workflow · Update a workflow #
Ask an LLM
“How do I change the settings of an existing workflow?”
“Can I edit a workflow's definition after it's created?”
Tell an agent
Update workflow {id}.
Replace the definition of workflow {id}.
GET /workflows/{id}/{versionId} Get a workflow version · Retrieves a specific version of a workflow #
Ask an LLM
“How do I view an older version of a workflow?”
“Can I fetch a specific workflow version by its ID?”
Tell an agent
Get version {versionId} of workflow {id}.
Show the {versionId} revision of workflow {id}.
POST /workflows/{id}/activate Activate a workflow · Activate a workflow #
Ask an LLM
“How do I turn an inactive workflow back on?”
“Can I activate a workflow so it starts running again?”
Tell an agent
Activate workflow {id}.
Turn on workflow {id} so it runs.
POST /workflows/{id}/deactivate Deactivate a workflow · Deactivate a workflow #
Ask an LLM
“How do I pause a workflow without deleting it?”
“Can I deactivate a workflow temporarily?”
Tell an agent
Deactivate workflow {id}.
Pause workflow {id} without deleting it.
POST /workflows/{id}/archive Archive a workflow · Archive a workflow #
Ask an LLM
“How do I archive a workflow I no longer use?”
“Can I archive a workflow instead of deleting it?”
Tell an agent
Archive workflow {id}.
Move workflow {id} to the archive.
POST /workflows/{id}/unarchive Unarchive a workflow · Unarchive a workflow #
Ask an LLM
“How do I bring an archived workflow back into my workspace?”
“Can I restore a workflow from the archive?”
Tell an agent
Unarchive workflow {id}.
Restore workflow {id} from the archive.
PUT /workflows/{id}/transfer Move a workflow to another project · Transfer a workflow to another project #
Ask an LLM
“How do I move a workflow into a different project?”
“Can I transfer a workflow to another project by its ID?”
Tell an agent
Transfer workflow {id} to another project.
Move workflow {id} into a different project.
GET /workflows/{id}/tags List a workflow's tags · Get workflow tags #
Ask an LLM
“What tags are applied to a workflow?”
“Can I see the tags on one workflow?”
Tell an agent
Show the tags on workflow {id}.
List tags for workflow {id}.
PUT /workflows/{id}/tags Set tags on a workflow · Update tags of a workflow #
Ask an LLM
“How do I change the tags on a workflow?”
“Can I replace the tags of a workflow?”
Tell an agent
Set the tags on workflow {id}.
Replace workflow {id}'s tags with a new set.

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-workflow-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-workflow-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: n8n Public Workflow API
  description: The n8n public REST API provides programmatic access to n8n instance resources including workflows, executions, credentials, users, tags, variables, projects, source control, audit, data tables, community packages, folders, and insights.
  termsOfService: https://n8n.io/legal/#terms
  contact:
    name: n8n
    url: https://n8n.io/
    email: hello@n8n.io
  license:
    name: Sustainable Use License
    url: https://github.com/n8n-io/n8n/blob/master/LICENSE.md
  version: 1.1.1
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
security:
- ApiKeyAuth: []
- BearerAuth: []
tags:
- name: Workflow
  description: Operations about workflows
paths:
  /workflows:
    post:
      tags:
      - Workflow
      summary: Create a workflow
      operationId: createWorkflow
      responses:
        '200':
          description: Operation successful.
    get:
      tags:
      - Workflow
      summary: Retrieve all workflows
      operationId: getWorkflows
      parameters:
      - name: active
        in: query
        schema:
          type: boolean
      - name: tags
        in: query
        schema:
          type: string
      - name: name
        in: query
        schema:
          type: string
      - name: projectId
        in: query
        schema:
          type: string
      - name: excludePinnedData
        in: query
        schema:
          type: boolean
      - name: limit
        in: query
        schema:
          type: number
          default: 100
      - name: cursor
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
  /workflows/{id}:
    get:
      tags:
      - Workflow
      summary: Retrieves a workflow
      operationId: getWorkflow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: excludePinnedData
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: Operation successful.
    delete:
      tags:
      - Workflow
      summary: Delete a workflow
      operationId: deleteWorkflow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
    put:
      tags:
      - Workflow
      summary: Update a workflow
      operationId: updateWorkflow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
  /workflows/{id}/{versionId}:
    get:
      tags:
      - Workflow
      summary: Retrieves a specific version of a workflow
      operationId: getWorkflowVersion
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: versionId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
  /workflows/{id}/activate:
    post:
      tags:
      - Workflow
      summary: Activate a workflow
      operationId: activateWorkflow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
  /workflows/{id}/deactivate:
    post:
      tags:
      - Workflow
      summary: Deactivate a workflow
      operationId: deactivateWorkflow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
  /workflows/{id}/archive:
    post:
      tags:
      - Workflow
      summary: Archive a workflow
      operationId: archiveWorkflow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
  /workflows/{id}/unarchive:
    post:
      tags:
      - Workflow
      summary: Unarchive a workflow
      operationId: unarchiveWorkflow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
  /workflows/{id}/transfer:
    put:
      tags:
      - Workflow
      summary: Transfer a workflow to another project
      operationId: transferWorkflow
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
  /workflows/{id}/tags:
    get:
      tags:
      - Workflow
      summary: Get workflow tags
      operationId: getWorkflowTags
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
    put:
      tags:
      - Workflow
      summary: Update tags of a workflow
      operationId: updateWorkflowTags
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful.
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-N8N-API-KEY
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
externalDocs:
  description: n8n API documentation
  url: https://docs.n8n.io/api/