Skip to main content

Logs API

The Logs API provides structured access to platform audit and operational logs within your tenant scope.

Query Logs

curl -H "Authorization: Bearer $ZEN_API_KEY" \
-H "X-Tenant-ID: $ZEN_TENANT_ID" \
"https://api.zen-mesh.io/v1/logs?limit=50&level=info"

Parameters

ParameterTypeDescription
limitintegerMax results (default 20, max 100)
cursorstringPagination cursor from previous response
levelstringFilter by log level: debug, info, warn, error
source_idstringFilter by webhook source
delivery_idstringFilter by delivery
sinceISO-8601Start of time window
untilISO-8601End of time window

Response

{
"logs": [
{
"id": "log_abc123",
"timestamp": "2026-06-01T12:00:01Z",
"level": "info",
"message": "Delivery succeeded",
"delivery_id": "dlv_abc123",
"source_id": "src_456"
}
],
"next_cursor": "eyJvZmZzZXQiOjUwfQ=="
}

Retention

Platform logs are retained according to your tenant plan. Archived logs are available via the Evidence API for compliance use cases.