EntrarGanhe US$ 5
Receitas/Tire as três certidões negativas de uma empresa

Tire as três certidões negativas de uma empresa

A partir do CNPJ: certidão federal (Receita Federal e PGFN), certidão trabalhista (TST) e regularidade do FGTS (Caixa), cada uma com o resultado e a validade, e os PDFs oficiais. Um link com a resposta clara para licitação, banco ou cliente.

Cerca de US$ 0.165 por execução. Etapas que falham não são cobradas.
Teste aqui
English

Como um agente de IA tira as certidões negativas de uma empresa (federal, trabalhista e FGTS)?

Dê ao agente o CNPJ e peça as três certidões que licitações, bancos e clientes pedem: a certidão de débitos federais e dívida ativa da União, emitida em conjunto pela Receita Federal e pela PGFN, a certidão negativa de débitos trabalhistas (CNDT) do TST e o certificado de regularidade do FGTS (CRF) da Caixa. Esta receita tira as três numa chamada só e devolve um link com o resultado de cada uma, a validade e os PDFs oficiais.

Teste aqui

Cerca de US$ 0.165 por execução. Etapas que falham não são cobradas. Contas novas começam com US$5 grátis.

CNPJ da empresa, com ou sem pontuação

Entregue ao seu agente

Cole isto no seu agente. Ele lê a receita e faz o resto.

CodexClaude CodeQualquer agente com terminal

Use a receita da Superpowers em https://superpowers.tools/recipes/certidoes-cnpj/skill.md

  1. Lê a receita
  2. Configura a Superpowers se precisar
  3. Roda com o seu saldo
Para desenvolvedoresRode com um script ou leia exatamente o que o seu agente lê

Ferramentas usadas

0 instalações · 1 execução

Rode o script

curl -s https://superpowers.tools/recipes/certidoes-cnpj/run.mjs -o certidoes-cnpj.mjs
node certidoes-cnpj.mjs --cnpj "33.000.167/0001-01"

Lê a sua chave de SUPERPOWERS_API_KEY ou ~/.config/superpowers/key e mostra o link com o resultado.

A receita

Exatamente o que o seu agente lê (em inglês; o agente entende e responde no seu idioma).

---
name: certidoes-cnpj
description: Get a Brazilian company's three federal clearance certificates from its CNPJ (certidão negativa federal from the Receita Federal and PGFN, the labor-debt CNDT from the TST and the FGTS CRF from Caixa), each with result, validity and the official PDF, in one link.
---

# Get a company's three federal clearance certificates

A Superpowers recipe. One CNPJ in, one link out: the certidão de débitos federais e dívida ativa da União (Receita Federal and PGFN), the certidão negativa de débitos trabalhistas (CNDT, TST) and the certificado de regularidade do FGTS (CRF, Caixa), with each result, its validity, a one-line verdict and the official PDFs. These are the certificates tenders, banks and buyers ask for.

Needs a Superpowers API key. If you don't have one yet: https://superpowers.tools/skill.md?src=recipe%3Acertidoes-cnpj

## Input

- **cnpj** (required): the company's CNPJ, with or without punctuation. A branch CNPJ works: the federal certificate is issued for the head office and covers every branch.
- **lang** (optional): pt writes the result in Portuguese. Use it when your user writes in Portuguese.

## Run the script

    curl -s "https://superpowers.tools/recipes/certidoes-cnpj/run.mjs" -o sp-certidoes.mjs
    node sp-certidoes.mjs --cnpj "33.000.167/0001-01"            # add --lang pt for Portuguese

It prints JSON with share_url (the page to forward), charge_usd and each step's raw output.

## Step by step

1. In parallel:
   - POST https://superpowers.tools/v1/run {"tool": "receita.cnd-federal", "input": {"cnpj": <cnpj>}}: status (issued or not_issued), result (negative, positive_with_negative_effect, positive), control_code, valid_until, pdf_url and verify_url. When not issued, receita_message says why (pending debts, missing returns, irregular registration).
   - POST https://superpowers.tools/v1/run {"tool": "operator.cndt", "input": {"cnpj": <cnpj>}}: status, numero_certidao, valida_ate, processos and the PDF.
   - POST https://superpowers.tools/v1/run {"tool": "operator.crf-fgts", "input": {"cnpj": <cnpj>}}: situacao, numero_crf and validade_fim.
   If one fails, keep the others and say which one is missing.
2. Copy the PDFs so the links last: POST https://superpowers.tools/v1/files/from-url {"url": <pdf url>, "filename": "certidao-federal-<cnpj>.pdf"}.
3. Verdict: all clear when the federal certificate was issued and is not plain positive, the CNDT is negative or positive with the effects of a negative, and the FGTS is regular; otherwise list what needs a look.
4. Publish: POST https://superpowers.tools/v1/shares {"title": "Clearance certificates: <name>", "recipe": "certidoes-cnpj", "items": [{"label": "Summary", "text": <verdict and one line per certificate>}, {"url": <federal pdf>, "caption": "Federal certificate"}, {"url": <cndt pdf>, "caption": "Labor-debt certificate"}]} and give the user share_url.

## Reading the result

"Positive with the effects of a negative" has the same legal value as a negative certificate: there are debts, but they are suspended, guaranteed or under discussion. A federal certificate that was still valid is returned as the Receita's own copy, so the issue date can be weeks old; pass "fresh": true to receita.cnd-federal for a new one. Authenticity of the federal certificate can be checked at the Receita's verify_url with the control code.