Executar enriquecimento marketplace sem entidade
curl --request POST \
--url http://api.gu1.ai/integration-execution/execute-without-entity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"integrationCode": "<string>",
"country": "<string>",
"type": "<string>",
"taxId": "<string>",
"name": "<string>",
"parameters": {}
}
'import requests
url = "http://api.gu1.ai/integration-execution/execute-without-entity"
payload = {
"integrationCode": "<string>",
"country": "<string>",
"type": "<string>",
"taxId": "<string>",
"name": "<string>",
"parameters": {}
}
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({
integrationCode: '<string>',
country: '<string>',
type: '<string>',
taxId: '<string>',
name: '<string>',
parameters: {}
})
};
fetch('http://api.gu1.ai/integration-execution/execute-without-entity', 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 => "http://api.gu1.ai/integration-execution/execute-without-entity",
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([
'integrationCode' => '<string>',
'country' => '<string>',
'type' => '<string>',
'taxId' => '<string>',
'name' => '<string>',
'parameters' => [
]
]),
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://api.gu1.ai/integration-execution/execute-without-entity"
payload := strings.NewReader("{\n \"integrationCode\": \"<string>\",\n \"country\": \"<string>\",\n \"type\": \"<string>\",\n \"taxId\": \"<string>\",\n \"name\": \"<string>\",\n \"parameters\": {}\n}")
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://api.gu1.ai/integration-execution/execute-without-entity")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"integrationCode\": \"<string>\",\n \"country\": \"<string>\",\n \"type\": \"<string>\",\n \"taxId\": \"<string>\",\n \"name\": \"<string>\",\n \"parameters\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/integration-execution/execute-without-entity")
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 = "{\n \"integrationCode\": \"<string>\",\n \"country\": \"<string>\",\n \"type\": \"<string>\",\n \"taxId\": \"<string>\",\n \"name\": \"<string>\",\n \"parameters\": {}\n}"
response = http.request(request)
puts response.read_body{
"result": {}
}Referência API
Executar enriquecimento marketplace sem entidade
Rodar um enriquecimento a partir de taxId e/ou nome sem persistir entidade; modo opcional só cache. Consulte o esquema do request, códigos de resposta.
POST
/
integration-execution
/
execute-without-entity
Executar enriquecimento marketplace sem entidade
curl --request POST \
--url http://api.gu1.ai/integration-execution/execute-without-entity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"integrationCode": "<string>",
"country": "<string>",
"type": "<string>",
"taxId": "<string>",
"name": "<string>",
"parameters": {}
}
'import requests
url = "http://api.gu1.ai/integration-execution/execute-without-entity"
payload = {
"integrationCode": "<string>",
"country": "<string>",
"type": "<string>",
"taxId": "<string>",
"name": "<string>",
"parameters": {}
}
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({
integrationCode: '<string>',
country: '<string>',
type: '<string>',
taxId: '<string>',
name: '<string>',
parameters: {}
})
};
fetch('http://api.gu1.ai/integration-execution/execute-without-entity', 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 => "http://api.gu1.ai/integration-execution/execute-without-entity",
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([
'integrationCode' => '<string>',
'country' => '<string>',
'type' => '<string>',
'taxId' => '<string>',
'name' => '<string>',
'parameters' => [
]
]),
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://api.gu1.ai/integration-execution/execute-without-entity"
payload := strings.NewReader("{\n \"integrationCode\": \"<string>\",\n \"country\": \"<string>\",\n \"type\": \"<string>\",\n \"taxId\": \"<string>\",\n \"name\": \"<string>\",\n \"parameters\": {}\n}")
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://api.gu1.ai/integration-execution/execute-without-entity")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"integrationCode\": \"<string>\",\n \"country\": \"<string>\",\n \"type\": \"<string>\",\n \"taxId\": \"<string>\",\n \"name\": \"<string>\",\n \"parameters\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://api.gu1.ai/integration-execution/execute-without-entity")
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 = "{\n \"integrationCode\": \"<string>\",\n \"country\": \"<string>\",\n \"type\": \"<string>\",\n \"taxId\": \"<string>\",\n \"name\": \"<string>\",\n \"parameters\": {}\n}"
response = http.request(request)
puts response.read_body{
"result": {}
}Rota sob
Exige permissão para executar enriquecimentos (mesma família que
/integration-execution. Usa os mesmos códigos de integração do Marketplace (veja Códigos de provedores).Exige permissão para executar enriquecimentos (mesma família que
POST /integration-execution/marketplace/enrichment).Execuções headless não criam nem atualizam
entities, normalized_enrichment nem auditoria vinculada a entidade. Apenas gravam auditoria append-only (headless_enrichment_execution_audit) e, quando aplicável, cache (headless_enrichment_cache) em sucessos.Visão geral
Use para rodar um enriquecimento com taxId e/ou nome, país e tipo (person / company) sem cadastrar antes uma pessoa ou empresa na Gu1.
Endpoints relacionados (somente leitura): Listar execuções headless e Detalhe por id.
URL
POST https://api.gu1.ai/integration-execution/execute-without-entity
Query
boolean
default:"false"
Se
true ou 1, retorna apenas payload em cache de sucesso anterior (mesma org, integração, país, tipo, tax/nome, hash de parâmetros). Sem chamada ao provedor nem tokens. Sem cache → 404 (CACHE_MISS).Corpo (JSON)
string
required
Código de integração do Marketplace.
string
required
País ISO-3166-1 alpha-2.
string
required
person ou company.string
Opcional. Exige pelo menos
taxId ou name.string
Opcional.
object
Opcional; padrão
{}.Resposta 200 (enriquecimento com sucesso)
QuandoenrichmentSuccess é true, o corpo inclui entre outros:
object
Objeto com
raw e mapped: cada um é um objeto indexado pelo código de integração (mesma família que enriquecimentos marketplace em entidade).success, cached, integrationCode, country, type, enrichmentSuccess, errors, totalCostCents, executionTimeMs, probeEntityId, billing (na resposta HTTP só tokensSpent e balanceRemainingCents; o custo em centavos do intento está em totalCostCents e na auditoria, não dentro de billing).
Erros comuns
400 sem provedor para o contexto; 422 falha do provedor ou normalização; 403 integração desabilitada; 404CACHE_MISS com cached=true; 402 saldo insuficiente.
Exemplo
curl -sS -X POST 'https://api.gu1.ai/integration-execution/execute-without-entity' \
-H "Authorization: Bearer SUA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"integrationCode": "br_bdc_basic_data_enrichment",
"country": "BR",
"type": "person",
"taxId": "12345678909",
"parameters": {}
}'
Was this page helpful?