When to Use This Endpoint
After uploading a binary image, use this endpoint to:- Check if the security scan is still in progress
- Determine when analysis has completed
- Get the scan ID for retrieving detailed results
Request
Endpoint - List All Scans for an Image| Parameter | Description |
|---|---|
product_id | The product ID (e.g., prod_abc123) |
image_id | The image ID returned from the upload (e.g., img_abc123) |
scan_id | (Optional) Specific scan ID to query |
| Parameter | Required | Description |
|---|---|---|
status | ✅ | Set to true to include scan status information |
| Header | Value |
|---|---|
Authorization | Bearer <access_token> |
Example Request
Response
Scan States
The status is found in thelatestScanState.type field:
| State | Description | Action |
|---|---|---|
in_progress | Analysis is currently running | Wait and poll again |
completed | Analysis finished successfully | Results are ready to view |
no_scans | No scans exist for the image | Check if upload succeeded |
status_unavailable | Status could not be determined | Contact support if persistent |
Polling for Completion
To wait for a scan to complete, poll the endpoint periodically:Scan Duration
Scan duration depends on the binary image size, complexity and content:| Image Size | Typical Duration |
|---|---|
| < 64 MB | 5-10 minutes |
| 64-500 MB | 10-60 minutes |
| > 500 MB | 1+ hours |
Tip: For large images, consider setting up webhook notifications instead of polling.