GET https://api.docspot.docexploit.com/reports/{analysisId}/download
This endpoint allows authorized users to download a JSON file containing a list of vulnerabilities for a specified analysis.
Clients must provide a valid API key in the request headers to authenticate.
| Name | Type | Required | Description |
|---|---|---|---|
x-api-key | String | Yes | API key for authentication |
| Name | Type | Required | Description |
analysisId | String | Yes | The unique identifier of the analysis |
Status Code: 200 OK
Headers:
| Name | Value |
Content-Type | application/json |
Content-Disposition | attachment; filename=vulnerabilities.json |
Body:
[
{
"id": "string",
"registerDate": "timestamp",
"analysisId": "string",
"ruleId": "string",
"analyzer": "string",
"rating": {
"cwe": { "value": "string", "version": "string" },
"pci": { "value": "string", "version": "string" },
"cvss": { "value": "number", "version": "string" },
"severity": { "value": "string", "version": "string" }
},
"location": {
"filename": "string",
"line": { "start": "number", "end": "number" },
"column": { "start": "number", "end": "number" },
"lines": [
{ "position": "number", "code": "string" }
]
}
}
]The endpoint returns only HTTP status codes without custom error messages.#### 400 Bad Request Occurs when the request parameters are invalid. Status Code: 400
Occurs if the API key is missing or invalid. Status Code: 401
Occurs if the user does not have the required role. Status Code: 403
Occurs if the specified analysisId does not exist. Status Code: 404
Occurs in case of an unexpected server error. Status Code: 500
curl -X GET "https://api.docspot.docexploit.com/reports/a6d2154a-66fa-4818-a479-35ea5529d8f1/download" \
-H "x-api-key: your-api-key-here" \
-o vulnerabilities.jsonx-api-key header is included in the request.ROLE_DOCSPOT_VULNERABILITY_VIEW permission can access this endpoint.









