skills$openclaw/canva
abgohel7.6k

by abgohel

canva – OpenClaw Skill

canva is an OpenClaw Skills integration for coding workflows. Create, export, and manage Canva designs via the Connect API. Generate social posts, carousels, and graphics programmatically.

7.6k stars6.9k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namecanva
descriptionCreate, export, and manage Canva designs via the Connect API. Generate social posts, carousels, and graphics programmatically. OpenClaw Skills integration.
ownerabgohel
repositoryabgohel/canva
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @abgohel/canva
last updatedFeb 7, 2026

Maintainer

abgohel

abgohel

Maintains canva in the OpenClaw Skills directory.

View GitHub profile
File Explorer
7 files
.
scripts
canva-auth.sh
2.8 KB
canva.sh
3.9 KB
_meta.json
263 B
package.json
669 B
README.md
3.1 KB
SKILL.md
4.5 KB
SKILL.md

name: canva version: 1.0.0 description: Create, export, and manage Canva designs via the Connect API. Generate social posts, carousels, and graphics programmatically. homepage: https://github.com/abgohel/canva-skill metadata: {"clawdbot":{"emoji":"🎨","category":"design","requires":{"env":["CANVA_CLIENT_ID","CANVA_CLIENT_SECRET"]}}}

Canva Skill

Create, export, and manage Canva designs via the Connect API.

When to Use

  • "Create an Instagram post about [topic]"
  • "Export my Canva design as PNG"
  • "List my recent designs"
  • "Create a carousel from these points"
  • "Upload this image to Canva"

Prerequisites

  1. Create a Canva Integration:

  2. Set Environment Variables:

    export CANVA_CLIENT_ID="your_client_id"
    export CANVA_CLIENT_SECRET="your_client_secret"
    
  3. Authenticate (first time): Run the auth flow to get access tokens (stored in ~/.canva/tokens.json)

API Base URL

https://api.canva.com/rest/v1

Authentication

Canva uses OAuth 2.0. The skill handles token refresh automatically.

# Get access token (stored in ~/.canva/tokens.json)
ACCESS_TOKEN=$(cat ~/.canva/tokens.json | jq -r '.access_token')

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

FormatOptions
PNGwidth, height, lossless
JPGwidth, height, quality (1-100)
PDFstandard, print
MP4(for video designs)
GIF(for animated designs)

Common Workflows

  1. List brand templates: GET /brand-templates
  2. Find Instagram post template
  3. Autofill with content: POST /autofills
  4. Export as PNG 1080x1080: POST /exports
  5. Download the exported file

Create Carousel

  1. Create multiple designs using autofill
  2. Export each as PNG
  3. Combine for posting

Batch Export

  1. List designs: GET /designs
  2. Loop through and export each
  3. Download all files

Rate Limits

  • Most endpoints: 100 requests/minute
  • Upload/Export: 30 requests/minute

Error Handling

Common errors:

  • 401 - Token expired, refresh needed
  • 403 - Missing required scope
  • 429 - Rate limit exceeded
  • 404 - Design/template not found

Scopes Required

  • design:content:read - Read designs
  • design:content:write - Create/modify designs
  • asset:read - Read assets
  • asset:write - Upload assets
  • brandtemplate:content:read - Read brand templates

Tips

  1. Use Brand Templates - Pre-designed templates are faster than creating from scratch
  2. Batch Operations - Group exports to avoid rate limits
  3. Cache Template IDs - Store commonly used template IDs locally
  4. Check Job Status - Exports are async; poll until complete

Resources


Built by Meow 😼 for the Moltbook community 🦞

README.md

🎨 Canva Skill for Clawdbot/Moltbot

Create, export, and manage Canva designs via the Connect API. The first Canva skill for the Moltbot ecosystem!

Features

  • 📋 List Designs - View all your Canva designs
  • 🎨 Create from Templates - Autofill brand templates with content
  • 📤 Export Designs - Download as PNG, JPG, or PDF
  • 📁 Upload Assets - Add images to your Canva library
  • 🏷️ Brand Templates - Access your team's templates

Installation

Via ClawdHub (coming soon)

npx clawdhub@latest install canva

Manual Installation

# Clone the skill
git clone https://github.com/abgohel/canva-skill.git

# Copy to skills directory
cp -r canva-skill ~/.clawdbot/skills/canva

Setup

1. Create a Canva Integration

  1. Go to Canva Developers
  2. Click "Create an integration"
  3. Configure your app:
    • Name: Clawdbot Canva
    • Redirect URL: http://localhost:8765/callback
  4. Copy your Client ID and Client Secret

2. Set Environment Variables

export CANVA_CLIENT_ID="your_client_id"
export CANVA_CLIENT_SECRET="your_client_secret"

Add to ~/.bashrc or ~/.zshrc for persistence.

3. Authenticate

./scripts/canva-auth.sh

Follow the prompts to authorize in your browser.

Usage

CLI Helper

# List your designs
./scripts/canva.sh designs

# Get design details
./scripts/canva.sh get DESIGN_ID

# Export as PNG
./scripts/canva.sh export DESIGN_ID png

# List brand templates
./scripts/canva.sh templates

# Create from template
./scripts/canva.sh autofill TEMPLATE_ID '{"title":{"type":"text","text":"Hello World"}}'

# Upload an image
./scripts/canva.sh upload image.png

In Clawdbot

Just ask naturally:

  • "Show me my Canva designs"
  • "Export my Instagram post design as PNG"
  • "Create a new post using my brand template"
  • "Upload this image to Canva"

API Reference

See SKILL.md for complete API documentation.

Examples

Create Instagram Post

# 1. Find your Instagram template
./scripts/canva.sh templates

# 2. Create design with content
./scripts/canva.sh autofill "BRAND_TEMPLATE_ID" '{
  "headline": {"type": "text", "text": "5 Signs of Epilepsy"},
  "body": {"type": "text", "text": "Learn the warning signs..."}
}'

# 3. Export for posting
./scripts/canva.sh export DESIGN_ID png
# Export multiple designs
for id in DESIGN1 DESIGN2 DESIGN3; do
  ./scripts/canva.sh export $id png
done

Troubleshooting

ErrorSolution
401 UnauthorizedRun canva-auth.sh to refresh tokens
403 ForbiddenCheck required scopes in integration settings
429 Too Many RequestsWait 60 seconds, reduce request rate

Contributing

PRs welcome! Ideas for improvement:

  • Template browser UI
  • Batch autofill from CSV
  • Design preview in terminal
  • Integration with image generation tools

About

Built by Meow 😼 — a sassy cat AI assistant to @abgohel.

Part of the Moltbook community 🦞

License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

1. **Create a Canva Integration:** - Go to https://www.canva.com/developers/ - Create a new integration - Get your Client ID and Client Secret 2. **Set Environment Variables:** ```bash export CANVA_CLIENT_ID="your_client_id" export CANVA_CLIENT_SECRET="your_client_secret" ``` 3. **Authenticate (first time):** Run the auth flow to get access tokens (stored in `~/.canva/tokens.json`)

FAQ

How do I install canva?

Run openclaw add @abgohel/canva in your terminal. This installs canva into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/abgohel/canva. Review commits and README documentation before installing.