Pull Requests
Get Pr Scan By Id Route
GET
/
pr
/
scan
/
{pr_scan_id}
curl --request GET \
--url https://example.com/api/pr/scan/{pr_scan_id} \
--header 'Authorization: Bearer <token>'
{
"pr_id": 123,
"vc_id": 123,
"webhook_id": 123,
"repo_id": 123,
"vc_type": "<string>",
"status": "pending",
"block_status": true,
"other_details": {},
"stat_url": "<string>",
"scan_type": "SECRET",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"pr": {
"pr_id": 123,
"pr_name": "<string>",
"repo_id": 123,
"pr_link": "<string>",
"vctype": "gitlab",
"vc_id": 123,
"webhook_id": 123,
"last_scan": "2023-11-07T05:31:56Z",
"secret_count": 123,
"vulnerability_count": 123,
"id": 123,
"created_at": "2023-11-07T05:31:56Z"
},
"vc_name": "<string>",
"repo_name": "<string>",
"secret_count": 0,
"vulnerability_count": 0
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
application/json
Successful Response
The response is of type object
.
curl --request GET \
--url https://example.com/api/pr/scan/{pr_scan_id} \
--header 'Authorization: Bearer <token>'
{
"pr_id": 123,
"vc_id": 123,
"webhook_id": 123,
"repo_id": 123,
"vc_type": "<string>",
"status": "pending",
"block_status": true,
"other_details": {},
"stat_url": "<string>",
"scan_type": "SECRET",
"id": 123,
"created_at": "2023-11-07T05:31:56Z",
"pr": {
"pr_id": 123,
"pr_name": "<string>",
"repo_id": 123,
"pr_link": "<string>",
"vctype": "gitlab",
"vc_id": 123,
"webhook_id": 123,
"last_scan": "2023-11-07T05:31:56Z",
"secret_count": 123,
"vulnerability_count": 123,
"id": 123,
"created_at": "2023-11-07T05:31:56Z"
},
"vc_name": "<string>",
"repo_name": "<string>",
"secret_count": 0,
"vulnerability_count": 0
}
Assistant
Responses are generated using AI and may contain mistakes.