@canva/n8n-nodes-canva

中文文档
0.2.4发布于 2026/11/06MIT零依赖构建来源已验证近 30 天下载 1718

Canva API integration for n8n. Create, edit, and export designs, folders, and more.

原始使用文档
文档目录26 节
  1. Installation
  2. Credentials
  3. 1. Create an app in the Canva Developer Portal
  4. 2. Connect it in n8n
  5. Operations
  6. Asset
  7. Autofill
  8. Brand Template
  9. Comment (Preview API)
  10. Design
  11. Design Import
  12. Export
  13. Folder
  14. Generation (Preview API)
  15. Image Transformation (Preview API)
  16. Merge (Preview API)
  17. Resize
  18. User
  19. Good to know
  20. Waiting for Canva to finish
  21. When Canva is busy, or a quota runs out
  22. Preview APIs
  23. AI credits
  24. Tips
  25. Run it locally
  26. Resources

n8n-nodes-canva

Banner

Use Canva in your n8n workflows. Create, autofill, and export designs, manage your assets and folders, and use Canva's AI to generate designs and images, remove backgrounds, or turn flat images into editable designs.

This node uses the Canva REST APIs (formerly the Connect API).

Installation

Follow n8n's guide to installing community nodes, using the package name @canva/n8n-nodes-canva.

Credentials

To connect n8n to Canva, you create an app in the Canva Developer Portal, then paste its details into n8n. It takes about five minutes.

1. Create an app in the Canva Developer Portal

  1. Go to Your apps in the Canva Developer Portal and create a new app. Choose Private if your team is on Canva Enterprise (the app stays inside your team), or Public otherwise. You can't change this later.

  2. Open Outside Canva and click Start integrating.

  3. On Outside Canva → Configuration:

    • Turn on Canva REST APIs.

    • Under Credentials, copy the Client ID, then click Generate secret and copy the secret too. Canva only shows the secret once, so keep it somewhere safe.

    • Under Scopes, turn on all of these:

      • asset: Read and Write
      • brandtemplate:content: Read and Write
      • brandtemplate:meta: Read
      • comment: Read and Write
      • design:content: Read and Write
      • design:meta: Read
      • folder: Read and Write
      • profile: Read

      The node asks for all of them when you connect, and Canva refuses the connection if any are missing.

  4. On Outside Canva → Redirect URLs, paste n8n's redirect URL into URL 1. You'll find it in the n8n credential screen (step 2 below). It usually looks like this:

    • n8n Cloud: https://oauth.n8n.cloud/oauth2/callback
    • Self-hosted n8n: https://your-n8n-instance.com/rest/oauth2-credential/callback
    • n8n on your computer: http://127.0.0.1:5678/rest/oauth2-credential/callback (Canva doesn't accept localhost, so use 127.0.0.1)

2. Connect it in n8n

  1. In n8n, go to Credentials → New and pick Canva OAuth2 API.
  2. Paste the Client ID and Client secret from step 1.
  3. Click Connect my account and approve access in Canva.

Operations

A few labels you'll see below:

  • (Preview): uses one of Canva's preview APIs. See Preview APIs.
  • 💎: needs a paid Canva plan, such as Canva Pro.
  • ✨: uses the Canva user's AI credits. See AI credits.

Asset

OperationWhat it does
DeleteDelete an asset
GetGet an asset's details
UpdateRename an asset or change its tags
Upload From URLUpload an image or video from a public URL

Autofill

💎 Needs a Canva Pro plan or above.

OperationWhat it does
CreateFill a brand template with your data to make a new design

Brand Template

💎 Needs a Canva plan with premium features, such as Canva Pro.

OperationWhat it does
GetGet a brand template's details
Get DatasetGet the fields you can autofill in a brand template
Get ManyList the brand templates you can use
Publish (Preview)Publish a design as a brand template

Comment (Preview API)

OperationWhat it does
Create ReplyReply to a comment thread
Create ThreadStart a comment thread on a design
Get ReplyGet one reply from a thread
Get ThreadGet a comment thread
List RepliesList the replies in a thread

Design

OperationWhat it does
CreateCreate a blank design, optionally with an image in it
GetGet a design's details
Get DatasetGet the fields you can autofill in a design
Get Export FormatsSee which file formats a design can be exported to
Get ManyList your designs
Get Pages (Preview)Get details about each page in a design

Design Import

OperationWhat it does
Import From Image (Preview)✨ Turn a flat image into an editable design with Magic Layers
Import From URLImport a file from a public URL, such as a PPTX or PDF, as a design

Export

OperationWhat it does
Export DesignExport a design as a PDF, PNG, JPG, GIF, MP4, PPTX, and more, and get download links

Folder

OperationWhat it does
CreateCreate a folder
DeleteDelete a folder
GetGet a folder's details
List ItemsList what's in a folder
Move ItemMove a design, image, or folder to another folder
UpdateRename a folder

Generation (Preview API)

OperationWhat it does
Generate Design✨ Create a presentation or Canva doc from a written brief
Generate Image✨ Create an image from a text prompt

Image Transformation (Preview API)

💎 Needs a Canva plan with premium features, such as Canva Pro.

