curl --request POST \
--url https://api.nlbs.ai/reports \
--header 'Content-Type: application/json' \
--data '
{
"analysis_uuid": "018ffd38-6d94-7c0c-a6dd-2d9690a118f8",
"institution_type": "banco",
"source": "frontend"
}
'import requests
url = "https://api.nlbs.ai/reports"
payload = {
"analysis_uuid": "018ffd38-6d94-7c0c-a6dd-2d9690a118f8",
"institution_type": "banco",
"source": "frontend"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
analysis_uuid: '018ffd38-6d94-7c0c-a6dd-2d9690a118f8',
institution_type: 'banco',
source: 'frontend'
})
};
fetch('https://api.nlbs.ai/reports', 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.nlbs.ai/reports",
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([
'analysis_uuid' => '018ffd38-6d94-7c0c-a6dd-2d9690a118f8',
'institution_type' => 'banco',
'source' => 'frontend'
]),
CURLOPT_HTTPHEADER => [
"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 := "https://api.nlbs.ai/reports"
payload := strings.NewReader("{\n \"analysis_uuid\": \"018ffd38-6d94-7c0c-a6dd-2d9690a118f8\",\n \"institution_type\": \"banco\",\n \"source\": \"frontend\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("https://api.nlbs.ai/reports")
.header("Content-Type", "application/json")
.body("{\n \"analysis_uuid\": \"018ffd38-6d94-7c0c-a6dd-2d9690a118f8\",\n \"institution_type\": \"banco\",\n \"source\": \"frontend\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"analysis_uuid\": \"018ffd38-6d94-7c0c-a6dd-2d9690a118f8\",\n \"institution_type\": \"banco\",\n \"source\": \"frontend\"\n}"
response = http.request(request)
puts response.read_body{
"analysis_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"institution_type": "banco",
"result": {
"audit_trail": "<string>",
"consolidated_risk_signals": "<string>",
"counterparty_identification": "<string>",
"institution_type": "banco",
"ownership_and_ubo": "<string>",
"regime": "BCB",
"source_analysis_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versions": {
"regulatory_catalog_version": "<string>",
"report_workflow_version": "<string>",
"narrative_prompt_version": "<string>",
"source_analysis_workflow_version": "<string>"
},
"coaf_communication_draft": "<string>",
"coaf_xml": {
"available": true,
"format": "susep_cos",
"regime": "BCB",
"byte_size": 1,
"content_type": "application/xml",
"filename": "<string>",
"limitations": [
{
"code": "<string>",
"message": "<string>",
"details": {},
"entity_id": 1
}
]
},
"enquadramento_suggestion": "<string>",
"legal_basis": "<string>",
"limitations": [
{
"code": "<string>",
"message": "<string>",
"details": {},
"entity_id": 1
}
],
"pdf": {
"available": true,
"byte_size": 1,
"content_type": "application/pdf",
"filename": "<string>",
"limitations": [
{
"code": "<string>",
"message": "<string>",
"details": {},
"entity_id": 1
}
]
}
},
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}Criar relatório regulatório
Roda o workflow de relatório regulatório de forma síncrona a partir de uma análise concluída e retorna o relatório completo. Por norma COAF, a análise-fonte precisa ter sido criada nas últimas 24 horas.
curl --request POST \
--url https://api.nlbs.ai/reports \
--header 'Content-Type: application/json' \
--data '
{
"analysis_uuid": "018ffd38-6d94-7c0c-a6dd-2d9690a118f8",
"institution_type": "banco",
"source": "frontend"
}
'import requests
url = "https://api.nlbs.ai/reports"
payload = {
"analysis_uuid": "018ffd38-6d94-7c0c-a6dd-2d9690a118f8",
"institution_type": "banco",
"source": "frontend"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
analysis_uuid: '018ffd38-6d94-7c0c-a6dd-2d9690a118f8',
institution_type: 'banco',
source: 'frontend'
})
};
fetch('https://api.nlbs.ai/reports', 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.nlbs.ai/reports",
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([
'analysis_uuid' => '018ffd38-6d94-7c0c-a6dd-2d9690a118f8',
'institution_type' => 'banco',
'source' => 'frontend'
]),
CURLOPT_HTTPHEADER => [
"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 := "https://api.nlbs.ai/reports"
payload := strings.NewReader("{\n \"analysis_uuid\": \"018ffd38-6d94-7c0c-a6dd-2d9690a118f8\",\n \"institution_type\": \"banco\",\n \"source\": \"frontend\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("https://api.nlbs.ai/reports")
.header("Content-Type", "application/json")
.body("{\n \"analysis_uuid\": \"018ffd38-6d94-7c0c-a6dd-2d9690a118f8\",\n \"institution_type\": \"banco\",\n \"source\": \"frontend\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"analysis_uuid\": \"018ffd38-6d94-7c0c-a6dd-2d9690a118f8\",\n \"institution_type\": \"banco\",\n \"source\": \"frontend\"\n}"
response = http.request(request)
puts response.read_body{
"analysis_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"institution_type": "banco",
"result": {
"audit_trail": "<string>",
"consolidated_risk_signals": "<string>",
"counterparty_identification": "<string>",
"institution_type": "banco",
"ownership_and_ubo": "<string>",
"regime": "BCB",
"source_analysis_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versions": {
"regulatory_catalog_version": "<string>",
"report_workflow_version": "<string>",
"narrative_prompt_version": "<string>",
"source_analysis_workflow_version": "<string>"
},
"coaf_communication_draft": "<string>",
"coaf_xml": {
"available": true,
"format": "susep_cos",
"regime": "BCB",
"byte_size": 1,
"content_type": "application/xml",
"filename": "<string>",
"limitations": [
{
"code": "<string>",
"message": "<string>",
"details": {},
"entity_id": 1
}
]
},
"enquadramento_suggestion": "<string>",
"legal_basis": "<string>",
"limitations": [
{
"code": "<string>",
"message": "<string>",
"details": {},
"entity_id": 1
}
],
"pdf": {
"available": true,
"byte_size": 1,
"content_type": "application/pdf",
"filename": "<string>",
"limitations": [
{
"code": "<string>",
"message": "<string>",
"details": {},
"entity_id": 1
}
]
}
},
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}Body
UUID da análise-fonte para gerar o relatório.
Tipo de instituição, seleciona a norma setorial (banco=BCB, seguradora=SUSEP).
banco, seguradora Dados opcionais da comunicação COAF/COS que a análise não carrega (instituição comunicante, valores da operação, código de ocorrência, envolvidos, operações relacionadas). Quando informado, o XML gerado é completo; caso contrário, é produzido de forma parcial a partir dos dados da análise.
Show child attributes
Show child attributes
Identificador livre da origem da chamada, opcional.
128"frontend"
Response
Successful Response
UUID da análise-fonte.
Tipo de instituição usado.
banco, seguradora Resultado completo do relatório montado.
Show child attributes
Show child attributes
UUID de execução do relatório.

