cnpj.ai · OpenAPI Overlay 1.0.0

cnpj.ai API v2 — API Evangelist overlay

5 actions 5 updates documentation extends ../openapi/_original/cnpj-ai-v2-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for cnpj.ai's API. It is a proposal applied on top of the contract, not a document cnpj.ai publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

headersx-rate-limitdescriptionx-agent-hintsx-mcp-tool

Targets 5

$.info
$.paths.*.get.responses['200']
$.paths.*.get.responses['429']
$.paths.*.get
$.paths['/v2/estabelecimentos/{documento}/basic'].get

OpenAPI Overlay

Raw ↑
overlay: 1.0.0
info:
  title: cnpj.ai API v2 — API Evangelist overlay
  version: 1.0.0
  x-provenance:
    generated: '2026-11-04'
    method: generated
    source: https://cnpj.ai/api/docs
extends: ../openapi/_original/cnpj-ai-v2-openapi.yml
actions:
- target: $.info
  description: Document the published rate limit and response headers.
  update:
    x-rate-limit:
      max: 60
      window: 1 minute
      scope: account (shared across v1, v2 and up to 5 keys)
      source: https://cnpj.ai/api/docs
- target: $.paths.*.get.responses['200']
  description: Add documented rate-limit headers to success responses.
  update:
    headers:
      X-RateLimit-Limit:
        description: Calls allowed per window (documented at https://cnpj.ai/api/docs).
        schema:
          type: integer
      X-RateLimit-Remaining:
        description: Calls remaining in the current window.
        schema:
          type: integer
      X-RateLimit-Reset:
        description: When the current window resets.
        schema:
          type: string
      X-Request-ID:
        description: Request identifier.
        schema:
          type: string
- target: $.paths.*.get.responses['429']
  description: Document Retry-After on 429.
  update:
    description: 'Rate limit exceeded. Rate limits (https://cnpj.ai/api/docs): 60 calls per minute per account, shared across v1, v2 and up to
      5 active keys. Responses include X-Request-ID, X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; on 429 honor Retry-After.'
    headers:
      Retry-After:
        description: Seconds to wait before retrying.
        schema:
          type: integer
- target: $.paths.*.get
  description: Mark every operation read-only and safe to retry, matching the read-only MCP server.
  update:
    x-agent-hints:
      read_only: true
      idempotent: true
- target: $.paths['/v2/estabelecimentos/{documento}/basic'].get
  description: Bind to the MCP tool documented at https://mcp.cnpj.ai/.
  update:
    x-mcp-tool: ficha_cnpj

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/cnpj-ai-v2-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

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.

A second provider on the same verified email joins the account you already have.