API referenceSections

Events this agent's server firewall wrote

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/agent/waf-events

Events this agent's server firewall wrote (ADR 0106); events of sites not on the server are dropped

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Request body

required

Content type: application/json

object
  • events array<WAFEvent> optional
    • id string required

      The reference the visitor saw

    • at string (date-time) required
    • site_id string required
    • verdict string required
      Allowed values: "blocked" "detected"
    • status integer optional
    • client_ip string required
    • method string required
    • host string required
    • path string required
    • query string optional

      Secret-looking values replaced by [redacted]

    • user_agent string optional
    • score integer required
    • matches array<WAFMatch> required
      • rule_id integer required
      • message string required
      • severity string optional
      • field string optional

        The request field that matched (ARGS:q); its value is never kept

    • suppressed integer optional

      Events of this site not written in the minute before (over 60 a minute)

Example
{
  "events": [
    {
      "id": "string",
      "at": "2026-01-01T00:00:00Z",
      "site_id": "string",
      "verdict": "blocked",
      "status": 0,
      "client_ip": "string",
      "method": "string",
      "host": "string",
      "path": "string",
      "query": "string",
      "user_agent": "string",
      "score": 0,
      "matches": [
        {
          "rule_id": 0,
          "message": "string",
          "severity": "string",
          "field": "string"
        }
      ],
      "suppressed": 0
    }
  ]
}

Responses

200 How many were new

Content type: application/json

object
  • added integer optional
Example
{
  "added": 0
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required