# Company Decision Oracle — Brazil CNPJ Agent Decision

> Company Decision Oracle — Brazil CNPJ Agent Decision is a paid API for AI agents from cdo-staging.up.railway.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-13).

Takes a Brazilian CNPJ, objective, budget, and confidence threshold, then progressively consults the minimum necessary sources to return a signed, evidence-backed, machine-executable decision about the company.

## Facts

- Endpoint: POST https://cdo-staging.up.railway.app/v1/agent/decide
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/company-decision-oracle-brazil-cnpj-agent-decision-0b295df6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aYQlK3wP51tH9wHA6RaAj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability company-decision-oracle-brazil-cnpj-agent-decision-0b295df6 -d '<json body>'
```

Example prompt: Before we wire payment to this Brazilian supplier, run a full due diligence decision on CNPJ 12.345.678/0001-99 — our objective is to confirm they're active and sanction-free, budget is $0.20, and I need at least 90% confidence in the outcome.

## When to prefer this

Use this endpoint when you need an automated, signed, evidence-backed go/no-go decision on a Brazilian legal entity and want the system to stop consuming sources as soon as the confidence threshold is met — minimizing cost. Prefer it over raw data lookup endpoints when you need a machine-executable decision rather than raw company data, and when operating in an agentic workflow that requires auditability and provenance of the decision.

## Known failure modes

- CNPJ not found or unresolvable — preflight check will surface this before payment
- Insufficient source coverage to reach confidence threshold — decision returned with partial evidence and lower confidence
- Invalid CNPJ format — request rejected with validation error
- Budget exhausted before confidence threshold reached — partial decision or inconclusive result returned
- Downstream Brazilian data sources unavailable — service returns partial evidence or error

## How this service works

Brazil Company Decision — Guaranteed Agent Outcome. Give a CNPJ, your objective, budget and required confidence; we progressively consult the minimum necessary sources, stop at the decision threshold, and return a signed, evidence-backed, machine-executable decision. CNPJ only. Use the free preflight before payment to confirm resolvability and reachable coverage.

## Output

A signed, evidence-backed, machine-executable decision (e.g. GO/NO-GO) about the Brazilian company, including the confidence score achieved, the minimum sources consulted, and a traceable evidence trail supporting the decision.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "$id": "cdo.agent.decide.input",
     "type": "object",
     "required": [
      "subject"
     ],
     "properties": {
      "policy": {
       "type": "object",
       "properties": {
        "policy_id": {
         "type": "string",
         "maxLength": 120
        }
       },
       "description": "Reference an existing built-in/custom policy by id.",
       "additionalProperties": false
      },
      "subject": {
       "type": "object",
       "required": [
        "cnpj"
       ],
       "properties": {
        "cnpj": {
         "type": "string",
         "pattern": "^[0-9./\\s-]{11,20}$",
         "maxLength": 20,
         "minLength": 11,
         "description": "Brazilian CNPJ — 14 digits, with or without punctuation (e.g. 11222333000181 or 11.222.333/0001-81). CPF (11-digit personal id) is rejected by policy."
        },
        "type": {
         "type": "string",
         "maxLength": 40,
         "description": "Entity type; defaults to BRAZILIAN_COMPANY."
        }
       },
       "additionalProperties": false
      },
      "question": {
       "type": "string",
       "maxLength": 500,
       "description": "Optional free-text question for context (does not drive the decision)."
      },
      "objective": {
       "type": "string",
       "examples": [
        "SUPPLIER_ONBOARDING",
        "VENDOR_PAYMENT_APPROVAL",
        "COUNTERPARTY_RISK_ASSESSMENT",
        "MERCHANT_SCREENING"
       ],
       "maxLength": 80,
       "description": "SUPPLIER_ONBOARDING | VENDOR_PAYMENT_APPROVAL | COUNTERPARTY_RISK_ASSESSMENT | MERCHANT_SCREENING (semantic aliases accepted; unknown values fall back to a default policy family)."
      },
      "constraints": {
       "type": "object",
       "properties": {
        "max_cost_usd": {
         "type": "number",
         "minimum": 0,
         "description": "USD, must be >= 0."
        },
        "maximum_latency_ms": {
         "type": "number",
         "maximum": 600000,
         "description": "Milliseconds, must be > 0.",
         "exclusiveMinimum": 0
        },
        "minimum_confidence": {
         "type": "number",
         "maximum": 100,
         "minimum": 0,
         "description": "0–100."
        }
       },
  
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/company-decision-oracle-brazil-cnpj-agent-decision-0b295df6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cdo-staging.up.railway.app](https://www.zero.xyz/host/cdo-staging.up.railway.app/llms.txt)
