Create a new source-mode scan.
POST/v1/scans
Kicks off a scan and returns the scan record. When auto_delta is true
and a prior completed scan exists for the same account + git URL set,
the server dispatches an update_diff rescan instead of a fresh run
(subsequent CI runs only re-scan changed files).
multipart/form-data is required when attaching uploads. Otherwise,
a plain JSON body is simpler to generate from curl.
Request
Responses
- 201
- 400
- 401
- 402
- 403
Scan (or rescan) dispatched.
Malformed request — missing or invalid fields.
Missing or invalid bearer token.
Tier limit (concurrent scans, monthly tokens, disk, ...) exceeded.
Authenticated, but not allowed (tier / role / ownership).