miro-webhooks-events
Implement Miro REST API v2 webhooks with board subscriptions, event handling, and signature verification for real-time board change notifications. Trigger with phrases like "miro webhook", "miro events", "miro board subscription", "miro real-time", "miro notifications".
Best use case
miro-webhooks-events is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Implement Miro REST API v2 webhooks with board subscriptions, event handling, and signature verification for real-time board change notifications. Trigger with phrases like "miro webhook", "miro events", "miro board subscription", "miro real-time", "miro notifications".
Teams using miro-webhooks-events should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/miro-webhooks-events/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How miro-webhooks-events Compares
| Feature / Agent | miro-webhooks-events | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Implement Miro REST API v2 webhooks with board subscriptions, event handling, and signature verification for real-time board change notifications. Trigger with phrases like "miro webhook", "miro events", "miro board subscription", "miro real-time", "miro notifications".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# Miro Webhooks & Events
## Overview
Receive real-time notifications when items on a Miro board change. Miro uses **board subscriptions** via the `/v2-experimental/webhooks/board_subscriptions` endpoint. All board item types are supported except tags, connectors, and comments.
## Prerequisites
- Access token with `boards:read` scope
- HTTPS endpoint accessible from the internet
- Webhook signing secret (generated when creating subscription)
## Create a Board Subscription
```typescript
// POST https://api.miro.com/v2-experimental/webhooks/board_subscriptions
async function createBoardSubscription(boardId: string, callbackUrl: string) {
const response = await fetch(
'https://api.miro.com/v2-experimental/webhooks/board_subscriptions',
{
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.MIRO_ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
boardId,
callbackUrl, // Must be HTTPS
status: 'enabled', // 'enabled' | 'disabled'
}),
}
);
const subscription = await response.json();
console.log(`Subscription created: ${subscription.id}`);
console.log(`Type: ${subscription.type}`); // 'board_subscription'
return subscription;
}
```
## Manage Subscriptions
```typescript
// List subscriptions
// GET https://api.miro.com/v2-experimental/webhooks/board_subscriptions
const list = await miroFetch('/v2-experimental/webhooks/board_subscriptions');
// Get a specific subscription
// GET https://api.miro.com/v2-experimental/webhooks/board_subscriptions/{subscription_id}
const sub = await miroFetch(`/v2-experimental/webhooks/board_subscriptions/${subId}`);
// Update subscription (enable/disable)
// PATCH https://api.miro.com/v2-experimental/webhooks/board_subscriptions/{subscription_id}
await miroFetch(`/v2-experimental/webhooks/board_subscriptions/${subId}`, 'PATCH', {
status: 'disabled',
});
// Delete subscription
// DELETE https://api.miro.com/v2-experimental/webhooks/board_subscriptions/{subscription_id}
await miroFetch(`/v2-experimental/webhooks/board_subscriptions/${subId}`, 'DELETE');
```
## Event Payload Structure
When a board item is created, updated, or deleted, Miro sends a POST request to your callback URL:
```json
{
"event": "board_subscription_changed",
"type": "update",
"boardId": "uXjVN1234567890",
"item": {
"id": "3458764500000001",
"type": "sticky_note"
},
"changes": [
{
"property": "data.content",
"previousValue": "Old text",
"newValue": "Updated text"
}
],
"createdAt": "2025-01-15T10:30:00Z",
"createdBy": {
"id": "user-123",
"type": "user"
}
}
```
### Event Types
| `type` Value | Description | Item Types |
|-------------|-------------|------------|
| `create` | New item added to board | All except tags, connectors, comments |
| `update` | Item content/position/style changed | All except tags, connectors, comments |
| `delete` | Item removed from board | All except tags, connectors, comments |
## Webhook Handler (Express.js)
```typescript
import express from 'express';
import crypto from 'crypto';
const app = express();
// CRITICAL: Use raw body parser for signature verification
app.post('/webhooks/miro',
express.raw({ type: 'application/json' }),
async (req, res) => {
// Step 1: Verify signature
const signature = req.headers['x-miro-signature'] as string;
if (!verifySignature(req.body, signature)) {
console.error('Invalid webhook signature — possible forgery');
return res.status(401).json({ error: 'Invalid signature' });
}
// Step 2: Parse event
const event = JSON.parse(req.body.toString());
// Step 3: Respond quickly (within 10 seconds)
res.status(200).json({ received: true });
// Step 4: Process asynchronously
processEvent(event).catch(err =>
console.error(`Failed to process event: ${err.message}`)
);
}
);
function verifySignature(rawBody: Buffer, signature: string): boolean {
if (!signature) return false;
const secret = process.env.MIRO_WEBHOOK_SECRET!;
const expected = crypto
.createHmac('sha256', secret)
.update(rawBody)
.digest('hex');
try {
return crypto.timingSafeEqual(
Buffer.from(signature, 'hex'),
Buffer.from(expected, 'hex'),
);
} catch {
return false;
}
}
```
## Event Processing
```typescript
interface MiroBoardEvent {
event: 'board_subscription_changed';
type: 'create' | 'update' | 'delete';
boardId: string;
item: { id: string; type: string };
changes?: Array<{ property: string; previousValue: unknown; newValue: unknown }>;
createdAt: string;
createdBy: { id: string; type: string };
}
async function processEvent(event: MiroBoardEvent): Promise<void> {
const { type, boardId, item } = event;
switch (type) {
case 'create':
console.log(`New ${item.type} created on board ${boardId}: ${item.id}`);
// Fetch full item details if needed
const fullItem = await miroFetch(`/v2/boards/${boardId}/items/${item.id}`);
await syncToDatabase(fullItem);
break;
case 'update':
console.log(`${item.type} updated on board ${boardId}: ${item.id}`);
if (event.changes) {
for (const change of event.changes) {
console.log(` ${change.property}: ${change.previousValue} → ${change.newValue}`);
}
}
await updateInDatabase(item.id, event.changes);
break;
case 'delete':
console.log(`${item.type} deleted from board ${boardId}: ${item.id}`);
await deleteFromDatabase(item.id);
break;
}
}
```
## Idempotency Guard
Miro may deliver the same event multiple times. Prevent duplicate processing:
```typescript
import { Redis } from 'ioredis';
const redis = new Redis(process.env.REDIS_URL);
async function processOnce(eventId: string, handler: () => Promise<void>): Promise<void> {
const key = `miro:webhook:${eventId}`;
// SET NX with TTL — returns 'OK' only if key was newly set
const result = await redis.set(key, '1', 'EX', 86400 * 7, 'NX'); // 7 days TTL
if (result !== 'OK') {
console.log(`Duplicate event ${eventId} — skipping`);
return;
}
await handler();
}
```
## Webhook Testing
```bash
# Test with ngrok for local development
ngrok http 3000
# Register https://your-ngrok.ngrok-free.app/webhooks/miro as callback URL
# Manually test your endpoint
curl -X POST http://localhost:3000/webhooks/miro \
-H "Content-Type: application/json" \
-H "X-Miro-Signature: $(echo -n '{"event":"board_subscription_changed","type":"create","boardId":"test","item":{"id":"123","type":"sticky_note"}}' | openssl dgst -sha256 -hmac "$MIRO_WEBHOOK_SECRET" | awk '{print $2}')" \
-d '{"event":"board_subscription_changed","type":"create","boardId":"test","item":{"id":"123","type":"sticky_note"}}'
# Use Pipedream for webhook debugging
# See: https://developers.miro.com/docs/set-up-a-test-endpoint-for-webhooks
```
## Error Handling
| Issue | Cause | Solution |
|-------|-------|----------|
| No events received | Subscription disabled | Check subscription status |
| Invalid signature | Wrong secret | Verify MIRO_WEBHOOK_SECRET matches app settings |
| Event processing timeout | Slow handler | Return 200 immediately, process async |
| Duplicate events | Miro retry delivery | Implement idempotency with event ID |
| Missing item types | Tags/connectors/comments excluded | Use polling for those types |
## Resources
- [Getting Started with Webhooks](https://developers.miro.com/docs/getting-started-with-webhooks)
- [Create Board Subscription](https://developers.miro.com/reference/create-board-subscription)
- [Set Up Test Endpoint](https://developers.miro.com/docs/set-up-a-test-endpoint-for-webhooks)
- [Webhooks with Python](https://developers.miro.com/docs/getting-started-with-webhooks-python)
## Next Steps
For performance optimization, see `miro-performance-tuning`.Related Skills
workhuman-webhooks-events
Workhuman webhooks events for employee recognition and rewards API. Use when integrating Workhuman Social Recognition, or building recognition workflows with HRIS systems. Trigger: "workhuman webhooks events".
wispr-webhooks-events
Wispr Flow webhooks events for voice-to-text API integration. Use when integrating Wispr Flow dictation, WebSocket streaming, or building voice-powered applications. Trigger: "wispr webhooks events".
windsurf-webhooks-events
Build Windsurf extensions and integrate with VS Code extension API events. Use when building custom Windsurf extensions, tracking editor events, or integrating Windsurf with external tools via extension development. Trigger with phrases like "windsurf extension", "windsurf events", "windsurf plugin", "build windsurf extension", "windsurf API".
webflow-webhooks-events
Implement Webflow webhook registration, signature verification, and event handling for form_submission, site_publish, ecomm_new_order, page_created, and more. Use when setting up webhook endpoints, implementing event-driven workflows, or handling Webflow notifications. Trigger with phrases like "webflow webhook", "webflow events", "webflow webhook signature", "handle webflow events", "webflow notifications".
vercel-webhooks-events
Implement Vercel webhook handling with signature verification and event processing. Use when setting up webhook endpoints, processing deployment events, or building integrations that react to Vercel deployment lifecycle. Trigger with phrases like "vercel webhook", "vercel events", "vercel deployment.ready", "handle vercel events", "vercel webhook signature".
veeva-webhooks-events
Veeva Vault webhooks events for REST API and clinical operations. Use when working with Veeva Vault document management and CRM. Trigger: "veeva webhooks events".
vastai-webhooks-events
Build event-driven workflows around Vast.ai instance lifecycle events. Use when monitoring instance status changes, implementing auto-recovery, or building event-driven GPU orchestration. Trigger with phrases like "vastai events", "vastai instance monitoring", "vastai status changes", "vastai lifecycle events".
twinmind-webhooks-events
Handle TwinMind meeting events including transcription completion, action item extraction, and calendar sync notifications. Use when implementing webhooks events, or managing TwinMind meeting AI operations. Trigger with phrases like "twinmind webhooks events", "twinmind webhooks events".
together-webhooks-events
Together AI webhooks events for inference, fine-tuning, and model deployment. Use when working with Together AI's OpenAI-compatible API. Trigger: "together webhooks events".
techsmith-webhooks-events
TechSmith webhooks events for Snagit COM API and Camtasia automation. Use when working with TechSmith screen capture and video editing automation. Trigger: "techsmith webhooks events".
supabase-webhooks-events
Implement Supabase database webhooks, pg_net async HTTP, LISTEN/NOTIFY, and Edge Function event handlers with signature verification. Use when setting up database webhooks for INSERT/UPDATE/DELETE events, sending HTTP requests from PostgreSQL triggers, handling Realtime postgres_changes as an event source, or building event-driven architectures. Trigger with phrases like "supabase webhook", "database events", "pg_net trigger", "supabase LISTEN NOTIFY", "webhook signature verify", "supabase event-driven", "supabase_functions.http_request".
stackblitz-webhooks-events
WebContainer lifecycle events: server-ready, port changes, error handling. Use when working with WebContainers or StackBlitz SDK. Trigger: "webcontainer events".