GET /api/static/scan
Check the status of a scan and retrieve results once completed.Request
Headers:x-api-key(required): Your Rafter API key
scan_id(required): The scan request ID to checkformat(optional): Output format -json(default) ormd
Example Requests
Check status (JSON format):Response
Scan Pending/Processing
Status: pending, queued, or processingScan Completed (JSON Format)
Status: completedScan Completed (Markdown Format - format=md)
Status: completed with format=mdScan Failed
Status: failedNo Vulnerabilities Found
Status: completed with no issuesError Responses
Error (400 Bad Request):Response Fields
Common Fields
| Field | Type | Description |
|---|---|---|
status | string | Scan status: pending, queued, processing, completed, failed |
Completed Scan Fields (JSON)
| Field | Type | Description |
|---|---|---|
repository_name | string | Repository name in format “org/repo” |
branch_name | string | Branch name that was scanned |
scan_date | string | ISO 8601 timestamp when scan was created |
vulnerabilities | array | Array of vulnerability objects |
Vulnerability Object Fields
| Field | Type | Description |
|---|---|---|
rule_id | string | Unique identifier for the security rule |
level | string | Severity level: critical, high, medium, low |
file | string | File path where vulnerability was found |
line | integer | Line number in the file |
column | integer | Column number in the line |
message | string | Short description of the issue |
description | string | Detailed explanation of the vulnerability |
suggestion | string | Recommended fix or mitigation |
Rate Limiting
The API implements rate limiting to ensure fair usage:- Rate Limit: 100 requests per minute per IP address
- Quota: Based on your subscription plan

