Node.js SDK
Create Webhook
Create a new webhook endpoint. Returns the webhook configuration including a secret for signature verification. The secret is only shown once. Requires API key with webhook:write.
POST
Node.js SDK
Authorizations
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
Body
application/json
The webhook endpoint URL (must be HTTPS)
Array of event types to subscribe to (e.g., email.generation.completed)
Minimum array length:
1Optional description for the webhook
Optional custom headers to include in webhook requests