Audit logAggregate audit stats

Aggregate audit stats

Aggregate stats — totals, deny rate, top roles, and a by_source_type breakdown distinguishing SDK, API, framework, and REST traffic.

curl -X GET "https://api.autopil.ai/v1/audit/stats" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "total": 1247,
  "allowed": 1118,
  "denied": 129,
  "by_source_type": {
    "sdk": {
      "total": 847,
      "allowed": 790,
      "denied": 57
    },
    "api": {
      "total": 203,
      "allowed": 178,
      "denied": 25
    },
    "langchain": {
      "total": 87,
      "allowed": 80,
      "denied": 7
    },
    "bedrock": {
      "total": 64,
      "allowed": 58,
      "denied": 6
    },
    "rest": {
      "total": 46,
      "allowed": 12,
      "denied": 34
    }
  }
}
GET
/v1/audit/stats
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.

API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. API key with admin, read, or evaluate scope. Missing key → 401; invalid or revoked key → 403.

Responses

totalinteger
allowedinteger
deniedinteger
by_source_typeobject