Listar Matrices de Riesgo
curl --request GET \
--url http://api.gu1.ai/risk-matrices \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/risk-matrices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/risk-matrices', 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/risk-matrices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "http://api.gu1.ai/risk-matrices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api.gu1.ai/risk-matrices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/risk-matrices")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyReferencia API
Listar Matrices de Riesgo
Obtener todas las matrices de riesgo de la organización — usando el motor de scoring de riesgo gu1 con activadores configurables, con ejemplos para list.
GET
/
risk-matrices
Listar Matrices de Riesgo
curl --request GET \
--url http://api.gu1.ai/risk-matrices \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/risk-matrices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://api.gu1.ai/risk-matrices', 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/risk-matrices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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 := "http://api.gu1.ai/risk-matrices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://api.gu1.ai/risk-matrices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/risk-matrices")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyDescripción General
Recupera todas las matrices de riesgo de la organización, excluyendo matrices archivadas.Endpoint
GET http://api.gu1.ai/risk-matrices
Respuesta
{
"riskMatrices": [
{
"id": "rm-123",
"name": "Matriz de Riesgo AML",
"description": "Evaluación de riesgo de lavado de dinero",
"category": "aml",
"status": "active",
"version": 1,
"scoringConfig": {
"minScore": 0,
"maxScore": 100,
"thresholds": {
"low": 30,
"medium": 60,
"high": 80
}
},
"triggers": [
{
"name": "Alerta de Alto Riesgo",
"description": "Activar cuando el puntaje excede 80",
"condition": {
"field": "riskScore",
"operator": "gt",
"value": 80
},
"action": "create_investigation",
"priority": "CRITICAL"
}
],
"tags": ["aml", "compliance"],
"ruleCount": 15,
"activeRuleCount": 12,
"createdAt": "2024-01-15T10:00:00Z"
}
],
"total": 1
}
Ejemplo
curl -X GET http://api.gu1.ai/risk-matrices \
-H "Authorization: Bearer YOUR_API_KEY"
Was this page helpful?
⌘I