Templates / Backfill historical API data into Postgres with resumable checkpointed batches

Backfill historical API data into Postgres with resumable checkpointed batches

Ready for 3.0

by Oneclick AI Squad ✓ · 0 views · created 2026-10-06 · Engineering

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 when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects Postgres.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Postgres: run a query
  2. Code: runs custom JavaScript code
  3. If: checks a condition and branches into true / false
  4. Code: runs custom JavaScript code
  5. HTTP Request: calls an HTTP API
  6. Wait: pauses before continuing
  7. Code: runs custom JavaScript code
  8. Send Data to Webhook (Respond to Webhook): sends the response back to the webhook caller
  9. If: checks a condition and branches into true / false
  10. Postgres: run a query

…plus 4 more steps. See the full node list below.

Services it uses

Postgres

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 (9)

From the author

Quick overview This workflow runs on demand (manual or webhook) to backfill historical data from an HTTP API into Postgres in resumable batches, persisting a checkpoint and progress stats so repeated runs can continue from the last saved position. How it…

Excerpt from Oneclick AI Squad'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.