Analizar entidad
curl --request POST \
--url http://api.gu1.ai/entities/{entityId}/analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entityType": "<string>",
"rulesEngineConfig": {}
}
'import requests
url = "http://api.gu1.ai/entities/{entityId}/analyze"
payload = {
"entityType": "<string>",
"rulesEngineConfig": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({entityType: '<string>', rulesEngineConfig: {}})
};
fetch('http://api.gu1.ai/entities/{entityId}/analyze', 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 => "http://api.gu1.ai/entities/{entityId}/analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entityType' => '<string>',
'rulesEngineConfig' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://api.gu1.ai/entities/{entityId}/analyze"
payload := strings.NewReader("{\n \"entityType\": \"<string>\",\n \"rulesEngineConfig\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://api.gu1.ai/entities/{entityId}/analyze")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entityType\": \"<string>\",\n \"rulesEngineConfig\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/entities/{entityId}/analyze")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entityType\": \"<string>\",\n \"rulesEngineConfig\": {}\n}"
response = http.request(request)
puts response.read_bodyReferencia API
Analizar entidad
Ejecuta un análisis manual de riesgo con el motor de reglas sobre una entidad existente en el modelo universal gu1 de KYC, KYB y compliance.
POST
/
entities
/
{entityId}
/
analyze
Analizar entidad
curl --request POST \
--url http://api.gu1.ai/entities/{entityId}/analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entityType": "<string>",
"rulesEngineConfig": {}
}
'import requests
url = "http://api.gu1.ai/entities/{entityId}/analyze"
payload = {
"entityType": "<string>",
"rulesEngineConfig": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({entityType: '<string>', rulesEngineConfig: {}})
};
fetch('http://api.gu1.ai/entities/{entityId}/analyze', 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 => "http://api.gu1.ai/entities/{entityId}/analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entityType' => '<string>',
'rulesEngineConfig' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://api.gu1.ai/entities/{entityId}/analyze"
payload := strings.NewReader("{\n \"entityType\": \"<string>\",\n \"rulesEngineConfig\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://api.gu1.ai/entities/{entityId}/analyze")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entityType\": \"<string>\",\n \"rulesEngineConfig\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/entities/{entityId}/analyze")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entityType\": \"<string>\",\n \"rulesEngineConfig\": {}\n}"
response = http.request(request)
puts response.read_bodyDescripción general
Dispara manualmente el análisis de riesgo de una entidad usando la matriz de riesgo y reglas configuradas. Opcionalmente enriquece la entidad antes del análisis.Endpoint
POST http://api.gu1.ai/entities/{entityId}/analyze
Cuerpo de la solicitud
string
required
Tipo de entidad:
person, company o transactionobject
Comportamiento del motor en esta corrida. Campos opcionales (default
false):partialCoverage: con varias matrices asignadas, cobertura por matriz; las que no tienen datos se omiten.omitCoverage: omite todos los gates de cobertura (entidad principal y accionistas). Prevalece sobrepartialCoverage.
Ejemplo — cobertura parcial por matriz
curl -X POST http://api.gu1.ai/entities/entity-123/analyze \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"entityType": "company",
"rulesEngineConfig": { "partialCoverage": true }
}'
Ver también
Was this page helpful?
⌘I