Appearance
Security testing API Since v0.2
Assessment routes need the admin role with access to every application. Reading validation campaigns needs only viewer. Starting a run needs a confirm_token from a plan call. For the keys, see Assessments and scan targets.
For the base URL, sign-in, roles and error format, see Management API. Except sign-in, a route answers 401 without credentials and 403 when the role is too low.
Routes
Scan targets and credentials
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
GET | /v1/scan-targets | admin, all applications | Lists scan targets. | none |
PUT | /v1/scan-targets | admin, all applications | Replaces the scan target list. | Body: items (the whole list; [] removes it), base_version, comment, dry_run. |
GET | /v1/scan-targets/{name}/credentials | admin, all applications | Returns the stored credential status of a target (not the secrets). | none |
PUT | /v1/scan-targets/{name}/credentials | admin, all applications | Stores credentials for a target. | Body: password, cookie, header, set. |
DELETE | /v1/scan-targets/{name}/credentials | admin, all applications | Removes a target's credentials. | none |
PUT | /v1/scan-targets/{name}/agent | admin, all applications | Changes a target's agent settings. | Body: set (key to value; empty string resets the key), base_version (required), comment, dry_run. |
POST | /v1/scan-targets/{name}/agent/authorization | admin, all applications | Records the confirmation that lets an agent test the target. | none |
DELETE | /v1/scan-targets/{name}/agent/authorization | admin, all applications | Removes that confirmation. | none |
GET | /v1/assess/pentagi | admin, all applications | Returns the agent runtime settings and status. | none |
PUT | /v1/assess/pentagi | admin, all applications | Changes the agent runtime settings. | Body: settings, token, base_version, comment, dry_run. |
PUT | /v1/assess/pentagi/token | admin, all applications | Stores the agent runtime token. | Body: token, name. |
DELETE | /v1/assess/pentagi/token | admin, all applications | Removes the agent runtime token. | none |
POST | /v1/assess/pentagi/test | admin, all applications | Tests the connection to the agent runtime. | none |
Assessment runs
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
POST | /v1/assess/plan | admin, all applications | Plans a run and returns what it will do and a confirm_token. | Body: target. |
GET | /v1/assess/runs | admin, all applications | Lists runs. | none |
POST | /v1/assess/runs | admin, all applications | Starts a run. | Body: target, confirm_token, confirm_uat, agent, confirm_agent. |
GET | /v1/assess/runs/{id} | admin, all applications | Returns one run. | none |
GET | /v1/assess/runs/{id}/findings | admin, all applications | Lists a run's findings. | none |
POST | /v1/assess/runs/{id}/cancel | admin, all applications | Cancels a run. | none |
POST | /v1/assess/runs/{id}/resume | admin, all applications | Resumes an interrupted run. | none |
POST | /v1/assess/runs/{id}/passes | admin, all applications | Starts a further pass of a run. | Body: kind (through_waap or fix_verify), confirm_token, confirm_uat. |
POST | /v1/assess/runs/{id}/report | admin, all applications | Builds a report of a run. | Body: format, audience. |
POST | /v1/assess/compare | admin, all applications | Compares two runs. | Body: a, b, format. |
GET | /v1/assess/runs/{id}/agent | admin, all applications | Returns the agent's live feed for a run. | none |
POST | /v1/assess/runs/{id}/agent/messages | admin, all applications | Sends a message to the agent. | Body: text. |
GET | /v1/assess/runs/{id}/agent/report | admin, all applications | Returns the agent's report. | none |
GET | /v1/assess/runs/{id}/agent/view | admin, all applications | Returns the agent's flow so far (counts, tasks, terminal, findings), bounded and masked. | none |
POST | /v1/assess/runs/{id}/agent/view/reload | admin, all applications | Reloads the agent's view session. | none |
Issues and protection
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
GET | /v1/assess/issues | admin, all applications | Lists issues across runs. | none |
GET | /v1/assess/issues/{id} | admin, all applications | Returns one issue. | none |
POST | /v1/assess/issues/{id}/triage | admin, all applications | Sets an issue's triage state. | Body: action, reason. |
GET | /v1/assess/fixes | admin, all applications | Lists fix guidance by technology stack. | none |
GET | /v1/assess/issues/{id}/recommend | admin, all applications | Recommends protections for an issue. | none |
POST | /v1/assess/issues/{id}/protect | admin, all applications | Applies recommended protections for an issue. | none |
POST | /v1/assess/issues/{id}/protect/{protection}/rollback | admin, all applications | Rolls back one applied protection. | none |
POST | /v1/assess/targets/{name}/application | admin, all applications | Creates an application and server pool from a scan target, in detect mode. | Body: name, listener, base_version, comment, dry_run. |
POST | /v1/assess/exclusions | admin, all applications | Excludes events from an assessment's results. | Body: assessment, event_ids, apply, override, base_version, comment. |
Validation campaigns
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
GET | /v1/apps/{name}/validation | viewer | Returns an application's validation settings. | Returns the current values with base_version. |
PUT | /v1/apps/{name}/validation | admin, all applications | Changes validation settings. | Body: set (key to value; empty string resets the key), base_version (required), comment, dry_run. |
GET | /v1/apps/{name}/validation/credentials | admin, all applications | Returns credential status for validation (not the secrets). | none |
PUT | /v1/apps/{name}/validation/credentials | admin, all applications | Stores credentials for validation. | Body: password, cookie, header, set. |
DELETE | /v1/apps/{name}/validation/credentials | admin, all applications | Removes validation credentials. | none |
GET | /v1/validate/engines | admin, all applications | Lists the scanner engines available. | none |
POST | /v1/validate/plan | admin, all applications | Plans a campaign and returns a confirm_token. | Body: apps, profile. |
GET | /v1/validate/campaigns | viewer | Lists campaigns. | none |
POST | /v1/validate/campaigns | admin, all applications | Starts a campaign. | Body: apps, profile, confirm_token, confirm_uat, dry_run. |
GET | /v1/validate/campaigns/{id} | viewer | Returns one campaign. | none |
GET | /v1/validate/campaigns/{id}/findings | viewer | Lists a campaign's findings. | none |
GET | /v1/validate/campaigns/{id}/report | viewer | Returns a campaign's report. | none |
POST | /v1/validate/campaigns/{id}/cancel | admin, all applications | Cancels a campaign. | none |
POST | /v1/validate/campaigns/{id}/resume | admin, all applications | Resumes a campaign. | none |
POST | /v1/validate/campaigns/{id}/switch | admin, all applications | Moves the tested applications to block mode. | Body: dry_run, no_switch, apps, benign_refused. |
POST | /v1/validate/campaigns/{id}/restore-modes | admin, all applications | Restores the modes changed for the campaign. | none |
POST | /v1/validate/campaigns/{id}/findings/{finding}/prove | admin, all applications | Replays a finding to prove it is now blocked. | none |
Example
sh
curl -sk -X POST -H "Authorization: Bearer waap_EXAMPLE" -H "Content-Type: application/json" -d '{"target":"staging"}' https://127.0.0.1:9443/v1/assess/plan