npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@harshil1712/n8n-nodes-n8n-api

v0.1.3

Published

n8n node to call the n8n API

Downloads

6

Readme

n8n-nodes-n8n-api

A n8n node that allows you to create workflows using the n8n API.

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

Credential

Create

Allows you to create credentials.

Required fields:

  • Name: name of the credential, eg. John's GitHub Token
  • Credential Type Name: Type of the credential, eg. githubApi
  • Data: JSON data for the credential, eg.
{
	"server": "https://api.github.com",
	"user": "octocat",
	"accessToken": "octoCat'sTOKEN"
}

Delete

Allows you to delete existing credentials

Required fields:

  • ID: ID of the credential, eg. 17

Get

Allows you to get the credential based on the type.

Required fields:

  • Credential Type Name: Type of the credential, eg. githubApi

Execution

Delete

Allows you to delete an execution

Required fields:

  • ID: ID of the execution, eg. 17

Get

Allows you to get data of an execution

Required fields:

  • ID: ID of the execution, eg. 17

Get All

Fetches all the executions

Workflow

Activate

Allows you to activate a workflow

Required fields:

  • ID: ID of the workflow, eg. 17

Create

Allows you to create a workflow

Required fields:

  • Name: Name of the new workflow, eg. My New Workflow
  • Nodes: Array of the nodes, eg.
[
  {
    "parameters": {},
    "id": "1cce408f-3b10-407b-bb67-59f9df17e07a",
    "name": "Start",
    "type": "n8n-nodes-base.start",
    "typeVersion": 1,
    "position": [
      240,
      300
    ]
  },
  {
    "parameters": {
      "operation": "get",
      "id": 374
    },
    "id": "85caf357-28d6-4497-bc5d-2b14519e4c6d",
    "name": "n8n node",
    "type": "n8n-nodes-n8n-api.N8nApi",
    "typeVersion": 1,
    "position": [
      460,
      300
    ],
    "credentials": {
      "n8nApi": {
        "id": "325",
        "name": "n8n node account 2"
      }
    }
  },
  {
    "parameters": {
      "operation": "create",
      "name": "Test Workflow 1",
      "nodes": "={{ $json[\"nodes\"] }}",
      "connections": "={{ $json[\"connections\"] }}",
      "workflowSettingsUi": {
        "settings": {
          "saveExecutionProgress": true,
          "saveManualExecutions": true
        }
      }
    },
    "id": "4400dc2f-3a9c-4f8b-a0e0-ce69e126c7e6",
    "name": "n8n node1",
    "type": "n8n-nodes-n8n-api.N8nApi",
    "typeVersion": 1,
    "position": [
      700,
      300
    ],
    "credentials": {
      "n8nApi": {
        "id": "325",
        "name": "n8n node account 2"
      }
    }
  },
  {
    "parameters": {
      "resource": "credential",
      "operation": "create",
      "name": "Test Credential",
      "credentialTypeName": "slackApi",
      "data": "{\n\"accessToken\":\"askdjfladjkflka\"\n}"
    },
    "id": "58410204-c252-42d4-9bc3-cee2e413dbfa",
    "name": "n8n node2",
    "type": "n8n-nodes-n8n-api.N8nApi",
    "typeVersion": 1,
    "position": [
      460,
      480
    ],
    "credentials": {
      "n8nApi": {
        "id": "325",
        "name": "n8n node account 2"
      }
    }
  }
]
  • Connections: Connection data for the nodes, eg.
{
  "Start": {
    "main": [
      [
        {
          "node": "n8n node",
          "type": "main",
          "index": 0
        }
      ]
    ]
  },
  "n8n node": {
    "main": [
      [
        {
          "node": "n8n node1",
          "type": "main",
          "index": 0
        }
      ]
    ]
  }
}
  • Workflow Settings: Settings for the workflow

Deactivate

Allows you to deactivate a workflow

Required fields:

  • ID: ID of the workflow, eg. 17

Delete

Allows you to delete a workflow

Required fields:

  • ID: ID of the workflow, eg. 17

Get

Allows you to fetch data of a workflow

Required fields:

  • ID: ID of the workflow, eg. 17

Get All

Allows you to fetch all the workflows

Update

Allows you to update a workflow

Required fields:

  • ID: ID of the workflow, eg. 17

NOTE: Rest of the fields same as the create operation

Credentials

For authentication, n8n API Key is required. Follow the instructions mentioned in the documentation to generate the API key.

Contribute

Open up a new issue to report any bugs or for feature request.

You're encouraged to submit pull requests!

License

MIT