Skip to main content

Trigger Pentest Scan

POST 

/pentests/:pentest_id/run

Start the pentest scan workflow after validating that a target URL is set, the tenant's plan includes the AI Pentest feature (403 otherwise), and the target URL's host is covered by a verified domain or an app-scoped verification (422 otherwise; the ownership check is skipped when OWNERSHIP_VERIFICATION_ENABLED is false). A mobile target (target_kind android-apk or ios-repo) has no host: it needs at least one verified domain or app and every declared allowed domain verified, and that check is NEVER skipped, whatever OWNERSHIP_VERIFICATION_ENABLED says. Returns 404 when not found and 409 when the pentest is already pending or running.

Request​

Responses​

Successful Response