Security Penetration Tests

Create AI-powered penetration test runs, track progress, inspect findings and events, and download markdown or PDF reports.

List penetration test runs

GET/v1/security-penetration-tests

List penetration test runs in Complianz. Create AI-powered penetration test runs, track progress, inspect findings and events, and download markdown or PDF reports.

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200Penetration tests returned
curl --request GET \
  --url https://api.complianz.ai/v1/security-penetration-tests \
  --header 'X-API-Key: <api-key>'

Create penetration test

POST/v1/security-penetration-tests

Create an AI-powered penetration test run for an approved target and track the resulting findings and report artifacts.

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Request body

authorizationobjectrequired
Show child attributes
acceptedbooleanrequired

Must be true: user accepts the authorization terms

signerNamestringrequired

Full name typed as signature

signerRolestringrequired

Signer role or title

termsVersionstringrequired

Version of the authorization text that was shown

targetUrlstringrequired

Target URL for the penetration test scan

repoUrlstring

Repository URL containing the target application code

additionalContextstring

Free-text context shared with the testing agent, e.g. remediation notes or accepted-by-design explanations from a previous run. Saved per-finding context notes for the same target are appended automatically. Max 4000 characters.

Responses

201Penetration test created
400Invalid request payload
curl --request POST \
  --url https://api.complianz.ai/v1/security-penetration-tests \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "authorization": {
      "accepted": true,
      "signerName": "string",
      "signerRole": "string",
      "termsVersion": "string"
    },
    "targetUrl": "https://app.example.com",
    "repoUrl": "https://github.com/org/repo",
    "additionalContext": "string"
  }'

Current penetration test authorization terms and version

GET/v1/security-penetration-tests/terms

Current penetration test authorization terms and version in Complianz. Create AI-powered penetration test runs, track progress, inspect findings and events, and download markdown or PDF reports.

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/security-penetration-tests/terms \
  --header 'X-API-Key: <api-key>'

Get penetration test status

GET/v1/security-penetration-tests/{id}

Get penetration test status in Complianz. Create AI-powered penetration test runs, track progress, inspect findings and events, and download markdown or PDF reports.

Path parameters

idstringrequired

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200Penetration test returned
404Penetration test not found
curl --request GET \
  --url https://api.complianz.ai/v1/security-penetration-tests/<id> \
  --header 'X-API-Key: <api-key>'

Get penetration test progress

GET/v1/security-penetration-tests/{id}/progress

Get penetration test progress in Complianz. Create AI-powered penetration test runs, track progress, inspect findings and events, and download markdown or PDF reports.

Path parameters

idstringrequired

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200Progress returned
curl --request GET \
  --url https://api.complianz.ai/v1/security-penetration-tests/<id>/progress \
  --header 'X-API-Key: <api-key>'

Get penetration test issues

GET/v1/security-penetration-tests/{id}/issues

Returns the structured findings discovered during the run. Grows over time during a live scan as agents discover more issues.

Path parameters

idstringrequired

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200Issues returned
curl --request GET \
  --url https://api.complianz.ai/v1/security-penetration-tests/<id>/issues \
  --header 'X-API-Key: <api-key>'

Get penetration test agent events

GET/v1/security-penetration-tests/{id}/events

Returns the real-time agent activity log emitted during a run (tool calls, observations, etc.). Noisy — meant for activity feeds and debugging.

Path parameters

idstringrequired

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200Events returned
curl --request GET \
  --url https://api.complianz.ai/v1/security-penetration-tests/<id>/events \
  --header 'X-API-Key: <api-key>'

Get penetration test output

GET/v1/security-penetration-tests/{id}/report

Get penetration test output in Complianz. Create AI-powered penetration test runs, track progress, inspect findings and events, and download markdown or PDF reports.

Path parameters

idstringrequired

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200Markdown report output
curl --request GET \
  --url https://api.complianz.ai/v1/security-penetration-tests/<id>/report \
  --header 'X-API-Key: <api-key>'

Get penetration test PDF

GET/v1/security-penetration-tests/{id}/pdf

Get penetration test PDF in Complianz. Create AI-powered penetration test runs, track progress, inspect findings and events, and download markdown or PDF reports.

Path parameters

idstringrequired

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200PDF report artifact
curl --request GET \
  --url https://api.complianz.ai/v1/security-penetration-tests/<id>/pdf \
  --header 'X-API-Key: <api-key>'

List pentest finding context notes

GET/v1/pentest-finding-contexts

Returns the customer-written context notes attached to pentest findings for a target URL. These notes are shared with the testing agent on future scans of the same target so retests are informed, not blind.

Query parameters

targetUrlstringrequired

Target URL the notes are attached to

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200Context notes returned
curl --request GET \
  --url https://api.complianz.ai/v1/pentest-finding-contexts?targetUrl=<targetUrl> \
  --header 'X-API-Key: <api-key>'

Add context to a pentest finding

PUT/v1/pentest-finding-contexts/{issueId}

Saves a customer context note on a pentest finding, e.g. an accepted-by-design rationale or remediation details. Future scans of the same target pass the note to the testing agent so the issue is retested with that context.

Path parameters

issueIdstringrequired

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Request body

runIdstringrequired

Penetration test run ID the finding belongs to

contextstringrequired

Context for the finding, e.g. an accepted-by-design rationale or remediation details. Shared with the testing agent on future scans of the same target. Max 2000 characters.

Responses

200Context note saved
404Run or finding not found
curl --request PUT \
  --url https://api.complianz.ai/v1/pentest-finding-contexts/<issueId> \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "runId": "pentest-abc123",
    "context": "Read access to appConfiguration is accepted by design: the collection only holds non-secret bootstrap configuration and write access is restricted to privileged users."
  }'

Remove context from a pentest finding

DELETE/v1/pentest-finding-contexts/{issueId}

Deletes the customer context note attached to a pentest finding so future scans of the target no longer receive it from the testing agent briefing.

Path parameters

issueIdstringrequired

Header parameters

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Responses

200Context note deleted
404No context found for finding
curl --request DELETE \
  --url https://api.complianz.ai/v1/pentest-finding-contexts/<issueId> \
  --header 'X-API-Key: <api-key>'