Docs

Fetch a Result

Most scores come back synchronously in the /api/v1/score response. If a slower check was still running, that response has status: "pending" and lists it under pending_modules. Poll this endpoint to get the finished result.

GET /api/v1/risk_assessments/:request_id
:request_idThe request_id returned by the original /api/v1/score call.
curl -X GET "https://revylta.com/api/v1/risk_assessments/550e8400-e29b-41d4-a716-446655440000" \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: YOUR_SERVER_API_KEY"
const response = await fetch("https://revylta.com/api/v1/risk_assessments/550e8400-e29b-41d4-a716-446655440000", {
  method: "GET",
  headers: {
    "Content-Type": "application/json",
    "X-API-KEY": "YOUR_SERVER_API_KEY"
  }
});

const result = await response.json();
console.log(result);
import requests

response = requests.get(
    "https://revylta.com/api/v1/risk_assessments/550e8400-e29b-41d4-a716-446655440000",
    headers={
        "Content-Type": "application/json",
        "X-API-KEY": "YOUR_SERVER_API_KEY"
    }
)

print(response.status_code)
print(response.json())
require "net/http"
require "json"
require "uri"

uri = URI("https://revylta.com/api/v1/risk_assessments/550e8400-e29b-41d4-a716-446655440000")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

request = Net::HTTP::Get.new(uri)
request["Content-Type"] = "application/json"
request["X-API-KEY"] = "YOUR_SERVER_API_KEY"

response = http.request(request)
puts response.code
puts response.body
<?php

$ch = curl_init("https://revylta.com/api/v1/risk_assessments/550e8400-e29b-41d4-a716-446655440000");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json",
    "X-API-KEY: YOUR_SERVER_API_KEY"
]);

$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

echo $status . PHP_EOL;
echo $response . PHP_EOL;

Response

Same shape as the Score API response, reflecting the latest state once background checks finish.

Not found

HTTP/1.1 404 Not Found
{
  "error": "Not found"
}