Updating the built-in Bannerbear node for the V5 API

Hi all — I’m Jon, founder of Bannerbear.

We’ve released a new major version of our API (V5), and the built-in n8n Bannerbear node is now several years behind it. I’ve prototyped the update and would like to check the approach with the team before opening a PR, as CONTRIBUTING asks.

The problem

The node currently targets api.bannerbear.com/v2 and exposes four operations: Image create/get and Template get/getAll.

V5 changed enough that none of it is reachable from the node as it stands:

  • Different key type. V5 uses a workspace API key (bb_ak_v5_…) rather than a per-project key.
  • Different template shape. Templates moved to /image_templates, and the layer model is config.objects instead of available_modifications.
  • Different render output. Images return a files object keyed by format (JPG, PNG, PDF, WebP, AVIF) rather than a single image_url.
  • New capability. V5 adds media tools — background removal, multi-page PDF assembly, and video trim, join, resize, crop, and overlay. These are async and are polled via /tool_jobs/{uid}.

Proposed approach

VersionedNodeType, with version 1 left completely alone.

  • v1 — files moved into v1/, but behaviour, parameters, and the bannerbearApi credential are identical. Existing workflows keep working with no migration.
  • v2 — defaultVersion, so new nodes get V5. Four resources:
    • Image: create, get
    • Template: get, get many
    • Tool: the eight media tools
    • Tool Job: get, get many
  • New credential, bannerbearV5Api, because the key type differs. It has a live test against /v5/account. v1 keeps bannerbearApi.

A few specifics I’d particularly like feedback on:

  1. Credential naming. I called it “Bannerbear API (V5)” so it’s distinguishable from the existing “Bannerbear API” in the picker. Happy to follow whatever convention you prefer.
  2. Async tools. Tool endpoints return 202 with a pending job. The node polls every 2s up to a Max Tries setting (default 30), with a Wait for Completion toggle to return immediately instead. Is polling in the node acceptable here, or would you rather this were structured differently?
  3. Layer modifications. n8n can’t generate per-layer fields dynamically, so I used a layer dropdown loaded from config.objects plus a flat optional collection of properties. Open to better ideas.

State of the work

Branch: GitHub - yongfook/n8n at feat/bannerbear-v5 · GitHub
Diff: Comparing n8n-io:master...yongfook:feat/bannerbear-v5 · n8n-io/n8n · GitHub

tsc --noEmit is clean, eslint --quiet passes on the changed files, both validate-load-options-methods and validate-schema-versions pass, and pnpm build succeeds. I added __schema__/v2.0.0/ output schemas for the new operations.

Happy to change any of it. Would you like a PR?