GET
Read AI debug log entries

Authorizations

X-Auditor-Admin-Token
string
header
required

Required when AUDITOR_ADMIN_TOKEN is set in the environment, and — on a network-exposed instance — on the sensitive read prefixes listed on the Overview page. Verified with crypto.timingSafeEqual. Missing or wrong token returns 401. Failed attempts are recorded in audit_log with IP + user agent.

Browser callers may send the pt_admin_token HttpOnly cookie instead; it is accepted everywhere this header is. Obtain it from POST /api/auth/admin-token/login.

Query Parameters

limit
integer
default:100

Response

200 - application/json

Debug log rows newest first.

rows
object[]