Audit Logs API

Retrieves paginated audit logs for a given API key, excluding sensitive query content. Logs include metadata such as IP address, HTTP method, query type, and timestamp, enabling traceability and usage analysis for security and debugging purposes.


🔗 Endpoint

POST https://api.whiteintel.io/get_audit_logs.php

📥 Request Body (JSON)

Field
Type
Required
Description

apikey

string

✅ Yes

Your API key

page

int

❌ No

Pagination (default: 1)


✅ Example Request

POST /get_audit_logs.php
Content-Type: application/json

{
  "apikey": "your api key",
  "page": 1

}

📤 Example Response

{
  "success": true,
  "page": 1,
  "count": 11,
  "logs": [
    {
      "ip": "10.0.0.5",
      "call_date": "2025-07-30 18:15:58",
      "http_method": "POST",
      "query_type": "audit_logs"
    },
    {
      "ip": "10.0.0.5",
      "call_date": "2025-07-30 18:15:34",
      "http_method": "POST",
      "query_type": "audit_logs"
    },
    {
      "ip": "10.0.0.5",
      "call_date": "2025-07-30 18:15:19",
      "http_method": "POST",
      "query_type": "audit_logs"
    },
    {
      "ip": "10.0.0.5",
      "call_date": "2025-07-30 17:16:42",
      "http_method": "POST",
      "query_type": "leaksby_id"
    },
    {
      "ip": "10.0.0.5",
      "call_date": "2025-07-30 17:06:07",
      "http_method": "POST",
      "query_type": "corporate_leaks"
    },
    {
      "ip": "10.0.0.5",
      "call_date": "2025-07-30 17:03:31",
      "http_method": "POST",
      "query_type": "consumer_leaks"
    }
  ]
}

❌ Error Responses

Invalid Page

{"success":false,"error":"Invalid page number. Must be a positive integer."}

Curl Example

curl -X POST https://api.whiteintel.io/get_audit_logs.php \
  -H "Content-Type: application/json" \
  -d '{
    "apikey":"YOUR API KEY"
    "page": 1,
    
}'


Last updated