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.
API key authentication - use your Zernio API key as a Bearer token
In: header
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"
}{
"error": "Unauthorized"
}{
"success": false,
"message": "Test webhook failed"
}Delete webhook DELETE
Permanently delete a webhook configuration.
List ad accounts GET
Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry.