Obter Alertas da Investigação
curl --request GET \
--url http://api.gu1.ai/intelligence/investigations/{id}/alerts \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/intelligence/investigations/{id}/alerts"
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/intelligence/investigations/{id}/alerts', 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/intelligence/investigations/{id}/alerts",
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/intelligence/investigations/{id}/alerts"
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/intelligence/investigations/{id}/alerts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/intelligence/investigations/{id}/alerts")
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_bodyReferência API
Obter Alertas da Investigação
Obter todos os alertas vinculados a uma investigação — no fluxo de gestão de casos da gu1 para equipes de compliance, com exemplos para get alerts.
GET
/
intelligence
/
investigations
/
{id}
/
alerts
Obter Alertas da Investigação
curl --request GET \
--url http://api.gu1.ai/intelligence/investigations/{id}/alerts \
--header 'Authorization: Bearer <token>'import requests
url = "http://api.gu1.ai/intelligence/investigations/{id}/alerts"
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/intelligence/investigations/{id}/alerts', 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/intelligence/investigations/{id}/alerts",
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/intelligence/investigations/{id}/alerts"
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/intelligence/investigations/{id}/alerts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/intelligence/investigations/{id}/alerts")
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_bodyVisão Geral
Recupera todos os alertas associados a uma investigação.Parâmetros de Rota
string
required
ID da Investigação
Parâmetros de Consulta
string
Filtrar por categoria de alerta
string
Ordenar por: createdAt, severity, riskContribution
Resposta
{
"investigation": {
"id": "inv-123",
"name": "Investigação AML"
},
"alerts": [
{
"id": "alert-456",
"name": "Transação Suspeita",
"severity": "HIGH",
"riskContribution": 35,
"consolidatedAt": "2024-12-23T10:00:00Z"
}
],
"summary": {
"totalAlerts": 3,
"categories": ["transaction_monitoring", "sanctions"],
"highlightedAlerts": 1
}
}
Exemplo
curl -X GET http://api.gu1.ai/intelligence/investigations/inv-123/alerts \
-H "Authorization: Bearer YOUR_API_KEY"
Was this page helpful?
⌘I