Skip to main content
POST
/
reports
/
{id}
/
run
cURL
curl --request POST \
  --url https://api.base39.com.br/v2/reports/{id}/run \
  --header 'Authorization: Bearer <token>'
{
  "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"
}

Documentation Index

Fetch the complete documentation index at: https://docs.base39.com.br/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

ID do relatório

Response

200 - application/json

Execução do relatório iniciada

id
string
target
string
template
string
status
enum<string>
Available options:
pending,
processing,
completed,
error
runs
object[]
sections
object[]

Seções do relatório com conteúdo estruturado

Example:
[
{
"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
}
]
createdAt
string<date-time>
updatedAt
string<date-time>