| name | canva-webhooks-events |
| description | Implement Canva Connect API webhook handling with JWK signature verification.
Use when setting up webhook endpoints, handling Canva event notifications,
or implementing real-time design collaboration features.
Trigger with phrases like "canva webhook", "canva events",
"canva notifications", "handle canva events", "canva JWK".
|
| allowed-tools | Read, Write, Edit, Bash(curl:*) |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","design","canva"] |
| compatibility | Designed for Claude Code |
Canva Webhooks & Events
Overview
Receive real-time notifications from Canva via webhooks when users comment on designs, request folder access, share designs, or interact with your integration. Canva sends signed JWT payloads verified with public JWK keys.
Prerequisites
- Canva integration with
collaboration:event scope enabled
- HTTPS endpoint accessible from the internet
- JWK verification library (
jose recommended)
- Webhook URL configured in your integration settings
Setup
Step 1: Configure Webhooks in Canva
- Go to your integration settings at canva.dev
- Under Notifications, enable collaboration:event
- Enter your webhook URL:
https://your-app.com/webhooks/canva
- Save the configuration
Step 2: Implement JWK Signature Verification
import { createRemoteJWKSet, jwtVerify, JWTPayload } from 'jose';
const CANVA_JWKS = createRemoteJWKSet(
new URL('https://api.canva.com/rest/v1/connect/keys')
);
interface CanvaWebhookPayload extends JWTPayload {
notification_type: string;
notification: Record<string, any>;
timestamp: string;
user_id: string;
team_id: string;
}
(): < | > {
{
{ payload } = (rawBody, , {
: ,
});
payload ;
} (error) {
.(, error);
;
}
}