Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.base39.com.br/v2/reports/{id}/run \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.base39.com.br/v2/reports/{id}/run"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.base39.com.br/v2/reports/{id}/run', 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.base39.com.br/v2/reports/{id}/run",
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.base39.com.br/v2/reports/{id}/run"
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.base39.com.br/v2/reports/{id}/run")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.base39.com.br/v2/reports/{id}/run")
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_body{
"id": "rep_xyz789",
"target": "tgt_company123",
"template": "tpl_abc123def456",
"status": "processing",
"runs": [
{
"thread": "thread_001",
"run": "run_001",
"createdAt": "2025-01-15T10:35:00Z"
}
],
"sections": [
{
"id": "sec_abc123",
"title": "Resumo Executivo",
"status": "done",
"order": 1,
"content": "Este relatório apresenta uma análise completa da empresa. Foram identificados 3 pontos principais de atenção..."
},
{
"id": "sec_def456",
"title": "Análise Detalhada",
"status": "processing",
"order": 2,
"content": null
},
{
"id": "sec_ghi789",
"title": "Conclusão",
"status": "queued",
"order": 3,
"content": null
}
],
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:35:22Z"
}Inicia a execução/pesquisa de um relatório
curl --request POST \
--url https://api.base39.com.br/v2/reports/{id}/run \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.base39.com.br/v2/reports/{id}/run"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.base39.com.br/v2/reports/{id}/run', 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.base39.com.br/v2/reports/{id}/run",
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.base39.com.br/v2/reports/{id}/run"
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.base39.com.br/v2/reports/{id}/run")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.base39.com.br/v2/reports/{id}/run")
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_body{
"id": "rep_xyz789",
"target": "tgt_company123",
"template": "tpl_abc123def456",
"status": "processing",
"runs": [
{
"thread": "thread_001",
"run": "run_001",
"createdAt": "2025-01-15T10:35:00Z"
}
],
"sections": [
{
"id": "sec_abc123",
"title": "Resumo Executivo",
"status": "done",
"order": 1,
"content": "Este relatório apresenta uma análise completa da empresa. Foram identificados 3 pontos principais de atenção..."
},
{
"id": "sec_def456",
"title": "Análise Detalhada",
"status": "processing",
"order": 2,
"content": null
},
{
"id": "sec_ghi789",
"title": "Conclusão",
"status": "queued",
"order": 3,
"content": null
}
],
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-01-15T10:35:22Z"
}The access token received from the authorization server in the OAuth 2.0 flow.
ID do relatório
Execução do relatório iniciada
pending, processing, completed, error Show child attributes
Seções do relatório com conteúdo estruturado
Show child attributes
[
{
"id": "sec_abc123",
"title": "Resumo Executivo",
"status": "done",
"order": 1,
"content": "Este relatório apresenta uma análise completa..."
},
{
"id": "sec_def456",
"title": "Análise Detalhada",
"status": "processing",
"order": 2,
"content": null
}
]