Use the API

Add repositories, run scans, and read verified findings from your own scripts, CI, or a coding agent.

AutoProof has a public REST API (v2). It covers the same run as the web app: add a repository, start a scan, and read the verified findings. Use it from your own scripts, CI, or backend. A coding agent can make the same calls by itself.

Before you start

  • Base URL: https://api.autoproof.io/v2
  • Key: every request carries an X-API-Key header. Keys start with ak_, belong to one organization, and are created in the app under API Keys.
  • No server on your side: you follow a scan by polling or over an event stream.
  • For agents and generated clients: the OpenAPI spec is the canonical, machine-readable contract. An agent needs the spec and a key.

The four steps

POST /repositories
POST /repositories/{id}/scans
GET  …/scans/{commit_sha}/events
GET  /repositories/{id}/verifications?final_classification=exploitable_runtime_confirmed
  1. Add a repository. Give a public repository URL, or pick a repository from your connected GitHub.
  2. Start a scan. Without sast_input, AutoProof scans the repository itself with Opengrep. With it, AutoProof verifies only the results you send.
  3. Wait for it. The events request is a stream of scan.status and scan.completed events. You can also poll GET …/scans/{commit_sha}: the status goes from CREATING to ANALYZING to COMPLETED or FAILED.
  4. Read the results. The verifications request lists what was verified; the filter above keeps the findings reproduced at runtime. GET /verifications/{id} returns one.

Paths are shortened here. The API reference has each one in full, with its parameters.

What you can read back

For each verification unit:

  • Its status, verdict, and report
  • The original SAST evidence (…/raw-sast)
  • The proof of concept (GET /verifications/{id}/poc.py)
  • The regression reproducer’s code (…/regression-code)
  • The history of attempts (…/attempts)

You can also verify a finding again (POST /verifications/{id}/retry) and read your usage (GET /usage).

Results come back in these values. They are the results and kinds of evidence the app shows; see Read the results.

Field Values
exploitability proven_exploitable, not_exploitable, needs_review
exploit_evidence runtime_reproduced, regression_reproduced, none

Automate a repository

PUT /repositories/{id}/automation sets what runs by itself: a scan on each push and pull request, patch validation for findings reproduced at runtime, and a draft pull request for a verified fix. It needs a paid plan and a connected GitHub App. Your team still reviews and merges.

Reference