Skip to main content
canva-core-workflow-b Execute Canva asset management, brand template autofill, and folder organization.
Use when uploading assets, autofilling brand templates with dynamic data,
or organizing designs into folders via the Connect API.
Trigger with phrases like "canva assets", "canva brand template",
"canva autofill", "canva folders", "canva upload image".
Aller à l'installation Skills Marketplace Découvrez et explorez les compétences IA créées par la communauté.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Copier le promptAfficher les détails du prompt Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill canva-core-workflow-bLa commande reste sur une seule ligne. Faites défiler horizontalement pour la vérifier avant de la copier.
Vous préférez une copie locale ? Téléchargez les fichiers actuellement disponibles dans SkillsMP.
Télécharger Zip Téléchargement... Métiers associés SOC
Basé sur la classification professionnelle SOC
name canva-core-workflow-b description Execute Canva asset management, brand template autofill, and folder organization.
Use when uploading assets, autofilling brand templates with dynamic data,
or organizing designs into folders via the Connect API.
Trigger with phrases like "canva assets", "canva brand template",
"canva autofill", "canva folders", "canva upload image".
allowed-tools Read, Write, Edit, Bash(npm:*), Grep version 1.5.0 license MIT author Jeremy Longshore <jeremy@intentsolutions.io> tags ["saas","design","canva"] compatibility Designed for Claude Code
Canva Core Workflow B — Assets, Autofill & Folders
Overview
Secondary workflow: upload assets to Canva, autofill brand templates with dynamic data (text, images, charts), and organize content with folders. Autofill requires a Canva Enterprise organization.
Prerequisites
Completed canva-install-auth with valid access token
Scopes: asset:read, asset:write, brandtemplate:meta:read, brandtemplate:content:read, design:content:write, folder:read, folder:write
Asset Management
Upload an Asset (Binary)
import { readFileSync } from 'fs' ;
async function uploadAsset (
filePath : string ,
name : string ,
token : string
): Promise <{ id : string ; status : string }> {
const nameBase64 = Buffer .from (name).toString ('base64' );
const fileData = readFileSync (filePath);
const res = await fetch ('https://api.canva.com/rest/v1/asset-uploads' , {
: ,
: {
: ,
: ,
: . ({ : nameBase64 }),
},
: fileData,
});
(!res. ) ( );
res. ();
}
uploadJob = ( , , token);
method
'POST'
headers
'Authorization'
`Bearer ${token} `
'Content-Type'
'application/octet-stream'
'Asset-Upload-Metadata'
JSON
stringify
name_base64
body
if
ok
throw
new
Error
`Upload failed: ${res.status} `
return
json
const
await
uploadAsset
'./hero-banner.png'
'Hero Banner Q1'
Upload an Asset via URL
const { job } = await canvaAPI ('/url-asset-uploads' , token, {
method : 'POST' ,
body : JSON .stringify ({
name : 'Product Photo' ,
url : 'https://example.com/images/product-shot.jpg' ,
}),
});
Get, Update, Delete Assets
const asset = await canvaAPI (`/assets/${assetId} ` , token);
await canvaAPI (`/assets/${assetId} ` , token, {
method : 'PATCH' ,
body : JSON .stringify ({ name : 'Updated Name' , tags : ['brand' , 'q1' ] }),
});
await canvaAPI (`/assets/${assetId} ` , token, { method : 'DELETE' });
Brand Template Autofill
Step 1: List Available Brand Templates
const templates = await canvaAPI ('/brand-templates' , token);
for (const tmpl of templates.items ) {
console .log (`${tmpl.title} — ID: ${tmpl.id} ` );
}
Step 2: Get Template Dataset (Autofillable Fields)
const { dataset } = await canvaAPI (
`/brand-templates/${templateId} /dataset` , token
);
for (const [field, config] of Object .entries (dataset)) {
console .log (`Field: ${field} , Type: ${config.type } ` );
}
Step 3: Create Design from Template via Autofill
const { job } = await canvaAPI ('/autofills' , token, {
method : 'POST' ,
body : JSON .stringify ({
brand_template_id : templateId,
title : 'March Newsletter — Generated' ,
data : {
headline : {
type : 'text' ,
text : 'Spring Collection Is Here' ,
},
hero_image : {
type : 'image' ,
asset_id : uploadedAssetId,
},
price : {
type : 'text' ,
text : '$29.99' ,
},
},
}),
});
let autofillJob = job;
while (autofillJob.status === 'in_progress' ) {
await new Promise (r => setTimeout (r, 2000 ));
const poll = await canvaAPI (`/autofills/${autofillJob.id} ` , token);
autofillJob = poll.job ;
}
if (autofillJob.status === 'success' ) {
const newDesign = autofillJob.result .design ;
console .log (`Autofilled design: ${newDesign.id} ` );
console .log (`Edit: ${newDesign.urls.edit_url} ` );
}
Autofill with Chart Data const { job } = await canvaAPI ('/autofills' , token, {
method : 'POST' ,
body : JSON .stringify ({
brand_template_id : templateId,
title : 'Q1 Report' ,
data : {
sales_chart : {
type : 'chart' ,
chart_data : {
rows : [
{ cells : [{ type : 'string' , value : 'Jan' }, { type : 'number' , value : 45000 }] },
{ cells : [{ type : 'string' , value : 'Feb' }, { type : 'number' , value : 52000 }] },
{ cells : [{ type : 'string' , value : 'Mar' }, { type : 'number' , value : 61000 }] },
],
},
},
},
}),
});
Folder Management
const { folder } = await canvaAPI ('/folders' , token, {
method : 'POST' ,
body : JSON .stringify ({
name : 'Q1 Campaign Assets' ,
parent_folder_id : 'root' ,
}),
});
console .log (`Folder created: ${folder.id} ` );
const items = await canvaAPI (`/folders/${folder.id} /items` , token);
await canvaAPI ('/folders/move' , token, {
method : 'PATCH' ,
body : JSON .stringify ({
item_id : designId,
to_folder_id : folder.id ,
}),
});
Error Handling Error Cause Solution 400 Design title invalid Title empty or > 255 chars Validate input 403 Forbidden Not Enterprise org (autofill) Requires Canva Enterprise 404 Not Found Template ID doesn't exist Verify template ID file_too_bigAsset exceeds size limit Compress or resize import_failedUnsupported file format Check supported formats autofill_errorField name mismatch Check dataset first
Resources
Next Steps For common errors, see canva-common-errors.