curl --request POST \
--url https://api.nlbs.ai/reports/{report_uuid}/paragraphs/regenerate \
--header 'Content-Type: application/json' \
--data '
{
"paragraphs": [
"enquadramento_suggestion",
"coaf_communication_draft"
]
}
'import requests
url = "https://api.nlbs.ai/reports/{report_uuid}/paragraphs/regenerate"
payload = { "paragraphs": ["enquadramento_suggestion", "coaf_communication_draft"] }
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({paragraphs: ['enquadramento_suggestion', 'coaf_communication_draft']})
};
fetch('https://api.nlbs.ai/reports/{report_uuid}/paragraphs/regenerate', 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/{report_uuid}/paragraphs/regenerate",
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([
'paragraphs' => [
'enquadramento_suggestion',
'coaf_communication_draft'
]
]),
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/{report_uuid}/paragraphs/regenerate"
payload := strings.NewReader("{\n \"paragraphs\": [\n \"enquadramento_suggestion\",\n \"coaf_communication_draft\"\n ]\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/{report_uuid}/paragraphs/regenerate")
.header("Content-Type", "application/json")
.body("{\n \"paragraphs\": [\n \"enquadramento_suggestion\",\n \"coaf_communication_draft\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/reports/{report_uuid}/paragraphs/regenerate")
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 \"paragraphs\": [\n \"enquadramento_suggestion\",\n \"coaf_communication_draft\"\n ]\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."
}Regenerar parágrafos do relatório produzidos por agente
Reexecuta de forma síncrona a etapa de agente que produziu parágrafos específicos de um relatório já gerado, sem reexecutar o workflow inteiro, e retorna o relatório atualizado completo. Apenas parágrafos produzidos por agente são regeneráveis (hoje: ‘enquadramento_suggestion’, ‘legal_basis’, ‘coaf_communication_draft’); seções determinísticas são rejeitadas. Validação é tudo-ou-nada: qualquer parágrafo inválido rejeita a requisição e nada é regenerado. Apenas os parágrafos solicitados são substituídos no resultado persistido; as demais seções e os artefatos XML/PDF gerados são mantidos como produzidos originalmente.
curl --request POST \
--url https://api.nlbs.ai/reports/{report_uuid}/paragraphs/regenerate \
--header 'Content-Type: application/json' \
--data '
{
"paragraphs": [
"enquadramento_suggestion",
"coaf_communication_draft"
]
}
'import requests
url = "https://api.nlbs.ai/reports/{report_uuid}/paragraphs/regenerate"
payload = { "paragraphs": ["enquadramento_suggestion", "coaf_communication_draft"] }
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({paragraphs: ['enquadramento_suggestion', 'coaf_communication_draft']})
};
fetch('https://api.nlbs.ai/reports/{report_uuid}/paragraphs/regenerate', 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/{report_uuid}/paragraphs/regenerate",
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([
'paragraphs' => [
'enquadramento_suggestion',
'coaf_communication_draft'
]
]),
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/{report_uuid}/paragraphs/regenerate"
payload := strings.NewReader("{\n \"paragraphs\": [\n \"enquadramento_suggestion\",\n \"coaf_communication_draft\"\n ]\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/{report_uuid}/paragraphs/regenerate")
.header("Content-Type", "application/json")
.body("{\n \"paragraphs\": [\n \"enquadramento_suggestion\",\n \"coaf_communication_draft\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/reports/{report_uuid}/paragraphs/regenerate")
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 \"paragraphs\": [\n \"enquadramento_suggestion\",\n \"coaf_communication_draft\"\n ]\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."
}Path Parameters
UUID de execução do relatório.
Body
Identificadores dos parágrafos produzidos por agente a regenerar — chaves das seções do resultado do relatório (ex.: 'enquadramento_suggestion', 'legal_basis', 'coaf_communication_draft'). Seções determinísticas não são regeneráveis.
1Response
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.

