Estimate the credit cost of scanning one or more repositories before starting a scan.
completed or partial cost estimation with a positive total_credits value is required before calling POST /scans.
Cost estimations run asynchronously. The POST returns a record in pending or running state; poll GET /cost-estimations/{id} until status reaches completed, partial, or failed.
writesource field.
connected — a repository already synced to Hacktron via GitHub, GitLab, or Bitbucketpublic — a public git repository Hacktron can clone anonymouslyupload — a previously uploaded archive201 Created — the estimation is queued. Poll GET /cost-estimations/{id} until status reaches a terminal value.
id as cost_estimation_id to POST /scans to start the scan. The scan must use repositories and branches that were included in the estimate.
400 — invalid or missing fields (for example, more than 20 repos, invalid source, or missing repo_url).401 / 403 — authentication or scope failure.