curl --request POST \
--url https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/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 => "https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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 := "https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze"
req, _ := http.NewRequest("POST", 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.post("https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyIniciar Análise de Risco
Inicia uma análise de risco para um contrato específico.
A análise é processada de forma assíncrona e pode levar alguns minutos para ser concluída. Use o endpoint GET para verificar o status e obter os resultados da análise.
curl --request POST \
--url https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/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 => "https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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 := "https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze"
req, _ := http.NewRequest("POST", 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.post("https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verifica.ia.br/risk-analysis/contracts/{contractId}/analyze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyAuthorizations
Token JWT obtido através do endpoint /auth/login.
Inclua o token no header: Authorization: Bearer SEU_TOKEN_JWT
Path Parameters
ID do contrato a ser analisado
Response
Análise iniciada com sucesso
ID único da análise
ID do contrato analisado
ID do usuário proprietário
Nível de risco
LOW, MEDIUM, HIGH Score geral de risco (0-100)
0 <= x <= 100Resumo da análise
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Status da análise
pending, in_progress, completed, failed Data e hora da análise
Show child attributes
Show child attributes
Versão do modelo de IA utilizado
Contexto de aprendizado (opcional)
Data de criação
Show child attributes
Show child attributes
Data de atualização
Show child attributes
Show child attributes
Versão do documento (MongoDB)