OverviewProductsPlatformsAPI ReferenceResources
Webhooks

List webhook delivery logs

GEThttps://zernio.com/api/v1/webhooks/logs

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.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

Optional
limitintegerDefault 50

Maximum number of logs to return

skipintegerDefault 0

Number of logs to skip (offset-based pagination)

statusstringOne of success | failed

Filter by delivery outcome

eventstring, max 100

Filter by event type (e.g. post.published)

webhookIdstring, max 100

Filter by webhook configuration ID

eventIdstring, max 200

Filter by stable webhook event ID

Responses

Success· the request worked

Errors· the request failed

How it behaves

Restricted keys

For a restricted (zrk_) API key:

  • Rows for events outside the key's resource groups are omitted (pagination.total may over-count).
  • An event filter naming such an event is rejected with 403.

Denylisted events

Events blocked by a subscription's own disabledResourceGroups are dropped before delivery, so they produce no log rows for anyone.

The exception is the five-minute tail after a denylist change, where an already-queued event can still be delivered and logged.

Create webhook

Create a new webhook configuration. Maximum 50 webhooks per user. `name`, `url` and `events` are required. `url` must be a valid URL and `events` must contain at least one event. Whitespace is trimmed from `url` before validation. ### Auto-disable A webhook is auto-disabled only once the endpoint has had no successful delivery for 3 days AND either: - has reached 20 consecutive terminal failures (each one an event that exhausted the full retry ladder), or - has been failing continuously for 3 days. The owner is emailed; re-enable it with `isActive: true`. ### Restricted keys A restricted (zrk_) API key can only subscribe to events whose resource group the key holds. An event outside the key's groups is rejected with 403, so a restricted key can never create a subscription broader than itself. ### Filtering what is delivered `disabledResourceGroups` restricts the subscription itself, independently of which key or session later reads it. Events in a disabled group are dropped before delivery to this endpoint, even if they are listed in `events`. This applies on live delivery and on every replay path (test fire, redelivery, dead-letter requeue). Omit it to receive everything in `events`, which is how existing subscriptions behave. A restricted key's own disabled groups are always unioned in. `profileIds` pins the subscription to a set of profiles and `accountIds` to a set of connected accounts. Only events attributable to one of the listed ids are delivered, and a subscription with both lists must match on both. Use them to send test accounts to a staging endpoint. Ids outside your team are rejected with 404 (`profile_not_found`, `account_not_found`).

List webhooks

Retrieve all configured webhooks for the authenticated user. Supports up to 50 webhooks per user.

GET/v1/webhooks/logs
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.webhooks.getWebhookLogs();console.log(data);
{  "logs": [    {      "userId": "string",      "webhookId": "string",      "webhookName": "string",      "eventId": "string",      "event": "string",      "test": true,      "url": "http://example.com",      "status": "success",      "statusCode": 0,      "requestPayload": {},      "responseBody": "string",      "errorMessage": "string",      "attemptNumber": 0,      "responseTime": 0,      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "total": 0,    "limit": 0,    "skip": 0,    "pages": 0,    "hasMore": true  }}
OpenAPI specification
Was this page helpful?