Scan a repo
Trigger a scan by providing a repository URL (or ref). You can wait for the scan to finish or poll for results.SDK
Poll for results
If you don’t usewaitForCompletion, poll the scan result:
REST API
Start scan:POST /v1/security/scan
Headers: Authorization: Bearer key_...Body:
GET /v1/security/scan/:scanId
Finding shape
| Field | Type | Description |
|---|---|---|
id | string | Finding id. |
severity | string | critical | high | medium | low | info. |
title | string | Short title. |
description | string | Details. |
file | string | Path in repo. |
line | number | Line number (optional range in extended shape). |
suggestion | string | Optional remediation. |