Skip to main content
GET
/
accounts
/
{account_id}
/
identities
/
{identity_id}
/
risks
/
{risk_type}
Get Identity Risks of a specific type
curl --request GET \
  --url https://api.prd.rad.security/accounts/{account_id}/identities/{identity_id}/risks/{risk_type}
import requests

url = "https://api.prd.rad.security/accounts/{account_id}/identities/{identity_id}/risks/{risk_type}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.prd.rad.security/accounts/{account_id}/identities/{identity_id}/risks/{risk_type}', 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.prd.rad.security/accounts/{account_id}/identities/{identity_id}/risks/{risk_type}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$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.prd.rad.security/accounts/{account_id}/identities/{identity_id}/risks/{risk_type}"

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

	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.prd.rad.security/accounts/{account_id}/identities/{identity_id}/risks/{risk_type}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.prd.rad.security/accounts/{account_id}/identities/{identity_id}/risks/{risk_type}")

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

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "entries": [
    {
      "associated_resources": [
        {
          "id": "<string>",
          "name": "<string>",
          "severity": "<string>"
        }
      ],
      "deleted_at": "<string>",
      "description": "<string>",
      "fingerprint": "<string>",
      "first_detected_at": "<string>",
      "id": "<string>",
      "identity_id": "<string>",
      "last_detected_at": "<string>",
      "name": "<string>",
      "risk_counter": 123,
      "score": 123,
      "type": "<string>",
      "weight": 123
    }
  ],
  "page": 123,
  "page_count": 123,
  "page_size": 123,
  "total_count": 123
}
{
  "status": 123,
  "code": "<string>",
  "request_id": "<string>",
  "validation_details": [
    {
      "code": "<string>",
      "field": "<string>",
      "message": "<string>",
      "param": "<string>"
    }
  ]
}

Path Parameters

account_id
string
required

Account ID

identity_id
string
required

Identity ID

risk_type
string
required

Risk type

Query Parameters

page
integer

Page number starting from 1

page_size
integer

Page size

Response

OK

entries
object[]
page
integer
page_count
integer
page_size
integer
total_count
integer