hzel
ReferenceStructures

AuditLogRecord

The audit log entry object returned by GET /api/v1/audit-logs.

AuditLogRecord represents a single immutable audit event recorded by the hzel control plane. Audit logs are append-only — entries are never modified after creation.

Fields

FieldTypeDescription
idstring (UUID)Unique audit log entry identifier.
user_idstring (UUID) | nullID of the user who performed the action. null for system-generated events with no human actor.
container_idstring (UUID) | nullID of the container affected by the action. null if the event is not container-scoped.
actionstringDot-separated action identifier, e.g. "container.start", "token.create", "network.member.add".
outcomestringResult of the action — typically "success" or "failure".
metadataobjectStructured JSON with additional context specific to the action type. Shape varies by action. May be an empty object {}.
created_atstring (ISO 8601)UTC timestamp when the event was recorded.

Example

{
  "id": "e5f6a7b8-0000-0000-0000-000000000001",
  "user_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "container_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "action": "container.start",
  "outcome": "success",
  "metadata": {},
  "created_at": "2025-06-15T12:01:00Z"
}

Access control

The audit log endpoint requires:

  • Admin role — non-admin users receive 403 Forbidden.
  • Non-OAuth auth — OAuth application tokens are rejected even for admin accounts. Use a PAT or a browser session.