Manage Etsy OAuth 2.0 tokens and API headers between workflows
Ready for 3.0What this workflow does
This workflow has 17 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Configuration (EDIT ME) (Edit Fields (Set)): sets or maps fields
- Route OAuth action (Code): runs custom JavaScript code
- OAuth callback received? (If): checks a condition and branches into true / false
- Validate OAuth callback (Code): runs custom JavaScript code
- Access token requested? (If): checks a condition and branches into true / false
- Exchange authorization code (HTTP Request): calls an HTTP API
- Load stored token (Code): runs custom JavaScript code
- Generate PKCE authorization URL (Code): runs custom JavaScript code
- Store authorized token (Code): runs custom JavaScript code
- Refresh required? (If): checks a condition and branches into true / false
…plus 4 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Manual Trigger
n8n-nodes-base.manualTrigger - Webhook
n8n-nodes-base.webhook - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick Overview This workflow manages Etsy OAuth 2.0 (PKCE) authorization in n8n, stores access and refresh tokens in workflow static data, refreshes tokens when needed, and returns ready-to-use Etsy API request headers to other workflows via an Execute…