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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

pr_scan_id
integer
required

Response

200
application/json
Successful Response
pr_id
integer
required
vc_id
integer
required
webhook_id
integer
required
repo_id
integer
required
vc_type
string
required
scan_type
enum<string>
required
Available options:
SECRET,
VULNERABILITY
id
integer
required
created_at
string
required
pr
object
required
vc_name
string
required
repo_name
string
required
status
enum<string>
default:pending
Available options:
pending,
completed,
processing,
failed
block_status
boolean | null
default:true
other_details
object | null
stat_url
string | null
secret_count
integer
default:0
vulnerability_count
integer
default:0