Skip to main content
POST
Node.js SDK

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → Developers → API Keys.

Body

application/json
url
string<uri>
required

The webhook endpoint URL (must be HTTPS)

events
string[]
required

Array of event types to subscribe to (e.g., email.generation.completed)

Minimum array length: 1
description
string

Optional description for the webhook

customHeaders
object

Optional custom headers to include in webhook requests

Response

Webhook created

success
boolean
required
data
object
error
string | null