Skip to main content

n8n workflow manager API

Workflow preview

Workflow preview
100%
n8n workflow manager API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow provides a secure API endpoint to remotely trigger other n8n workflows with custom data and to retrieve information about your existing workflows. It's perfect for users who want to i...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.executeworkflow, n8n-nodes-base.respondtowebhook, n8n-nodes-base.n8n, n8n-nodes-base.switch, n8n-nodes-base.if, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jan Willem Altink.

Original n8n.io source

1.1 Workflow description

Title
n8n workflow manager API
Workflow name
n8n workflow manager API

This workflow provides a secure API endpoint to remotely trigger other n8n workflows with custom data and to retrieve information about your existing workflows. It's perfect for users who want to integrate n8n into external systems or programmatically manage their automations.

example usage: I use this workflow in a Raycast extension i have build, to execute n8n workflows from within Raycast: see Github

++How it works++

  1. Receives API Calls: A webhook listens for incoming HTTP requests (e.g., POST to trigger, GET to retrieve info).
  2. Triggers Workflows: If the request is to trigger a workflow, it dynamically identifies the target workflow ID (from query parameters) and any input data (from the request body), then executes that workflow. This means you can control any of your workflows without modifying this manager template.
  3. Retrieves Workflow Info: Similarly, if the request is to get information, it dynamically uses query parameters (workflowId, mode, includedWorkflows) to fetch details about one or more n8n workflows (e.g., specific, all, active, inactive; full or summarized data).
  4. Responds: Sends back a JSON response indicating success/failure or the requested workflow data.

++Set it up++

  1. Configure Webhook Security: Set up "Header Auth" credentials for the main Webhook node. This is the API key your external services will use.
  2. Add n8n API Credentials: For the nodes that fetch workflow information (like "Get specific workflowid", "get all active workflows", etc.), connect your n8n API credentials. This allows the workflow to query your n8n instance.
  3. Note Your Webhook URL: Once active, n8n provides a production URL for the webhook (path: workflow-manager). Use this URL to make API calls.
  4. Understand API Parameters:
    • To trigger: Use ?workflowId=[ID_OF_WORKFLOW_TO_RUN] and send JSON data in the request body.
    • To get info: Use parameters like ?workflowId=[ID], ?includedWorkflows=[all/active/inactive], and ?mode=[full/summary].

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 2 - Map webhook request to fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Execute Workflow

Type / Role
n8n-nodes-base.executeWorkflow - executeWorkflow
Config choices
Version 1.2

Block 4 - return succes message

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 5 - return problem executing workflow

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 6 - Return problem handling request

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 7 - Map key workflow info

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - map parameters

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Return problem handling get request

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 10 - return all workflow info

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 11 - return summarized workflow info

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 12 - Get specific workflowid

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 13 - Included Workflows

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 14 - get all inactive workflows

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 15 - get all active workflows

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 16 - get all workflows

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 17 - full mode

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 18 - return problem getting workflow error

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.2

Block 19 - Does workflowId Exist

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 20 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow n8n workflow manager API
Complexity advanced
Nodes 23
Categories DevOps
Author Jan Willem Altink
Published 17 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4166/4166.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does n8n workflow manager API do?

This workflow provides a secure API endpoint to remotely trigger other n8n workflows with custom data and to retrieve information about your existing workflows. It's perfect for users who want to i...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.