Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request GET \
--url http://localhost:3000/v2/companies/{document}/queries/{datasetSlug} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}', 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/companies/{document}/queries/{datasetSlug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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 := "http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}"
req, _ := http.NewRequest("GET", 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.get("http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"results": [
{
"object": "query",
"status": "success",
"dataset": {
"object": "dataset",
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"cost": 123,
"upstreams": [
{
"object": "page",
"id": "p_abc123",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:45:00.000Z",
"name": "Federal Revenue",
"description": "<string>",
"logo": "<string>",
"slug": "federal-revenue",
"country": "BR",
"type": "<string>",
"url": "<string>",
"createdBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"updatedBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"featured": true
}
]
},
"asOfDate": "2025-11-21",
"createdAt": "2025-11-21T19:00:00.000Z",
"isMock": false,
"cacheStatus": "hit",
"results": [
{}
],
"rawParams": {},
"id": "qry_abc123",
"provider": {
"object": "provider",
"id": "<string>",
"slug": "<string>",
"name": "<string>"
},
"createdBy": {
"object": "user",
"id": "usr_abc123",
"apiKeyId": "bsk_abc123"
},
"requestId": "<string>",
"summary": "<string>",
"attempts": 123,
"duration": 123,
"errorMessage": "<string>",
"cost": 123,
"affectedCanonicalTargets": [
{
"type": "domain",
"domain": "serasa",
"certificate": "fgts",
"sanction": "ceis",
"endpoint": "entitiesGetScr"
}
],
"rawResponseProvider": [
{}
],
"parent": {
"type": "dataset_query_id",
"dataset_query_id": "qry_parent123",
"company_id": "cmp_123",
"person_id": "12345678909"
},
"export": {
"type": "file_upload_id",
"file_upload_id": "fl_abc123",
"downloadUrl": "https://files.base39.cloud/uploads/org/fl/report.pdf"
}
}
],
"has_more": true,
"next_cursor": "<string>",
"type": "<string>"
}curl --request GET \
--url http://localhost:3000/v2/companies/{document}/queries/{datasetSlug} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}', 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/companies/{document}/queries/{datasetSlug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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 := "http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}"
req, _ := http.NewRequest("GET", 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.get("http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v2/companies/{document}/queries/{datasetSlug}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"results": [
{
"object": "query",
"status": "success",
"dataset": {
"object": "dataset",
"id": "<string>",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"cost": 123,
"upstreams": [
{
"object": "page",
"id": "p_abc123",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:45:00.000Z",
"name": "Federal Revenue",
"description": "<string>",
"logo": "<string>",
"slug": "federal-revenue",
"country": "BR",
"type": "<string>",
"url": "<string>",
"createdBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"updatedBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"featured": true
}
]
},
"asOfDate": "2025-11-21",
"createdAt": "2025-11-21T19:00:00.000Z",
"isMock": false,
"cacheStatus": "hit",
"results": [
{}
],
"rawParams": {},
"id": "qry_abc123",
"provider": {
"object": "provider",
"id": "<string>",
"slug": "<string>",
"name": "<string>"
},
"createdBy": {
"object": "user",
"id": "usr_abc123",
"apiKeyId": "bsk_abc123"
},
"requestId": "<string>",
"summary": "<string>",
"attempts": 123,
"duration": 123,
"errorMessage": "<string>",
"cost": 123,
"affectedCanonicalTargets": [
{
"type": "domain",
"domain": "serasa",
"certificate": "fgts",
"sanction": "ceis",
"endpoint": "entitiesGetScr"
}
],
"rawResponseProvider": [
{}
],
"parent": {
"type": "dataset_query_id",
"dataset_query_id": "qry_parent123",
"company_id": "cmp_123",
"person_id": "12345678909"
},
"export": {
"type": "file_upload_id",
"file_upload_id": "fl_abc123",
"downloadUrl": "https://files.base39.cloud/uploads/org/fl/report.pdf"
}
}
],
"has_more": true,
"next_cursor": "<string>",
"type": "<string>"
}OAuth2 Authorization Code flow
Company document (CNPJ)
Dataset slug (e.g., rfb-info, serasa-crednet)
Comma-separated fields to expand. Supports selection with brackets (e.g., "createdBy,updatedBy" or "targets.company[icon,tradeName]").
"createdBy"
Number of items to return per page
1 <= x <= 100100
Opaque cursor for pagination. Use the next_cursor from previous response.
"eyJjcmVhdGVkX3RpbWUiOiIyMDI0LTExLTE1VDEwOjAwOjAwLjAwMFoiLCJpZCI6InBhZ2VfYWJjMTIzIn0="
Data de referência (YYYY-MM-DD). Restringe a consultas com createdAt até o fim desse dia.
"2026-04-02"