The scan runs in the background but returns immediately with a JSON response containing an "id" that represents your scan.
You can use this id in other requests to retrieve your scan result.
Also, an "id" is returned for each url which can be used to retrieve detailed results for individual scan urls.