OperationWhat it does
Remove Background✨ Remove the background from an image and save it as a new image

Merge (Preview API)

OperationWhat it does
Create Merge JobCombine pages from other designs into a new one, or rearrange an existing design

Resize

💎 Needs a Canva plan with premium features, such as Canva Pro. Canva Free users get a limited trial.

OperationWhat it does
Create Resize JobMake a copy of a design in a new size

User

OperationWhat it does
Get CapabilitiesSee which Canva features the connected user can use
Get MeGet the connected user's ID and team ID
Get ProfileGet the connected user's display name

Good to know

Waiting for Canva to finish

Some operations start a job in Canva and wait for it to finish: Upload From URL, Autofill, both imports, Export, Merge, Resize, and all the AI features. While it waits, the node checks every few seconds (Poll Interval) and gives up after a while (Max Wait, 60 to 300 seconds by default, depending on the operation). Big jobs, like long presentations, can take a couple of minutes.

If a job fails, the error tells you Canva's reason, such as a prompt that didn't pass Canva's safety checks.

When Canva is busy, or a quota runs out

If Canva says it's getting too many requests, the node waits and tries again, up to three times. If the user has run out of AI credits, the Canva app has used up its own credit quota, or the user has used up their free autofill or resize trial, waiting won't help, so the node stops straight away and says so.

Preview APIs

Operations marked (Preview) use Canva APIs that are still in preview. They can change without notice, and apps that use them can't be submitted for Canva's public review. They're great for internal workflows and experiments.

AI credits

Import From Image, Generate Design, Generate Image, and Remove Background use the Canva user's AI credits every time they run. Checking on a running job is free.

Not every account can use every AI feature. User → Get Capabilities lists what the connected user can do, for example image_to_design_imports (Magic Layers), background_removal, and design_generation.

Tips

  • Autofill: run Brand Template → Get Dataset first. Your data's field names need to match the template's fields.
  • Import From Image (Magic Layers): works best on flat graphics like posters, flyers, and social posts. Upload the image first with Asset → Upload From URL, then use its ID: {{ $json.job.asset.id }}. Magic Layers must be allowed in your team's Canva settings.
  • Remove Background: saves the result as a new image and leaves the original as it is. The new image's ID is at job.result.asset.id.
  • Generate Design: the more your brief says about the topic, audience, wording, tone, and look, the better the result. For presentations, you can also plan the slides with Outline, using Canva's format: {"sections": [{"title": "…", "description": "…", "points": ["…"]}]} (up to 100 slides). Leave sections empty to let Canva decide. If an earlier node gives you just a list of slides, use {{ { "sections": $json.slides } }}. Open the new design from job.result.design.urls.edit_url (the link works for 30 days).
  • Generate Image: leave Model on Auto unless you need a specific one. Images are saved to the user's Uploads by default, so you can use job.result.image.asset.id in Design → Create or Autofill. The download link at job.result.image.url works for 24 hours. To pass the file to another node, download it with an HTTP Request node.
  • Move Item: use root as the To Folder ID to move something to the top level of your Projects.

Run it locally

For developers who want to work on this node.

You'll need Node.js 24.15 or later and npm. Then run:

npm install
npm run dev

This builds the node and starts n8n at http://127.0.0.1:5678 with the Canva node loaded and hot reload turned on. When you set up your Canva app, use http://127.0.0.1:5678/rest/oauth2-credential/callback as the redirect URL.

If npm run dev fails with EACCES: permission denied, rename ... in ~/.npm/_cacache: your npm cache has files owned by another user, usually left behind by running npm with sudo. Take ownership of the cache, then try again:

sudo chown -R $(id -u):$(id -g) ~/.npm

Resources

版本与发布记录

@canva/n8n-nodes-canva 共发布 14 个版本,首次发布于 2026/07/17;过去 12 个月发布了 14 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.4latest2026/11/063 天前
0.2.32026/10/2713 天前
0.2.22026/10/2218 天前
0.2.12026/10/2119 天前
0.2.02026/10/1525 天前
0.1.82026/10/1426 天前

关于 @canva/n8n-nodes-canva 的常见问题

@canva/n8n-nodes-canva 是什么?

Canva API integration for n8n. Create, edit, and export designs, folders, and more.

如何安装 @canva/n8n-nodes-canva?

在项目目录运行 npm install @canva/n8n-nodes-canva,或使用 pnpm add / yarn add / bun add。

@canva/n8n-nodes-canva 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/canva__n8n-nodes-canva 是否存在。

@canva/n8n-nodes-canva 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@canva/n8n-nodes-canva 可以商用吗?

@canva/n8n-nodes-canva 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@canva/n8n-nodes-canva 的下载量有多少?

根据 npm 官方下载统计,@canva/n8n-nodes-canva 在 2026/10/09 – 2026/11/07 这 30 天内被下载 1,718 次,日均约 57 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@canva/n8n-nodes-canva 还在维护吗?

最新版本 0.2.4 发布于 2026/11/06(3 天前);至今共发布 14 个版本,其中过去 12 个月发布了 14 个;首次发布于 2026/07/17。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。