Run Node With Credentials Innoways icon

Run Node With Credentials Innoways

Run any node with specified credentials

Overview

This node allows you to dynamically run another n8n node with a specified set of credentials. It is useful when you want to execute a particular node configuration on the fly, but override or specify the credentials it uses at runtime. For example, you might have a node that connects to an external API and you want to run it with different API keys without creating multiple static nodes.

Typical use cases include:

  • Running a node that requires authentication with a specific credential ID passed dynamically.
  • Testing or executing nodes programmatically within a workflow by providing their JSON definition and credentials.
  • Dynamically injecting credentials into a node before execution to handle multi-tenant or multi-account scenarios.

Properties

Name Meaning
Credentials ID The ID of the credentials to be used when running the provided node JSON.
Node To Execute The JSON representation of the node to execute. This must include the node's structure including its credentials field.

Output

The output of this node is the result of executing the provided node JSON with the specified credentials. The output data structure matches the standard n8n node output format, containing a json field with the executed node's output data.

If the executed node produces binary data, it will be included in the output as per usual n8n conventions, but this node itself does not modify or handle binary data specifically.

Dependencies

  • Requires the ability to parse and manipulate JSON representing n8n nodes.
  • Depends on having valid credentials identified by the provided Credentials ID.
  • Uses an internal sub-workflow template (subWorkflowTemplate.json) to wrap and execute the provided node JSON.
  • No external API dependencies are directly required by this node itself, but the executed node may require external services depending on its configuration.

Troubleshooting

  • Error: "There are no credentials in the node that is entered."
    This error occurs if the provided node JSON does not contain any credentials property. Ensure the node JSON includes credentials so that the Credentials ID can be injected.

  • JSON Parsing Errors
    If the Node To Execute JSON is malformed or invalid, the node will throw an error. Verify the JSON syntax and structure before inputting.

  • Invalid Credentials ID
    If the Credentials ID does not correspond to a valid credential in your environment, the executed node will fail authentication. Make sure the ID is correct and the credentials exist.

  • Execution Failures
    If the wrapped node fails during execution, errors from that node will propagate. Use the "Continue On Fail" option to handle such errors gracefully.

Links and References

Discussion