Skip to main content
GET
/
v1
/
risk
/
ato
/
profile
/
{subject_id}
Get ATO profile
curl --request GET \
  --url https://api.truthlocks.com/v1/risk/ato/profile/{subject_id} \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.truthlocks.com/v1/risk/ato/profile/{subject_id}"

headers = {"X-API-Key": "<api-key>"}

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

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

fetch('https://api.truthlocks.com/v1/risk/ato/profile/{subject_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.truthlocks.com/v1/risk/ato/profile/{subject_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>"
],
]);

$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.truthlocks.com/v1/risk/ato/profile/{subject_id}"

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

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.truthlocks.com/v1/risk/ato/profile/{subject_id}")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.truthlocks.com/v1/risk/ato/profile/{subject_id}")

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

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

response = http.request(request)
puts response.read_body
{
  "subject_id": "<string>",
  "risk_level": "<string>",
  "last_login": "<string>",
  "known_devices": 123,
  "alerts": [
    {}
  ]
}
{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}
Returns the ATO risk profile for the specified subject. The profile tracks failed login velocity in a rolling one-hour window and records known IP addresses and devices. Use this endpoint to check the current risk posture of a user without triggering a new evaluation. See the account takeover detection guide for the full workflow.

Path parameters

subject_id
string
required
The subject identifier to look up (user ID, email, or external ID).

Response

subject_id
string
The subject identifier.
subject_type
string
Type of subject (user).
risk_level
string
Current ATO risk level: normal | elevated | high | critical
failed_login_count
integer
Number of failed logins in the current one-hour window.
known_ips
array
List of IP addresses previously seen for this subject.
known_devices
array
List of device identifiers previously seen for this subject.
updated_at
string
ISO 8601 timestamp of the last profile update.

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

subject_id
string
required

Subject identifier

Response

ATO profile

subject_id
string
risk_level
string
last_login
string
known_devices
integer
alerts
object[]