Canva Skill
/install canva-skill
Canva Skill
Use Canva Connect API for design creation, export, and asset upload workflows.
Prerequisites
Create a Canva Integration:
- Go to https://www.canva.com/developers/
- Create a new integration
- Get your Client ID and Client Secret
Set environment variables:
export CANVA_CLIENT_ID="your_client_id"
export CANVA_CLIENT_SECRET="your_client_secret"
Authenticate on first use and store tokens in ~/.canva/tokens.json.
API Base URL
https://api.canva.com/rest/v1
Authentication
Get access token from local token file:
ACCESS_TOKEN=$(cat ~/.canva/tokens.json | jq -r '.access_token')
Refresh tokens automatically when the auth flow supports it.
Core Operations
List Designs
curl -s "https://api.canva.com/rest/v1/designs" \
-H "Authorization: Bearer $ACCESS_TOKEN" | jq .
Get Design Details
curl -s "https://api.canva.com/rest/v1/designs/{designId}" \
-H "Authorization: Bearer $ACCESS_TOKEN" | jq .
Create Design from Template
curl -X POST "https://api.canva.com/rest/v1/autofills" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"brand_template_id": "TEMPLATE_ID",
"data": {
"title": {"type": "text", "text": "Your Title"},
"body": {"type": "text", "text": "Your body text"}
}
}'
Export Design
Start export job:
curl -X POST "https://api.canva.com/rest/v1/exports" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"design_id": "DESIGN_ID",
"format": {"type": "png", "width": 1080, "height": 1080}
}'
Check export status:
curl -s "https://api.canva.com/rest/v1/exports/{jobId}" \
-H "Authorization: Bearer $ACCESS_TOKEN" | jq .
Upload Asset
curl -X POST "https://api.canva.com/rest/v1/asset-uploads" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/octet-stream" \
-H 'Asset-Upload-Metadata: {"name": "my-image.png"}' \
--data-binary @image.png
List Brand Templates
curl -s "https://api.canva.com/rest/v1/brand-templates" \
-H "Authorization: Bearer $ACCESS_TOKEN" | jq .
Export Formats
- PNG: width, height, lossless
- JPG: width, height, quality (1-100)
- PDF: standard, print
- MP4: for video designs
- GIF: for animated designs
Common Workflows
Create Instagram Post
- List brand templates
- Find an Instagram post template
- Autofill with content
- Export as PNG 1080x1080
- Download exported file
Create Carousel
- Create multiple designs using autofill
- Export each as PNG
- Combine for posting
Batch Export
- List designs
- Loop through and export each
- Download all files
Error Handling
Handle common errors clearly:
- 401: Token expired, refresh needed
- 403: Missing required scope
- 404: Design/template not found
- 429: Rate limit exceeded
Required Scopes
design:content:readdesign:content:writeasset:readasset:writebrandtemplate:content:read
Tips
- Prefer Brand Templates for posters and slides when available.
- Batch exports to reduce repetitive work.
- Cache commonly used template IDs locally.
- Poll export jobs until complete before downloading.
Current Status
This local skill skeleton is installed in the workspace, but Canva API use is not ready until the integration credentials and first-time OAuth authentication are completed.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install canva-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/canva-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Canva Skill 是什么?
Create, export, upload assets to, and manage Canva designs via the Canva Connect API. Use when the user wants to create social posts, posters, PPT/slide visu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 69 次。
如何安装 Canva Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install canva-skill」即可一键安装,无需额外配置。
Canva Skill 是免费的吗?
是的,Canva Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Canva Skill 支持哪些平台?
Canva Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Canva Skill?
由 jiangwill2023(@jiangwill2023)开发并维护,当前版本 v1.0.0。