Get Download Link
curl --request GET \
--url https://api.enkryptai.com/redteam/download-link \
--header 'X-Enkrypt-Test-Name: <x-enkrypt-test-name>' \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/redteam/download-link"
headers = {
"X-Enkrypt-Test-Name": "<x-enkrypt-test-name>",
"apikey": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Enkrypt-Test-Name': '<x-enkrypt-test-name>', apikey: '<api-key>'}
};
fetch('https://api.enkryptai.com/redteam/download-link', 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.enkryptai.com/redteam/download-link",
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-Enkrypt-Test-Name: <x-enkrypt-test-name>",
"apikey: <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.enkryptai.com/redteam/download-link"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Enkrypt-Test-Name", "<x-enkrypt-test-name>")
req.Header.Add("apikey", "<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.enkryptai.com/redteam/download-link")
.header("X-Enkrypt-Test-Name", "<x-enkrypt-test-name>")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/redteam/download-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Enkrypt-Test-Name"] = '<x-enkrypt-test-name>'
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"link": "https://app.enkryptai.com/redteam/download-link/xxxx",
"expiry": "1 week",
"expires_at": "2023-04-10T12:00:00Z"
}{
"error": "Test name is required"
}{
"error": "Test not found"
}๐ด Red Team API
Get Download Link
Get a download link for red team test results
GET
/
redteam
/
download-link
Get Download Link
curl --request GET \
--url https://api.enkryptai.com/redteam/download-link \
--header 'X-Enkrypt-Test-Name: <x-enkrypt-test-name>' \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/redteam/download-link"
headers = {
"X-Enkrypt-Test-Name": "<x-enkrypt-test-name>",
"apikey": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Enkrypt-Test-Name': '<x-enkrypt-test-name>', apikey: '<api-key>'}
};
fetch('https://api.enkryptai.com/redteam/download-link', 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.enkryptai.com/redteam/download-link",
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-Enkrypt-Test-Name: <x-enkrypt-test-name>",
"apikey: <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.enkryptai.com/redteam/download-link"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Enkrypt-Test-Name", "<x-enkrypt-test-name>")
req.Header.Add("apikey", "<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.enkryptai.com/redteam/download-link")
.header("X-Enkrypt-Test-Name", "<x-enkrypt-test-name>")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/redteam/download-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Enkrypt-Test-Name"] = '<x-enkrypt-test-name>'
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"link": "https://app.enkryptai.com/redteam/download-link/xxxx",
"expiry": "1 week",
"expires_at": "2023-04-10T12:00:00Z"
}{
"error": "Test name is required"
}{
"error": "Test not found"
}Authorizations
Headers
The name of the red team test
Example:
"Redteam Test 243dde"
Response
Successful Response
The download link for the red team test results
Example:
"https://app.enkryptai.com/redteam/download-link/xxxx"
Human-readable expiry duration
Example:
"1 week"
ISO 8601 timestamp when the link expires
Example:
"2023-04-10T12:00:00Z"
โI

