X Credentials X (Simple)

List all Credentials IDs used in n8n workflows (No Auth Required)

Overview

This node connects to an n8n instance and retrieves information about credentials used across workflows. It is useful for administrators or users who want to audit, analyze, or manage credentials usage within their n8n environment without requiring authentication to the n8n API.

Typical use cases include:

  • Listing all credentials IDs used in all workflows.
  • Grouping credentials by workflow to see which credentials are used where.
  • Getting a unique list of credentials with counts of how many times each is used.

For example, you might use this node to identify unused credentials or to verify that sensitive credentials are only used in approved workflows.

Properties

Name Meaning
n8n Base URL The base URL of your n8n instance (e.g., http://localhost:5678).
Include Workflow Details Whether to include workflow name, ID, and active status in the output (true/false).
Include Node Details Whether to include node name and type that uses the credential (true/false).
Skip SSL Verification Whether to skip SSL certificate verification (useful for local development; true/false).

The Operation property (not listed in your JSON but present in code) supports these options:

  • List All Workflow Credentials
  • List Credentials by Workflow
  • Get Unique Credentials

Output

The node outputs an array of JSON objects depending on the selected operation:

  • List All Workflow Credentials: Each item contains credential ID, credential type, and optionally workflow details (ID, name, active) and node details (name, type).

  • List Credentials by Workflow: Each item groups credentials by workflow, including workflow ID, name, active status, and an array of credentials used in that workflow. Each credential entry includes credential ID, type, and optionally node details.

  • Get Unique Credentials: Each item contains a unique credential ID and the total number of times it is used across all workflows.

If no credentials are found, the node outputs a message indicating no credentials were found along with the total number of workflows scanned.

The output does not include binary data.

Example output snippet for "List Credentials by Workflow":

{
  "workflowId": 123,
  "workflowName": "Example Workflow",
  "workflowActive": true,
  "credentials": [
    {
      "credentialId": "abc123",
      "credentialType": "someCredentialType",
      "nodeName": "HTTP Request",
      "nodeType": "httpRequest"
    }
  ]
}

Dependencies

  • Requires access to the n8n REST API endpoint /rest/workflows on the specified base URL.
  • No authentication is required to call this endpoint.
  • Supports skipping SSL verification for self-signed certificates or local development.
  • No external services or API keys needed beyond the n8n instance itself.

Troubleshooting

  • Invalid response format from n8n API: This error occurs if the /rest/workflows endpoint does not return an array as expected. Ensure the base URL is correct and points to a valid n8n instance running version supporting this API.

  • Failed to fetch credentials data: General failure to connect or retrieve data. Check network connectivity, base URL correctness, and whether the n8n instance is accessible.

  • If no credentials are found, verify that workflows actually contain nodes using credentials.

  • Skipping SSL verification is enabled by default; disable it if connecting to a production server with valid certificates.

Links and References

Discussion