Added

AI pentests — Runs and preflight errors

AI Pentests API — Runs and preflight errors

New endpoints list the runs of an AI pentest (its full test, retests and release tests) and why a run failed.

Endpoints:

  • GET /v1/ai-pentests/{ai_pentest_id}/runs/ — Lists the runs, newest first.
  • GET /v1/ai-pentests/{ai_pentest_id}/runs/{id}/ — Retrieves a run.

Each run has:

  • id — Unique ID of the run, e.g. aipr_4Tq9WmZ2hK7cXn3R.
  • type — One of: full_test, retest, release_test.
  • status — One of: in_progress, completed, failed, cancelled. Stays in_progress until its findings are available.
  • created_at — When the run started.
  • preflight_errors — Why the run failed, or []. Each has a code and a detail:
    • git_clone_failed — A repository couldn't be cloned (detail.repo).
    • unresolved_git_repos — Repositories couldn't be found (detail.git_urls).
    • target_unreachable — The application couldn't be reached (detail.url).
    • invalid_credentials — A credential couldn't log in, one entry per credential (detail.reason).
    • bot_protection — Bot protection blocked the pentest (detail.vendor, detail.kind, detail.status).
    • unknown_preflight_failed — The cause is unknown.

Preflight errors can appear a few seconds after a run fails, so fetch it again if it has none. If it still has none after a minute, there won't be any.

The release test endpoint now also returns preflight_errors. Follow a release test with GET /v1/ai-pentests/{ai_pentest_id}/runs/{id}/, using the id it returns.

For more information, see the API documentation for AI pentests.