Skip to main content
The security API manages profClaw’s permission system - controlling which tools agents can use, setting security modes, and retrieving the audit trail of all agent actions.

Security Modes

profClaw has five security levels for tool execution:

GET /api/security/policy

Get the current security policy configuration.
Response 200

PUT /api/security/policy

Update the security policy.

GET /api/security/audit

Retrieve the audit log of agent tool executions.
Response 200
Query parameters: limit, offset, tool, userId, conversationId, from, to

GET /api/security/audit/:id

Get a single audit entry with full argument and result details.

Tool Approval Queue

When securityMode is ask, tool calls requiring approval are queued until a user decision is made.

GET /api/security/approvals

List pending tool approvals.

POST /api/security/approvals/:id

Submit an approval decision.
Decisions: allow-once | allow-always | deny allow-always adds the tool to the session allowlist so subsequent calls proceed without prompting.

Guard Configuration

Guards are pre-execution checks that block unsafe tool calls regardless of security mode:
Built-in guards: