Get Projects
curl --request GET \
--url https://{host}/api/org/projects \
--header 'X-API-Token: <api-key>'import requests
url = "https://{host}/api/org/projects"
headers = {"X-API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Token': '<api-key>'}};
fetch('https://{host}/api/org/projects', 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://{host}/api/org/projects",
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-Token: <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://{host}/api/org/projects"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Token", "<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://{host}/api/org/projects")
.header("X-API-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/org/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"projects": [
{
"name": "Example Project",
"shortcode": "dvpt-abc-example",
"url": "https://app.dvuln.com/project/dvpt-abc-example/overview",
"level": "1",
"commsCount": 1,
"startDate": {
"date": "2024-01-01 09:00:00.000000",
"timezone_type": 3,
"timezone": "Australia/Sydney"
},
"startDateRaw": "01-01-2024",
"endDate": {
"date": "2024-01-10 17:00:00.000000",
"timezone_type": 3,
"timezone": "Australia/Sydney"
},
"endDateRaw": "10-01-2024",
"reportDeliveryDate": {
"date": "2024-01-11 17:00:00.000000",
"timezone_type": 3,
"timezone": "Australia/Sydney"
},
"reportDeliveryDateRaw": "11-01-2024",
"completionPercentage": 75,
"status": {
"ID": "3",
"name": "Live",
"description": "Testing is currently in progress."
},
"type": {
"ID": "1",
"code": "dvpt",
"name": "Penetration Test",
"sorting": 123
},
"scopeMarkdown": "| Asset | Environment, Version |\r\n| --- | --- |\r\n| [https://example.com](https://example.com/) | Production v1.0.0 |",
"scopeEditDate": "1st Jan 2024 10:00 AM",
"scopeEditUser": {
"displayName": "john-doe",
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"profileImgUuid": "a1b2c3d4e5f6g7h8i9j0"
}
}
],
"count": 1
}API Reference
Get Projects
Retrieve a list of all projects in the organization
GET
/
api
/
org
/
projects
Get Projects
curl --request GET \
--url https://{host}/api/org/projects \
--header 'X-API-Token: <api-key>'import requests
url = "https://{host}/api/org/projects"
headers = {"X-API-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Token': '<api-key>'}};
fetch('https://{host}/api/org/projects', 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://{host}/api/org/projects",
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-Token: <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://{host}/api/org/projects"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Token", "<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://{host}/api/org/projects")
.header("X-API-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/org/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"projects": [
{
"name": "Example Project",
"shortcode": "dvpt-abc-example",
"url": "https://app.dvuln.com/project/dvpt-abc-example/overview",
"level": "1",
"commsCount": 1,
"startDate": {
"date": "2024-01-01 09:00:00.000000",
"timezone_type": 3,
"timezone": "Australia/Sydney"
},
"startDateRaw": "01-01-2024",
"endDate": {
"date": "2024-01-10 17:00:00.000000",
"timezone_type": 3,
"timezone": "Australia/Sydney"
},
"endDateRaw": "10-01-2024",
"reportDeliveryDate": {
"date": "2024-01-11 17:00:00.000000",
"timezone_type": 3,
"timezone": "Australia/Sydney"
},
"reportDeliveryDateRaw": "11-01-2024",
"completionPercentage": 75,
"status": {
"ID": "3",
"name": "Live",
"description": "Testing is currently in progress."
},
"type": {
"ID": "1",
"code": "dvpt",
"name": "Penetration Test",
"sorting": 123
},
"scopeMarkdown": "| Asset | Environment, Version |\r\n| --- | --- |\r\n| [https://example.com](https://example.com/) | Production v1.0.0 |",
"scopeEditDate": "1st Jan 2024 10:00 AM",
"scopeEditUser": {
"displayName": "john-doe",
"firstName": "John",
"lastName": "Doe",
"fullName": "John Doe",
"profileImgUuid": "a1b2c3d4e5f6g7h8i9j0"
}
}
],
"count": 1
}⌘I