API referenceSections

Scan the site with Defender and the panel's web shell rules

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

POST /api/v1/tenants/{tid}/sites/{id}/malware/scans may answer 202

Scan the site with Defender and the panel's web shell rules (ADR 0084)

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Responses

202 Started

Content type: application/json

  • id string required
  • tenant_id string optional
  • server_id string optional
  • site_id string required
  • trigger string required
    Allowed values: "manual" "schedule"
  • state string required
    Allowed values: "running" "succeeded" "failed"
  • defender string required

    clean, threats, unavailable, error or skipped

  • ruleset string required
  • files_scanned integer required
  • findings integer required
  • truncated boolean required
  • error_code string required
  • started_at string (date-time) required
  • finished_at string (date-time) | null required
Example
{
  "id": "string",
  "tenant_id": "string",
  "server_id": "string",
  "site_id": "string",
  "trigger": "manual",
  "state": "running",
  "defender": "string",
  "ruleset": "string",
  "files_scanned": 0,
  "findings": 0,
  "truncated": true,
  "error_code": "string",
  "started_at": "2026-01-01T00:00:00Z",
  "finished_at": "2026-01-01T00:00:00Z"
}

default Error

Content type: application/json

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