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 isconfig.objectsinstead ofavailable_modifications. - Different render output. Images return a
filesobject keyed by format (JPG, PNG, PDF, WebP, AVIF) rather than a singleimage_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 thebannerbearApicredential 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 keepsbannerbearApi.
A few specifics I’d particularly like feedback on:
- 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.
- Async tools. Tool endpoints return 202 with a pending job. The node polls every 2s up to a
Max Triessetting (default 30), with aWait for Completiontoggle to return immediately instead. Is polling in the node acceptable here, or would you rather this were structured differently? - Layer modifications. n8n can’t generate per-layer fields dynamically, so I used a layer dropdown loaded from
config.objectsplus 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?