Trigger scan API in Website Scanner
Use this API to trigger a new run of an existing accessibility website scan.
trigger scan
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-accessibility.browserstack.com/api/website-scanner/v1/scans/{scan_id}/new_scan" \
-H "Content-Type: application/json" \
-
authConfigId* Integer
A unique ID of the auth config to be used for the scan.
Response Attributes 200 OK
JSON
Response
{
"success": true,
"data": {
"scanRunId": 144
}
}
-
success Boolean
True if the scan is triggered.
-
data Object
Details of the scan triggered.
-
scanRunID Integer
A unique ID of the scan that got triggered.
-
-
error Object
Details about the error, if any, returned on trying to trigger a scan.
-
success Boolean
True if successful, False if an error occurred.
-
data String
Additional error information, if any.
-
error String
Error message indicating the reason for failure.
-
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.