List webhooks
Retrieve all configured webhooks for the authenticated user. Supports up to 10 webhooks per user.
API key authentication - use your Zernio API key as a Bearer token
In: header
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.webhooks.getWebhookSettings();console.log(data);{
"webhooks": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "My Production Webhook",
"url": "https://example.com/webhook",
"events": [
"post.published",
"post.failed"
],
"isActive": true,
"lastFiredAt": "2024-01-15T10:30:00Z",
"failureCount": 0
},
{
"_id": "507f1f77bcf86cd799439012",
"name": "Slack Notifications",
"url": "https://hooks.slack.com/services/xxx",
"events": [
"post.failed",
"account.disconnected"
],
"isActive": true,
"failureCount": 0
}
]
}{
"error": "Unauthorized"
}List webhook delivery logs GET
Retrieve recorded webhook delivery attempts for the authenticated user, most recent first. Logs are retained for 30 days. Supports filtering by status, event type, webhook ID, and event ID, plus offset-based pagination.
Update webhook PUT
Update an existing webhook configuration. All fields except `_id` are optional; only provided fields will be updated. When provided, `name` must be 1-50 characters, `url` must be a valid URL, and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. Webhooks are automatically disabled after 10 consecutive delivery failures.