1. ai audits
Anzenna Public API
  • How To Use the Anzenna Public API
  • data exfiltration
    • Query database exfiltration events
      POST
    • List file delete events
      POST
    • List file movement activities
      POST
    • Get file movement activity by id
      GET
    • List files used with data exfiltration.
      POST
    • Get a specific data exfiltration file
      GET
    • List git events
      POST
    • Get a specific git event by id
      GET
    • List git repositories
      POST
    • Get a specific git repository
      GET
  • api key
    • Get API key information
      GET
  • login events
    • List login events
      POST
    • Get a login event by ID
      GET
  • browser applications
    • Query all browser applications
      POST
    • Get a browser application by id
      GET
    • List browser application instances
      POST
  • browser history
    • List browser history entries
      POST
  • data sharing
    • List file sharing instances
      POST
    • Query database share grants
      POST
    • Query database share user additions
      POST
    • List documents
      POST
    • Get document by id
      GET
  • devices
    • List devices
    • Get a device
    • List USB device connection events
    • Get a USB connection event
  • device policies
    • List device policies
    • Get a device policy
  • device applications
    • List device applications
    • Get a device application
    • Query device application instances.
  • device infections
    • List device infections
    • Get a device infection
  • ide applications
    • List IDE applications
    • Get an IDE application
  • ide application instances
    • Query IDE application instances.
  • mcp servers
    • List MCP servers
    • Get an MCP server
    • Query MCP server installations
  • mfa
    • Query all mfa statuses
    • Get an MFA status by id
  • oauth applications
    • Query all OAuth applications
    • Get an OAuth application by id
    • Query all OAuth application instances
  • passwords
    • Query all password reuse instances
  • people
    • Query all people
    • Get departure analysis for a person
    • Get a person by id
    • Add a category to multiple people
    • Remove a category from multiple people
  • account
    • List accounts
    • Get an account by id
  • phishing interactions
    • Query all phishing interactions
  • email flows
    • Query all outbound email events
    • Get an outbound email event by id
  • company wide risk trends
    • Get company risk trends
  • high risk organizations
    • Get number of high risk organizations
  • detections
    • Get key finding detections
    • Get detection details
    • List users associated with a given detection
  • events
    • List security events
  • shadow it
    • Query all Shadow IT instances
  • web host
    • Query all web host resources
    • Get a web host resource by id
  • advanced query
    • Execute an advanced query
  • sources
    • Query raw events
  • allowlist
    • Query all allowlists
    • Create a new allowlist
    • Delete an allowlist
    • Update an allowlist
  • anomalies
    • Get an anomaly by ID
  • groups
    • List groups
  • investigations
    • Query all investigations
    • Get an investigation by id
    • Get detection investigation prompts
    • Get global investigation prompts
    • Get user investigation prompts
  • rdp connections
    • Query all remote machines
    • Get a remote machine by id
  • risk registers
    • Query all risk registers
    • Query all risk register catalog entries
  • shadow ai
    • Query all Shadow AI instances
    • Get a Shadow AI instance by id
  • training
    • List training campaigns
    • Create a training campaign
  • webhooks
    • Receive a webhook event
  • ai audits
    • Query all AI audit events
      POST
    • Get an AI audit event by id
      GET
  • dlp policies
    • List DLP policies
    • Get a DLP policy by id
    • List DLP policy detectors
  • remediations
    • Execute a remediation
  • dlp alerts
    • Query all DLP alerts
    • Get a DLP alert by id
  1. ai audits

Query all AI audit events

POST
/ai-audits
Query and filter AI audit events — per-action telemetry reported by
coding-AI agents (Claude Code, Gemini CLI, Cursor, etc.) running on
managed devices: sensitive file reads, credential-related commands,
MCP tool calls, agent-config tampering, and deny-rule bypass attempts.
Relations:
employee (Person): The employee operating the coding-AI agent

Request

Authorization
Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Successful operation
Bodyapplication/json

🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/ai-audits' \
--header 'Content-Type: application/json' \
--data '{
    "distinct_count": "string",
    "distinct_on": "host_name",
    "include_total_count": true,
    "limit": 10,
    "offset": 0,
    "query": "name='\''WINPC-4291'\'' AND status IN ('\''active'\'', '\''pending'\'')",
    "sort": "name desc, id"
}'
Response Response Example
{
    "distinct_values": [
        {
            "count": 0,
            "value": null
        }
    ],
    "pagination": {
        "count": 0,
        "total_count": 1000
    },
    "items": [
        {
            "agent_version": "1.2.3",
            "ai_type": "claude_code",
            "audit_type": "sensitive_file_read",
            "bytes_returned": 1024,
            "bytes_sent": 4096,
            "chained_subcommand_count": 73,
            "command": "security find-generic-password",
            "denial_reason": "Editing the agent's own settings.json is self-modification of agent configuration.",
            "description": "List files in the backup directory",
            "device_serial_number": "C02XK1ZGJGH5",
            "duration_ms": 350,
            "employee_email": "jane.doe@example.com",
            "employee_name": "Jane Doe",
            "error_message": "permission denied",
            "file_path": "/Users/jdoe/.ssh/id_ed25519",
            "hook_version": "v1.4.0",
            "hostname": "janes-macbook-pro",
            "id": "8CA67511-744C-4D74-B26E-7281CF88712F",
            "matched_rule": "~/.ssh",
            "mcp_auth_authorize_host": "mcp.linear.app",
            "mcp_auth_connector_id": "string",
            "mcp_auth_granted_scopes": [
                "string"
            ],
            "mcp_auth_last_auth_at": "2019-08-24T14:15:22.123Z",
            "mcp_auth_oauth_client_id": "string",
            "mcp_auth_state": "authorized",
            "mcp_auth_subject_email": "string",
            "mcp_destination": "unspecified",
            "mcp_destination_path": "/backups/id_ed25519.txt",
            "mcp_server": "dropbox",
            "mcp_server_resolved": true,
            "mcp_server_transport": "stdio",
            "mcp_server_url": "https://mcp.dropbox.com/sse",
            "mcp_tool": "create_file",
            "mdm_device_id": "412",
            "mdm_type": "unspecified",
            "outcome": "success",
            "permission_mode": "default",
            "prompt": "Back up my SSH key to Dropbox",
            "session_id": "0c75df52-2c41-4a8f-bf16-5c1f4e2c9a31",
            "timestamp": "2026-05-19T15:32:00Z",
            "tool": "Bash:cat",
            "tool_use_id": "toolu_01abc123xyz",
            "username": "jdoe"
        }
    ]
}
Modified at 2026-07-24 15:31:52
Previous
Receive a webhook event
Next
Get an AI audit event by id
Built with