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 http://localhost:3000/v2/workflows/runs/{id}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "http://localhost:3000/v2/workflows/runs/{id}/export"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:3000/v2/workflows/runs/{id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v2/workflows/runs/{id}/export",
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([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "http://localhost:3000/v2/workflows/runs/{id}/export"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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("http://localhost:3000/v2/workflows/runs/{id}/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v2/workflows/runs/{id}/export")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"fileUpload": {
"object": "page",
"id": "p_abc123",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:45:00.000Z",
"status": "uploaded",
"filename": "report.pdf",
"content_type": "application/pdf",
"size_bytes": 1048576,
"metadata": {
"page_count": 12
},
"uploaded_time": "2024-11-14T10:31:23.456Z",
"expires_at": "2024-11-14T11:30:00.000Z",
"public": false,
"classification": {
"status": "completed",
"started_at": "2024-12-07T11:01:00.000Z",
"completed_at": "2024-12-07T11:02:30.000Z",
"error": "Unsupported file type for parsing: arquivo.exe",
"document_type": "balance_sheet",
"confidence": 0.98
},
"parse": {
"status": "completed",
"started_at": "2024-12-07T11:01:00.000Z",
"completed_at": "2024-12-07T11:02:30.000Z",
"error": "Unsupported file type for parsing: arquivo.exe",
"jobId": "<string>"
},
"index": {
"status": "completed",
"started_at": "2024-12-07T11:01:00.000Z",
"completed_at": "2024-12-07T11:02:30.000Z",
"error": "Unsupported file type for parsing: arquivo.exe"
},
"insights": {
"status": "completed",
"started_at": "2024-12-07T11:01:00.000Z",
"completed_at": "2024-12-07T11:02:30.000Z",
"error": "Unsupported file type for parsing: arquivo.exe",
"facts": [
{
"id": "<string>",
"entity_indexes": [
123
],
"statement": "<string>",
"references": [
{
"page_number": 123
}
],
"method": "verbatim",
"confidence": 123,
"source_id": "<string>",
"entities": [
{
"type": "company",
"name": "<string>",
"document": "<string>"
}
]
}
],
"claims": [
{
"id": "cl_abc123",
"statement": "Company revenue increased 15% YoY",
"confidence": 0.92,
"supporting_facts": [
"f_xyz789"
],
"category": "financial"
}
],
"issues": [
{
"id": "iss_abc123",
"type": "missing_data",
"description": "Required field \"date\" is missing",
"severity": "warning",
"fact_id": "f_xyz789"
}
],
"checks": [
{
"id": "chk_abc123",
"name": "total_assets_validation",
"passed": true,
"message": "Total assets matches sum of components",
"severity": "info"
}
]
},
"createdBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"updatedBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"reused": false,
"upload_url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
"upload_headers": {},
"url": "https://files.base39.cloud/uploads/org_abc/fl_abc123/report.pdf",
"preview_url": "https://files.base39.cloud/uploads/org_abc/fl_abc123/preview/page-01.png",
"download_url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
"page_id": "page_abc123",
"purpose": "agent",
"public_url": "https://files.base39.com.br/uploads/org_abc/fl_abc123/report.pdf",
"resources": [
{}
]
},
"runUpdatedAt": "2026-06-14T03:12:45.123Z"
}curl --request POST \
--url http://localhost:3000/v2/workflows/runs/{id}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "http://localhost:3000/v2/workflows/runs/{id}/export"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:3000/v2/workflows/runs/{id}/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v2/workflows/runs/{id}/export",
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([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "http://localhost:3000/v2/workflows/runs/{id}/export"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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("http://localhost:3000/v2/workflows/runs/{id}/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v2/workflows/runs/{id}/export")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"fileUpload": {
"object": "page",
"id": "p_abc123",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:45:00.000Z",
"status": "uploaded",
"filename": "report.pdf",
"content_type": "application/pdf",
"size_bytes": 1048576,
"metadata": {
"page_count": 12
},
"uploaded_time": "2024-11-14T10:31:23.456Z",
"expires_at": "2024-11-14T11:30:00.000Z",
"public": false,
"classification": {
"status": "completed",
"started_at": "2024-12-07T11:01:00.000Z",
"completed_at": "2024-12-07T11:02:30.000Z",
"error": "Unsupported file type for parsing: arquivo.exe",
"document_type": "balance_sheet",
"confidence": 0.98
},
"parse": {
"status": "completed",
"started_at": "2024-12-07T11:01:00.000Z",
"completed_at": "2024-12-07T11:02:30.000Z",
"error": "Unsupported file type for parsing: arquivo.exe",
"jobId": "<string>"
},
"index": {
"status": "completed",
"started_at": "2024-12-07T11:01:00.000Z",
"completed_at": "2024-12-07T11:02:30.000Z",
"error": "Unsupported file type for parsing: arquivo.exe"
},
"insights": {
"status": "completed",
"started_at": "2024-12-07T11:01:00.000Z",
"completed_at": "2024-12-07T11:02:30.000Z",
"error": "Unsupported file type for parsing: arquivo.exe",
"facts": [
{
"id": "<string>",
"entity_indexes": [
123
],
"statement": "<string>",
"references": [
{
"page_number": 123
}
],
"method": "verbatim",
"confidence": 123,
"source_id": "<string>",
"entities": [
{
"type": "company",
"name": "<string>",
"document": "<string>"
}
]
}
],
"claims": [
{
"id": "cl_abc123",
"statement": "Company revenue increased 15% YoY",
"confidence": 0.92,
"supporting_facts": [
"f_xyz789"
],
"category": "financial"
}
],
"issues": [
{
"id": "iss_abc123",
"type": "missing_data",
"description": "Required field \"date\" is missing",
"severity": "warning",
"fact_id": "f_xyz789"
}
],
"checks": [
{
"id": "chk_abc123",
"name": "total_assets_validation",
"passed": true,
"message": "Total assets matches sum of components",
"severity": "info"
}
]
},
"createdBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"updatedBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"reused": false,
"upload_url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
"upload_headers": {},
"url": "https://files.base39.cloud/uploads/org_abc/fl_abc123/report.pdf",
"preview_url": "https://files.base39.cloud/uploads/org_abc/fl_abc123/preview/page-01.png",
"download_url": "https://s3.amazonaws.com/bucket/key?X-Amz-Signature=...",
"page_id": "page_abc123",
"purpose": "agent",
"public_url": "https://files.base39.com.br/uploads/org_abc/fl_abc123/report.pdf",
"resources": [
{}
]
},
"runUpdatedAt": "2026-06-14T03:12:45.123Z"
}OAuth2 Authorization Code flow
Workflow run ID
Optional channel that receives the generated PDF file after export.
whatsapp, email