Skip to main content
Retrieve details about a specific security scan, including the status and high-level statistics.

When to Use This Endpoint

Use this endpoint to:
  • Poll the status of a running scan.
  • Retrieve summary statistics like finding counts and risk scores.

Request

Endpoint
GET <BINARLY_API_URL>/api/v4/products/{productId}/images/{imageId}/scans/{scanId}
Path Parameters
ParameterRequiredDescription
productId✅Product ID
imageId✅Image ID
scanId✅Scan ID
Headers
HeaderValue
AuthorizationBearer <access_token>

Example Request

BINARLY_PRODUCT_ID="01JQPGDX8QW0YJ0XEKV1EVG534"
IMAGE_ID="01JYJ0W0AACGC7QT1Q21SRWG94"
SCAN_ID="01JZ30CYZY52F5BPR3AAJ2DP89"

curl -s \
  -H "Authorization: Bearer ${TOKEN}" \
  "${BINARLY_API_URL}/api/v4/products/${BINARLY_PRODUCT_ID}/images/${IMAGE_ID}/scans/${SCAN_ID}"

Response

{
  "id": "01JZ30CYZY52F5BPR3AAJ2DP89",
  "parent": "products/01JQPGDX8QW0YJ0XEKV1EVG534/images/01JYJ0W0AACGC7QT1Q21SRWG94",
  "createTime": "2024-01-20T10:00:00Z",
  "author": "user@example.com",
  "latestScanState": {
    "type": "completed",
    "updateTime": "2024-01-20T10:30:00Z"
  }
}
FieldDescription
idScan ID
parentParent resource path (product/image)
createTimeWhen the scan was created
authorUser or service that initiated the scan
latestScanStateObject containing scan status
latestScanState.typeStatus: in_progress, completed, failed, cancelled
latestScanState.updateTimeWhen the status was last updated