Skip to main content
GET
/
appsec
/
issues
/
{issue_id}
Get Issue by ID
curl --request GET \
  --url https://api.leen.dev/v1/appsec/issues/{issue_id} \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-CONNECTION-ID: <api-key>'
import requests

url = "https://api.leen.dev/v1/appsec/issues/{issue_id}"

headers = {
"X-CONNECTION-ID": "<api-key>",
"X-API-KEY": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {'X-CONNECTION-ID': '<api-key>', 'X-API-KEY': '<api-key>'}
};

fetch('https://api.leen.dev/v1/appsec/issues/{issue_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leen.dev/v1/appsec/issues/{issue_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>",
"X-CONNECTION-ID: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.leen.dev/v1/appsec/issues/{issue_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-CONNECTION-ID", "<api-key>")
req.Header.Add("X-API-KEY", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.leen.dev/v1/appsec/issues/{issue_id}")
.header("X-CONNECTION-ID", "<api-key>")
.header("X-API-KEY", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.leen.dev/v1/appsec/issues/{issue_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-CONNECTION-ID"] = '<api-key>'
request["X-API-KEY"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "code_repo": "<string>",
  "project_file_path": "<string>",
  "vendor": "<string>",
  "vendor_id": "<string>",
  "name": "<string>",
  "package_name": "<string>",
  "package_version": "<string>",
  "package_manager": "<string>",
  "description": "<string>",
  "first_seen": "2023-11-07T05:31:56Z",
  "last_seen": "2023-11-07T05:31:56Z",
  "repo_url": "<string>",
  "repo_branch_name": "<string>",
  "platform": "<string>",
  "publication_time": "2023-11-07T05:31:56Z",
  "is_patchable": true,
  "remediation": [
    "<string>"
  ],
  "vulnerability_identifiers": [
    {
      "type": "CVE",
      "value": "<string>"
    }
  ],
  "cvss_score": 123,
  "kb_url": "<string>",
  "issue_url": "<string>",
  "vendor_data": {
    "attack_surface": {
      "id": 123,
      "name": "<string>",
      "external_repo_id": "<string>",
      "provider": "<string>",
      "active": true,
      "branch": "<string>"
    }
  },
  "updated_at": "2023-11-07T05:31:56Z",
  "state_updated_at": "2023-11-07T05:31:56Z"
}
{
"detail": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

X-CONNECTION-ID
string
header
required
X-API-KEY
string
header
required

Path Parameters

issue_id
string<uuid>
required

Response

Successful Response

id
string<uuid>
required
code_repo
string
required
project_file_path
string
required
vendor
string
required
vendor_id
string
required
name
string
required
package_name
string
required
package_version
string
required
severity
enum<string>
required
Available options:
INFO,
LOW,
MEDIUM,
HIGH,
CRITICAL
package_manager
string
required
type
enum<string>
required
Available options:
VULNERABILITY,
LICENSE,
CLOUD,
CODE,
CUSTOM,
CONFIG
description
string
required
state
enum<string>
required
Available options:
OPEN,
CLOSED,
IGNORED,
DELETED
first_seen
string<date-time>
required
last_seen
string<date-time>
required
repo_url
string | null
repo_branch_name
string | null
platform
string | null
publication_time
string<date-time> | null
is_patchable
boolean | null
remediation
string[] | null
vulnerability_identifiers
(AppSecIssueVulnIdentifierCVE · object | AppSecIssueVulnIdentifierCWE · object | AppSecIssueVulnIdentifierOWASP · object | AppSecIssueVulnIdentifierOther · object)[] | null
cvss_score
number | null
kb_url
string | null
issue_url
string | null
vendor_data
AikidoVendorData · object
updated_at
string<date-time> | null
state_updated_at
string<date-time> | null