Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Toolrail Br API
version: 1.0.0
description: 'Pay-per-call utility API for AI agents: PDF generation, global holidays/business days, EU VAT, ECB FX rates, IBAN/phone validation, QR codes, Chilean operational data. x402/USDC on Base & Solana.'
contact:
name: Toolrail support
email: roberto.mena.rodriguez@gmail.com
servers:
- url: https://toolrail.dev
tags:
- name: Br
paths:
/br/indices:
get:
operationId: get_br_indices
summary: 'Brazil''s key official rates in one call: SELIC target, annualized CDI, monthly…'
description: 'Brazil''s key official rates in one call: SELIC target, annualized CDI, monthly IPCA inflation and PTAX dollar — straight from Banco Central do Brasil''s SGS API. Use when you need Brazil''s interest rate (SELIC/CDI), inflation (IPCA) or official dollar (PTAX). Price: $0.005 per call, paid in USDC via x402 (HTTP 402 flow).'
x-price-usd: $0.005
x-payment-protocol: x402
x-example: curl "https://toolrail.dev/br/indices"
responses:
'200':
description: Resource returned after settled payment
content:
application/json:
schema:
type: object
'400':
description: Invalid request
'402':
description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
headers:
PAYMENT-REQUIRED:
schema:
type: string
description: Base64-encoded x402 payment envelope
'429':
description: Rate limit exceeded
'502':
description: Upstream data source unavailable
tags:
- Br
/br/cep:
get:
operationId: get_br_cep
summary: 'Brazilian postal code (CEP) lookup: street, neighborhood, city, state and IBGE…'
description: 'Brazilian postal code (CEP) lookup: street, neighborhood, city, state and IBGE code for any of Brazil''s 700k+ CEPs. Use when you have a Brazilian postal code (CEP) and need the full address. Price: $0.002 per call, paid in USDC via x402 (HTTP 402 flow).'
x-price-usd: $0.002
x-payment-protocol: x402
x-example: curl "https://toolrail.dev/br/cep?cep=01310-100"
responses:
'200':
description: Resource returned after settled payment
content:
application/json:
schema:
type: object
'400':
description: Invalid request
'402':
description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
headers:
PAYMENT-REQUIRED:
schema:
type: string
description: Base64-encoded x402 payment envelope
'429':
description: Rate limit exceeded
'502':
description: Upstream data source unavailable
parameters:
- name: cep
in: query
required: false
schema:
type: string
example: 01310-100
tags:
- Br
/br/cnpj:
get:
operationId: get_br_cnpj
summary: 'Brazilian company lookup by CNPJ from the Receita Federal open register: legal…'
description: 'Brazilian company lookup by CNPJ from the Receita Federal open register: legal and trade name, registration status and date, opening date, legal nature, size, share capital, main CNAE activity and address. Check digits are validated first, including the alphanumeric CNPJ. Partners and contact data are excluded. Use when you have a Brazilian CNPJ and need to confirm the company exists and is active before invoicing or onboarding it. Price: $0.005 per call, paid in USDC via x402 (HTTP 402 flow).'
x-price-usd: $0.005
x-payment-protocol: x402
x-example: curl "https://toolrail.dev/br/cnpj?cnpj=19.131.243/0001-97"
responses:
'200':
description: Resource returned after settled payment
content:
application/json:
schema:
type: object
'400':
description: Invalid request
'402':
description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
headers:
PAYMENT-REQUIRED:
schema:
type: string
description: Base64-encoded x402 payment envelope
'429':
description: Rate limit exceeded
'502':
description: Upstream data source unavailable
parameters:
- name: cnpj
in: query
required: false
schema:
type: string
example: 19.131.243/0001-97
tags:
- Br