Templates / Manage Etsy OAuth 2.0 tokens and API headers between workflows

Manage Etsy OAuth 2.0 tokens and API headers between workflows

Ready for 3.0

by Pawel Jurczyk ✓ · 25 views · created 2026-06-27

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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).

  1. Configuration (EDIT ME) (Edit Fields (Set)): sets or maps fields
  2. Route OAuth action (Code): runs custom JavaScript code
  3. OAuth callback received? (If): checks a condition and branches into true / false
  4. Validate OAuth callback (Code): runs custom JavaScript code
  5. Access token requested? (If): checks a condition and branches into true / false
  6. Exchange authorization code (HTTP Request): calls an HTTP API
  7. Load stored token (Code): runs custom JavaScript code
  8. Generate PKCE authorization URL (Code): runs custom JavaScript code
  9. Store authorized token (Code): runs custom JavaScript code
  10. 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)

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…

Excerpt from Pawel Jurczyk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.