CentralCSP
APIScans

Get a saved scan

Returns one of your saved scans: where it stands, and once it finishes its scores and how many findings it produced at each severity.

Requires membership of the workspace.

GET
/v1/workspaces/{workspaceId}/scans/{scanId}

Authorization

AuthorizationBearer <token>

An OpenID Connect access token issued by Keycloak, acting as the signed-in user.

In: header

Path Parameters

workspaceId*string
scanId*string

Response Body

application/json

curl -X GET "https://example.com/v1/workspaces/string/scans/string"
{  "id": "string",  "tool": "csp-scanner",  "target": "example.com",  "status": "running",  "outcome": "no_host",  "error": "bot protection interstitial detected",  "httpStatus": 403,  "urlAnalyzed": "https://example.com/",  "followRedirects": true,  "scanResultId": "string",  "scores": {    "overall": 0,    "security": 0,    "quality": 0  },  "findings": {    "critical": 0,    "high": 0,    "medium": 0,    "low": 0,    "info": 0,    "total": 0  },  "createdAt": "2019-08-24T14:15:22Z",  "finishedAt": "2019-08-24T14:15:22Z"}