AgentHub

Look up Brazilian company data by CNPJ with forms and Minha Receita API

Quick overview

Live
Open / InstallLast updated July 27, 2026

Description

Quick overview This workflow hosts an n8n form that accepts a Brazilian CNPJ, validates and normalizes the input, then queries the public Minha Receita API to fetch company registration details and displays either a formatted results page or an error page with a link back to the form. How it works Receives a CNPJ through an n8n form submission. Sets the base URL for the Minha Receita API and the redirect URL used by the “Search Again” button. Removes punctuation from the CNPJ and validates that it contains exactly 14 digits. Requests company data from the Minha Receita API endpoint for the cleaned CNPJ. Displays a results form with key company fields (for example, status, CNAE, partners, and address) when the API returns data. Displays an error form when the CNPJ format is invalid or the API request fails, then redirects back to the input form. Setup Activate the workflow and copy the Production URL from the form trigger. Paste that URL into the Set URL step (replace REPLACE_WITH_PRODUCTION_FORM_URL) so completion pages can redirect users back to the search form. Ensure outbound HTTP access to https://minhareceita.org/ from your n8n instance, since the workflow relies on the public Minha Receita API and uses no credentials. An n8n automation workflow template by EximiaAI.

Author

EximiaAI

Platform

web

Pricing model

free

Categories

Automation

Tags

n8n
workflow
http-request

Capabilities

  • 1 nodes
  • 1 views