canva-common-errors

Featured

Diagnose and fix Canva Connect API errors and HTTP status codes. Use when encountering Canva errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "canva error", "fix canva", "canva not working", "debug canva", "canva 401", "canva 429".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Canva Common Errors ## Overview Quick reference for the most common Canva Connect API errors at `api.canva.com/rest/v1/*` with real HTTP status codes, error payloads, and fixes. ## Error Reference ### 401 Unauthorized — Token Expired or Invalid ```json { "error": "invalid_token", "message": "The access token is invalid or expired" } ``` **Cause:** Access tokens expire after ~4 hours. Token may be malformed or revoked. **Fix:** ```typescript // Refresh the token const res = await fetch('https://api.canva.com/rest/v1/oauth/token', { method: 'POST', headers: { 'Authorization': `Basic ${Buffer.from(`${clientId}:${clientSecret}`).toString('base64')}`, 'Content-Type': 'application/x-www-form-urlencoded', }, body: new URLSearchParams({ grant_type: 'refresh_token', refresh_token: storedRefreshToken, }), }); const { access_token, refresh_token } = await res.json(); // IMPORTANT: Each refresh token is single-use — store the new one ``` --- ### 403 Forbidden — Missing Scope or Insufficient Permissions ```json { "error": "insufficient_scope", "message": "Required scope: design:content:write" } ``` **Cause:** Your integration doesn't have the required OAuth scope enabled, or the user isn't authorized for the resource. **Fix:** 1. Check required scope in the [Scopes Reference](https://www.canva.dev/docs/connect/appendix/scopes/) 2. Enable the scope in your integration settings at [canva.dev](https://www.canva.dev) 3. Re-authorize the user — existing ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category