Start a Scan
Endpoint
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
codebaseId | string | Yes | Repository/codebase identifier |
branch | string | Yes | Git branch to scan |
scanSpecificFiles | boolean | No | Only scan specific files |
fileIds | string[] | No | File IDs to scan (if scanSpecificFiles) |
Example Request
Response
Scan Specific Files
To scan only certain files:Get Scan Status
Endpoint
Example Request
Response
Status Values
| Status | Description |
|---|---|
pending | Scan queued |
running | Scan in progress |
completed | Scan finished successfully |
failed | Scan encountered an error |
Polling for Completion
Poll the status endpoint until the scan completes:Finding Your Codebase ID
ThecodebaseId is required to start a scan. Find it:
Via Dashboard
- Go to Repositories
- Click a repository
- The codebase ID is in the URL:
/repositories/codebase_abc123
Via API
List repositories to get codebase IDs (contact support for this endpoint documentation).Error Handling
Common Errors
| Error | Cause | Solution |
|---|---|---|
Codebase not found | Invalid codebaseId | Verify the ID exists |
Branch not found | Branch doesn’t exist | Check branch name |
Invalid file IDs | File IDs don’t exist | Verify file IDs |
Error Response Format
Rate Limits
| Operation | Limit |
|---|---|
| Start scan | 10 per minute |
| Get status | 100 per minute |
Complete Example
Related Pages
API Authentication
Authentication setup
Issues API
Access scan results
CLI Scanning
CLI alternative
CI/CD Integration
Automate scans

