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
/v1/security-penetration-testsList 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-IdstringOrganization 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
/v1/security-penetration-testsCreate an AI-powered penetration test run for an approved target and track the resulting findings and report artifacts.
Header parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
authorizationobjectrequiredShow child attributes
acceptedbooleanrequiredMust be true: user accepts the authorization terms
signerNamestringrequiredFull name typed as signature
signerRolestringrequiredSigner role or title
termsVersionstringrequiredVersion of the authorization text that was shown
targetUrlstringrequiredTarget URL for the penetration test scan
repoUrlstringRepository URL containing the target application code
additionalContextstringFree-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
/v1/security-penetration-tests/termsCurrent 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-IdstringOrganization 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
/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
idstringrequiredHeader parameters
X-Organization-IdstringOrganization 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
/v1/security-penetration-tests/{id}/progressGet 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
idstringrequiredHeader parameters
X-Organization-IdstringOrganization 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
/v1/security-penetration-tests/{id}/issuesReturns the structured findings discovered during the run. Grows over time during a live scan as agents discover more issues.
Path parameters
idstringrequiredHeader parameters
X-Organization-IdstringOrganization 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
/v1/security-penetration-tests/{id}/eventsReturns the real-time agent activity log emitted during a run (tool calls, observations, etc.). Noisy — meant for activity feeds and debugging.
Path parameters
idstringrequiredHeader parameters
X-Organization-IdstringOrganization 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
/v1/security-penetration-tests/{id}/reportGet 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
idstringrequiredHeader parameters
X-Organization-IdstringOrganization 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
/v1/security-penetration-tests/{id}/pdfGet 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
idstringrequiredHeader parameters
X-Organization-IdstringOrganization 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
/v1/pentest-finding-contextsReturns 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
targetUrlstringrequiredTarget URL the notes are attached to
Header parameters
X-Organization-IdstringOrganization 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
/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
issueIdstringrequiredHeader parameters
X-Organization-IdstringOrganization ID (required for session auth, optional for API key auth)
Request body
runIdstringrequiredPenetration test run ID the finding belongs to
contextstringrequiredContext 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
/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
issueIdstringrequiredHeader parameters
X-Organization-IdstringOrganization 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>'