Trigger scan API in Website Scanner
Use this API to trigger a new run of an existing accessibility website scan.
trigger scan
For geo-restricted data, use the following endpoints:
https://accessibility-eu.browserstack.com/api/website-scanner/v1/scans/{scan_id}/new_scan (European Union)
https://accessibility.browserstack.com/api/website-scanner/v1/scans/{scan_id}/new_scan (United States)
https://accessibility-in.browserstack.com/api/website-scanner/v1/scans/{scan_id}/new_scan (India)
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" \
-
project_id* Integer
The unique ID of the scan project for which you want to trigger a new run.
Response Attributes 200 OK JSON
Response
{
"success": true,
"data": {
"scanRunId": 144
}
}
-
success Boolean
Indicates whether the request was successful.
-
data Object
â–¶ SHOW VALUESContains the ID of the newly created scan run.
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.