Audit Log API
The Audit Log is a cryptographically verifiable, append-only database that records every action, token exchange, and human approval. It is essential for enterprise compliance and debugging rogue agents.
Querying the Log
You can query the audit log programmatically using the SDK. You can filter by agent, timeframe, or specific resources.
TypeScript
const events = await nayker.audit.query({
agentId: 'agt_8f92j10',
since: '2023-10-01T00:00:00Z',
limit: 100
});Python
events = nayker.audit.query(
agent_id="agt_8f92j10",
since="2023-10-01T00:00:00Z",
limit=100
)Exporting to Splunk / Datadog
Nayker supports real-time streaming of audit logs to standard SIEMs. You configure this via the Dashboard, not the SDK.
Response Object
[
{
"event_id": "evt_01HXY9K2",
"timestamp": "2023-10-01T09:42:11Z",
"agent_id": "agt_8f92j10",
"action": "vault.token_request",
"status": "success",
"signature": "sig_..."
}
]