List account notifications
Returns Meta-originated events recorded for a WhatsApp account, newest
first: template review outcomes (approved, rejected, paused, category
changes) and WABA status changes (restricted, disabled, reinstated,
disconnected). Events are captured from Meta webhooks as they happen;
the feed starts at the account's first recorded event and is not
backfilled. Complements the push events whatsapp.template.status_updated
and account.disconnected with a pollable history.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
WhatsApp social account ID
Maximum events to return
501 <= value <= 200Response 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.whatsapp.listWhatsAppAccountEvents({ query: { accountId: 'account_abc123', },});console.log(data);{
"events": [
{
"id": "string",
"accountId": "string",
"type": "string",
"severity": "info",
"title": "string",
"detail": "string",
"createdAt": "2019-08-24T14:15:22Z"
}
]
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}Revoke a sandbox session DELETE
Hard-deletes the session. The user loses the ability to send to that phone via the sandbox until they re-activate it. Existing conversations and messages already exchanged with that phone are untouched — revocation only blocks FUTURE sends. Sessions belonging to other users cannot be revoked; the response is the same 400 as "session not found" so existence isn't leaked.
Get reviews GET
Returns reviews for a GBP account including ratings, comments, and owner replies. Use nextPageToken for pagination.