Context icon

Context

Consume Context

Overview

This node, named 'Context', is designed to consume context information by retrieving credentials labeled 'contextApi'. It outputs these credentials as JSON data. This node is useful in workflows where context-specific API credentials need to be accessed and passed along for further processing or integration with other nodes.

Use Case Examples

  1. In a workflow that requires authentication with a context-based API, this node can fetch and provide the necessary credentials.
  2. When building a data transformation pipeline that depends on context-specific settings, this node can supply those settings as JSON output.

Output

JSON

  • 0 - The retrieved context API credentials as a JSON object

Dependencies

  • An API key credential named 'contextApi' is required for this node to function.

Troubleshooting

  • If the node fails to retrieve credentials, ensure that the 'contextApi' credential is properly configured and accessible.
  • Common errors may include missing or invalid credentials; verify the credential setup in the n8n credentials manager.

Discussion