logs
List activity logs
Unified logs endpoint. Returns logs for publishing, connections, webhooks, and messaging. Filter by type, platform, status, and time range. Logs are retained for 90 days.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
type?string
Log category to query
Default
"publishing"Value in
"publishing" | "connections" | "webhooks" | "messaging"status?string
Filter by status
Value in
"success" | "failed" | "pending" | "skipped" | "all"platform?string
Filter by platform
Value in
"tiktok" | "instagram" | "whatsapp" | "facebook" | "youtube" | "linkedin" | "twitter" | "threads" | "pinterest" | "reddit" | "bluesky" | "googlebusiness" | "telegram" | "snapchat" | "all"action?string
Filter by action (e.g., post.published, message.sent, account.connected, webhook.delivered)
search?string
Free-text search across log fields
days?integer
Number of days to look back (max 90)
Default
90Range
1 <= value <= 90limit?integer
Maximum number of logs to return (max 100)
Default
50Range
1 <= value <= 100skip?integer
Number of logs to skip (for pagination)
Default
0Range
0 <= valueResponse Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.logs.listLogs();console.log(data);{
"logs": [
{
"type": "string",
"action": "string",
"user_id": "string",
"platform": "string",
"account_id": "string",
"status": "success",
"status_code": 0,
"error_message": "string",
"error_code": "string",
"duration_ms": 0,
"endpoint": "string",
"request_body": "string",
"response_body": "string",
"created_at": "2019-08-24T14:15:22Z",
"metadata": "string"
}
],
"pagination": {
"total": 0,
"limit": 0,
"skip": 0,
"pages": 0,
"hasMore": true
}
}{
"error": "Unauthorized"
}