{"openapi":"3.1.0","info":{"title":"BR Intelligence","version":"1.4.2","description":"Pay-per-call Brazilian business intelligence for AI agents, paid via x402 in USDC on Base.","contact":{"name":"BR Intelligence","email":"norimjr@gmail.com","url":"https://br-intelligence.brverify-api.workers.dev"}},"servers":[{"url":"https://br-intelligence.brverify-api.workers.dev"}],"paths":{"/v1/validate":{"get":{"operationId":"validateIdentifier","summary":"Validate a Brazilian identifier (CPF, CNPJ, EAN-13, NF-e key, phone). Price: $0.005.","parameters":[{"name":"type","in":"query","required":true,"schema":{"type":"string","enum":["cpf","cnpj","ean13","nfe","phone"]}},{"name":"value","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Validation result.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/company":{"get":{"operationId":"getCompany","summary":"Company registration data by CNPJ. Price: $0.01.","parameters":[{"name":"cnpj","in":"query","required":true,"description":"Brazilian CNPJ (14 positions), with or without formatting. Accepts the alphanumeric CNPJ format (IN RFB 2.229/2024, issued from July 2026).","schema":{"type":"string","example":"19131243000197"}}],"responses":{"200":{"description":"Structured company data.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/score":{"get":{"operationId":"getCompanyScore","summary":"Explainable company health/risk score 0-100 (KYB triage). Price: $0.02.","parameters":[{"name":"cnpj","in":"query","required":true,"description":"Brazilian CNPJ (14 positions), with or without formatting. Accepts the alphanumeric CNPJ format (IN RFB 2.229/2024, issued from July 2026).","schema":{"type":"string","example":"19131243000197"}}],"responses":{"200":{"description":"Score, rating, factors and flags.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/dossier":{"get":{"operationId":"getCompanyDossier","summary":"Full dossier: company data, signals and health score. Price: $0.10.","parameters":[{"name":"cnpj","in":"query","required":true,"description":"Brazilian CNPJ (14 positions), with or without formatting. Accepts the alphanumeric CNPJ format (IN RFB 2.229/2024, issued from July 2026).","schema":{"type":"string","example":"19131243000197"}}],"responses":{"200":{"description":"Company dossier.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/batch":{"get":{"operationId":"batchCompanyScore","summary":"Health/risk score for up to 10 CNPJs in one call. Price: $0.015 per valid CNPJ.","parameters":[{"name":"cnpjs","in":"query","required":true,"description":"Comma-separated CNPJs (numeric or alphanumeric). Invalid-format entries are returned in 'invalid' and not billed.","schema":{"type":"string","example":"11222333000181,19131243000197"}}],"responses":{"200":{"description":"Per-item results with score, rating and flags.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/boleto":{"get":{"operationId":"decodeBoleto","summary":"Validate and decode a Brazilian boleto (digitable line or barcode). Price: $0.005.","parameters":[{"name":"code","in":"query","required":true,"description":"Digitable line (47 cobranca / 48 arrecadacao) or barcode (44), with or without punctuation.","schema":{"type":"string","example":"00190500954014481606906809350314337370000000100"}}],"responses":{"200":{"description":"Decoded boleto with validity, bank, amount and due date.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/pix":{"get":{"operationId":"decodePix","summary":"Validate and decode a PIX copia-e-cola (BR Code) payload. Price: $0.005.","parameters":[{"name":"payload","in":"query","required":true,"description":"PIX BR Code payload (URL-encoded).","schema":{"type":"string"}}],"responses":{"200":{"description":"Decoded PIX payload with CRC check, key, merchant, amount and txid.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/cep":{"get":{"operationId":"lookupCep","summary":"Brazilian address by CEP. Price: $0.003.","parameters":[{"name":"cep","in":"query","required":true,"schema":{"type":"string","example":"38400100"}}],"responses":{"200":{"description":"Address, IBGE codes and coordinates.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/bank":{"get":{"operationId":"lookupBank","summary":"Brazilian bank by COMPE code or ISPB. Price: $0.002.","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","example":"260"}},{"name":"ispb","in":"query","required":false,"schema":{"type":"string","example":"18236120"}}],"responses":{"200":{"description":"Bank code, ISPB, short and full name.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/business-days":{"get":{"operationId":"businessDays","summary":"Business-day check, add N business days, or count business days (national holidays). Price: $0.003.","parameters":[{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","example":"2026-10-09"}},{"name":"add","in":"query","required":false,"schema":{"type":"integer","example":1}},{"name":"end","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Business-day result.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}},"/v1/rates":{"get":{"operationId":"getRates","summary":"Selic target, CDI, IPCA and USD/BRL from the Central Bank (SGS). Price: $0.005.","parameters":[],"responses":{"200":{"description":"Indicators, each with value, unit and reference date.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Missing or invalid parameters."},"402":{"description":"Payment required (x402). See the PAYMENT-REQUIRED response header for price, network (Base, eip155:8453), asset (USDC) and payTo."},"404":{"description":"Company not found."},"503":{"description":"Upstream registry unavailable. No data is fabricated."}}}}},"x-payment":{"protocol":"x402","network":"eip155:8453","asset":"USDC","manifest":"https://br-intelligence.brverify-api.workers.dev/.well-known/x402"}}