Extract Credentials

Extract Credentials

AI-generated

Overview

The "Extract Credentials" node is designed to retrieve and output the credentials associated with a specified credential type within an n8n workflow. This node is useful when you need to access credential details programmatically during workflow execution, for example, to pass them to other nodes or to log credential information securely.

Practical examples include:

  • Extracting API keys or tokens stored in credentials to use in custom HTTP requests.
  • Debugging or auditing workflows by outputting credential data (with caution regarding sensitive information).
  • Dynamically selecting credentials based on workflow logic and passing them downstream.

Properties

Name Meaning
Credential Type The type of credentials to extract. This property allows selecting from available credential types that have properties defined. It is required to specify which credentials to retrieve.

Output

The node outputs a single item containing the full JSON object of the extracted credentials under the json field. The structure corresponds exactly to the stored credential data for the selected credential type.

Example output structure:

{
  "json": {
    // All key-value pairs stored in the selected credentials
  }
}

No binary data is output by this node.

Dependencies

  • Requires the user to have configured the relevant credentials in n8n beforehand.
  • No external services or API calls are made by this node itself.
  • The node depends on n8n's internal credential management system to fetch the credentials.

Troubleshooting

  • Error: "credentials not found"
    This error occurs if the specified credential type does not exist or no credentials are configured for it. To resolve, ensure that the correct credential type is selected and that credentials of that type are properly set up in n8n.

  • If the node outputs empty or incomplete data, verify that the credentials contain the expected properties and that the correct credential type is chosen.

Links and References

Discussion