Security audit
Overview
Run an audit step, review findings, or retrieve a report and summary. Routes use /wp-json/aam/v2 on a standard WordPress installation.
Endpoints
| Method | Route | Input | Purpose |
|---|---|---|---|
| POST | /audit |
step, reset |
Run step. |
| GET | /audit/report |
— | Generate report. |
| POST | /audit/review |
scope, status, step, issue_id, note |
Review findings. |
| GET | /audit/summary |
— | Prepare summary. |
The Input column lists route-specific parameters. A path parameter in {braces} is required. WordPress validates body and query parameters against the registered route schema.
Parameter guide
The route table shows which operation uses each parameter. Path parameters are required; other requirements depend on the operation.
| Parameter | Type | Meaning |
|---|---|---|
issue_id |
string |
Issue id. |
note |
string |
Note. |
reset |
boolean |
Wether reset already existing results or not. |
scope |
string |
Scope. |
status |
string |
Status. |
step |
string |
Security audit step. |
Access level and authorization
This endpoint group does not use the shared access-level selector unless a row explicitly names it.
Required permission: aam_manager and aam_trigger_audit. See Authentication and Error handling.
POST /audit runs one step. Use the review route to record finding decisions; report and summary routes read results.
Example
GET /wp-json/aam/v2/audit/summary
Authorization: Basic <base64 username:application-password>
This reads the current security-audit summary without running a new audit step.