Skip to main content
POST
/
v1
/
webhooks
/
{webhookId}
/
test
Node.js SDK
import Migma from 'migma';

const migma = new Migma('YOUR_API_KEY');

const { data, error } = await migma.webhooks.test('WEBHOOK_ID');
{
  "success": true,
  "data": {
    "success": true,
    "statusCode": 123,
    "responseTime": 123
  },
  "error": "<string>"
}

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 → API Integration.

Path Parameters

webhookId
string
required

Webhook ID (MongoDB ObjectId)

Response

Test result

success
boolean
required
data
object
error
string | null