This n8n workflow demonstrates how to dynamically set credentials using expressions by collecting user input via a form. The goal is to allow users to provide their own NASA API key through a webhook-triggered form, which is then used to fetch data from NASA’s API, such as the Astronomy Picture of the Day (APOD). The workflow begins with a form trigger that prompts the user to enter their NASA API key. Once submitted, the provided key is passed to the NASA node using an expression to dynamically set the credentials. The NASA node retrieves data based on the user-provided key, and the process concludes with a webhook response that redirects the user, typically to the image or data retrieved. The workflow is particularly useful for scenarios where personalized API credentials are needed temporarily or for testing purposes, ensuring secure and flexible API access without hardcoding keys.
Dynamic API Key Handling with NASA Data in n8n
Node Count | 6 – 10 Nodes |
---|---|
Nodes Used | formTrigger, nasa, respondToWebhook, stickyNote |
Reviews
There are no reviews yet.