# KYB Brasil – Red Flag Risk Score

> KYB Brasil – Red Flag Risk Score is a paid API for AI agents from kyb-br-agents.marcelfons.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-12).

Returns a condensed Brazilian company risk dossier covering sanctions, federal debt, IBAMA embargoes, OFAC/UN/EU screening, economic group flags, and a 0-100 deterministic risk score for a given CNPJ.

## Facts

- Endpoint: GET https://kyb-br-agents.marcelfons.workers.dev/v1/risk?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kyb-brasil-red-flag-risk-score-5ad6953a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IR3FsunhyG49PYiG9kC2T

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 kyb-brasil-red-flag-risk-score-5ad6953a
```

Example prompt: Run a red flag risk check on Brazilian company CNPJ 00.000.000/0001-91 — I need sanctions, federal debt, IBAMA embargoes, and OFAC screening with a risk score.

## When to prefer this

Choose this endpoint when you need a fast, affordable ($0.05) red-flag-only compliance check on a Brazilian company — covering sanctions, debt, embargoes, and international watchlists — without paying for a full dossier that includes contracts, BNDES data, or gazette searches. Ideal for high-volume vendor screening, investment pre-checks, or automated compliance workflows where you need a deterministic risk score and bilingual summary quickly.

## Known failure modes

- Invalid or malformed CNPJ (14 digits required, with or without punctuation) returns a validation error
- CNPJ not found in Receita Federal returns a not-found error with partial data quality flags
- Upstream government API unavailability may cause partial results with degraded data quality scores
- Rate limiting or payment failure returns a 402 or 429 error
- Economic group lookup may return empty if no shared partners are found

## How this service works

Red flags a registry check misses, a third of the dossier price: Receita Federal status + sanctions (CEIS/CNEP/CEPIM/leniency/forced labour) + PGFN debt and fiscal regularity (Simples/MEI, CND hint) + IBAMA embargoes + court cases (DJEN, 12 months) + OFAC/UN/EU screening + economic group (companies sharing partners) + 0-100 risk score + per-section data quality. No contracts, BNDES or gazettes. Signed answer (Ed25519 attestation), verifiable at /v1/verify.

## Output

A structured JSON dossier with a deterministic 0-100 risk score, Receita Federal registration status, sanctions flags across CEIS/CNEP/CEPIM/leniency/forced labour lists, PGFN federal debt and fiscal regularity indicators (Simples/MEI/CND hint), IBAMA embargo flags, OFAC/UN/EU name screening results, related companies in the economic group with their individual flags, per-section data quality indicators, and a bilingual (English and Portuguese) summary.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "cnpj"
     ],
     "properties": {
      "cnpj": {
       "type": "string",
       "description": "Brazilian CNPJ, 14 characters, with or without punctuation (e.g. 00.000.000/0001-91)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kyb-brasil-red-flag-risk-score-5ad6953a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kyb-br-agents.marcelfons.workers.dev](https://www.zero.xyz/host/kyb-br-agents.marcelfons.workers.dev/llms.txt)
