webhooks
Send test webhook
Send a test webhook to verify your endpoint is configured correctly. The test payload includes event: "webhook.test" to distinguish it from real events.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
webhookIdstring
ID of the webhook to test
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.webhooks.testWebhook({ body: { webhookId: 'webhook_abc123', },});console.log(data);{
"success": true,
"message": "Test webhook sent successfully"
}Empty
{
"error": "Unauthorized"
}{
"success": false,
"message": "Test webhook failed"
}