Create penetration test
Security Penetration Tests
Create penetration test | Comp AI API
Create an AI-powered penetration test run for an approved target and track the resulting findings and report artifacts.
POST
Create penetration test
Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Body
application/json
Target URL for the penetration test scan
Example:
"https://app.example.com"
Repository URL containing the target application code
Example:
"https://github.com/org/repo"
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.
Maximum string length:
4000Response
Penetration test created

