Skip to main content
Use mainwp/get-vulnerability-policy-v1 to read the Vulnerability Checker policy for your Dashboard. It reads saved settings without scanning sites, contacting a provider, or changing settings.

Access

Activate Vulnerability Checker 5.1 or later on a Dashboard with WordPress Abilities API support. Your authenticated user must pass the Dashboard Abilities API permission check and have both access to the extension and its view_vulnerabilities right. This ability returns Dashboard policy without site findings. For Application Password or session authentication on MainWP Dashboard 6.5 and later, it requires manage_options because it does not opt into Team Control staff access. The extension and view permissions still apply. Use an Application Password over HTTPS, or an authenticated WordPress session with a REST nonce. See Abilities API authentication.

Read the Policy

The ability accepts no parameters. Extra input fields are rejected.
Example response:
This response is policy information, not a scan result or a claim that your sites are free of vulnerabilities. Credentials, API tokens, and notification recipients are never returned.

Discover the Schema

The category is mainwp-vulnerability-checker. Both schemas reject extra fields. The ability is read-only and idempotent.

Errors

Anonymous execution returns HTTP 401. An authenticated caller without the required access receives 403. Invalid input receives 400. If Dashboard authorization, the saved provider, or the existing installation binding is unavailable, the ability returns an error rather than a policy result.