Set credentials dynamically using expressions — n8n Workflow
Overview
How it works
This workflow shows how to set credentials dynamically using expressions. It accepts an API key via a form, then uses it in the NASA node to authenticate a request.
Setup steps
First, set up your NASA credential:
Create a new NASA credential. Hover over API Key. Toggle Expression on. In the API Key field, enter {{ $json["Enter your NASA API key"] }}.
Then, test the workflow:
Get an API key from NASA Select Test workflow Enter your key using the form. The workflow runs and se
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 3 nodes, connecting formtrigger, nasa, respondtowebhook.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (3)
NASA
nasa
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
set-credentials-dynamically-using-expressionsfile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Deborah
@deborah
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →