Partners and QSA in the API
Get each company's QSA and each partner's companies via the API, search people by name, CPF or CNPJ and follow ownership chains up to the controlling parties.
Tip: Concepts on this page: Partners and administrators board, Person types, Masked CPF, Current participations and Ownership chains.
The API returns each company’s current QSA and treats each member as a person, with its own id and the list of companies it participates in. This makes it possible to navigate in both directions: from a company to its partners, and from a person to their companies. The board is also returned by Lookup CNPJ, available through public access; the people and company operations require an API key.
Request
The board of partners and people appear in five operations:
| Operation | Input | Returns | Freshness |
|---|---|---|---|
| Lookup CNPJ | CNPJ | company., along with the establishment’s registration data | Live query or cached data, according to maxAge |
| Lookup company | CNPJ root | partners, with the company data and a summary of each establishment | Cached data only |
| Search CNPJ | Filters | company. in every record | Cached data only |
| Lookup person | Person id | The person and all current participations | Cached data only |
| Search people | Filters | Pages of people, each with their current participations | Cached data only |
Lookup CNPJ, described in CNPJ lookup, is the only one of these operations that makes live queries and accepts public access. The others require an API key.
The examples on this page use a fictitious company and partner: EXEMPLO TECNOLOGIA LTDA, of CNPJ EXEMPLO0000154, and FULANA EXEMPLO.
Lookup company
Lookup company takes the CNPJ root in the path, in id: the first 8 characters, with no punctuation and in uppercase. The response carries the full board in partners.
GET /v2/companies/EXEMPLO0 HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY The full CNPJ and an 8-character ID with lowercase letters or punctuation are rejected with 400 REQUEST_, with no charge.
Lookup person
Lookup person takes the person’s id in the path, a UUID obtained from person., legalRepresentative. or Search people. The response carries the person with all current participations, with no paging.
GET /v2/people/0f8e7d6c-5b4a-4c3d-9e2f-1a0b9c8d7e6f HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY Search people
Search people finds people by name, CPF or CNPJ when the id is not known. Each record has the same content as Lookup person, participations included.
| Parameter | Selects |
|---|---|
search | People whose name or CPF/CNPJ contains the term, in free text |
type. | Person types, comma-separated, such as INDIVIDUAL,ESTABLISHMENT |
legalName. and legalName. | Full names to include or exclude, comma-separated |
taxId. | CPFs or CNPJs, comma-separated |
ageGroup. | Age groups, such as 21-30,31-40 |
domicileCountry. and domicileCountry. | Alpha-2 codes of the countries of domicile to include or exclude, in uppercase, such as AR,CL |
participations. and participations. | Number of current participations, as a minimum or maximum |
sort and order | Field used to sort records, relevance (default), legalName or participations, and the direction, ASC or DESC, in uppercase |
limit and cursor | Records per page, from 1 to 1000, default 10, and the cursor of the next page, sent with no other parameters |
GET /v2/people?search=FULANA%20EXEMPLO&type.code.in=INDIVIDUAL HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY - A full CPF in
searchortaxId.is compared by the visible digits of the masked CPF only and therefore also matches other people with the same digits. To narrow the result, send the CPF and the name in the samein search, replacingFULL_with the 11 digits, with no punctuation:CPF
GET /v2/people?search=FULL_CPF%20FULANA%20EXEMPLO HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY UNKNOWNpeople do not appear in the search, sotype.returns no records. They are still available in Lookup person.code. in=UNKNOWN - When
orderis omitted,relevanceandparticipationsstart from the highest value, andlegalNamefrom the lowest.legalNameis compared by character code, without ignoring case or accents: uppercase letters come before lowercase ones, and accented letters come after both. With anysort, ties follow ascendinglegalName, then ascendingid. - With the default
sort=relevance, records come in ascending order oflegalNamewhen there is nosearchor it has a single word. With more than one word, exact matches come first, then records containing the exact phrase, then the rest, each group in that same order. - Operators, text matching and paging follow the same rules as CNPJ search. The page format, with
records,total,limitandnextCursor, is described in Response format. - A search with no results returns
200with emptyrecords, not404.
Response fields
Excerpt of Lookup company, trimmed to the board of partners:
{
"updatedAt": "2026-01-27T03:00:00.000Z",
"id": "EXEMPLO0",
"legalName": "EXEMPLO TECNOLOGIA LTDA",
"partners": [
{
"role": { "code": "49", "label": "Sócio-Administrador" },
"admissionDate": "2026-01-01",
"person": {
"id": "0f8e7d6c-5b4a-4c3d-9e2f-1a0b9c8d7e6f",
"type": { "code": "INDIVIDUAL", "label": "Pessoa Física" },
"legalName": "FULANA EXEMPLO",
"taxId": "***456789**",
"domicileCountry": { "code": "BR", "label": "Brasil" },
"ageGroup": "31-40"
}
}
]
} Each item of partners, and of participations, carries:
| Field | Content |
|---|---|
role | Partner role, with a 2-character code and a label |
admissionDate | Date the partner joined the company, in YYYY-MM-DD format, or null |
legalRepresentative | Legal representative, with person and role. Present only when the partner is represented |
person | The partner person, in partners |
company | Company summary, in participations |
Excerpt of Lookup person:
{
"updatedAt": "2026-01-27T03:00:00.000Z",
"id": "0f8e7d6c-5b4a-4c3d-9e2f-1a0b9c8d7e6f",
"type": { "code": "INDIVIDUAL", "label": "Pessoa Física" },
"legalName": "FULANA EXEMPLO",
"taxId": "***456789**",
"domicileCountry": { "code": "BR", "label": "Brasil" },
"ageGroup": "31-40",
"participations": [
{
"role": { "code": "49", "label": "Sócio-Administrador" },
"admissionDate": "2026-01-01",
"company": {
"updatedAt": "2026-01-27T03:00:00.000Z",
"id": "EXEMPLO0",
"legalName": "EXEMPLO TECNOLOGIA LTDA",
"shareCapital": 99999.99,
"legalNature": { "code": "2062", "label": "Sociedade Empresária Limitada" },
"size": { "code": "SMALL", "label": "Empresa de Pequeno Porte" }
}
}
]
} Person fields, in person, in legalRepresentative. and at the root of Lookup person and Search people:
| Field | Content |
|---|---|
id | Unique person identifier, a stable UUID, the same across operations, which can be stored |
type | Person type, with code and label |
legalName | Person’s name, as registered with the official source |
taxId | CNPJ, masked CPF or null, depending on the type |
domicileCountry | Country of domicile, with the alpha-2 code in code and the name in label |
ageGroup | Age group. Present only for INDIVIDUAL people |
updatedAt | Last update from the Receita Federal. Only in Lookup person and Search people |
participations | Current participations. Only in Lookup person and Search people |
The content of taxId and ageGroup depends on type.:
type. | taxId | ageGroup |
|---|---|---|
INDIVIDUAL | Masked CPF, as in ***456789** | Age group |
ESTABLISHMENT | Full CNPJ of the establishment registered as the partner | Not applicable |
FOREIGNER | null, with the country abroad in domicileCountry | Not applicable |
UNKNOWN | null | Not applicable |
participations[].carries the CNPJ root incompany id, the legal name, the share capital, the legal nature, the company size,updatedAtand, when the legal nature belongs to the public administration,federativeEntity.- A company with no registered partners returns an empty
partners, and a person with no current participations returns an emptyparticipations.
Ownership chains
When a partner is another company (ESTABLISHMENT), the ownership chain can be followed in both directions with chained calls, up to the controlling parties or down to the controlled companies. The concept, with where a chain ends and its cycles, is in Ownership chains.
Controlling parties of a company
- Look up the company with Lookup company.
- For each
ESTABLISHMENTpartner, take the first 8 characters ofperson.and look up that company.taxId - Repeat until only
INDIVIDUAL,FOREIGNERorUNKNOWNpartners remain, which end the chain.
Holdings of a company
- In Search people, send the CNPJ in
taxId.. If you do not know which of the company’s CNPJs is registered as the partner, send all of thein establishments[].values returned by Lookup company.taxId - The
ESTABLISHMENTperson returned lists inparticipationsthe companies where that CNPJ is a partner. - Follow
participations[].with Lookup company and repeat.company. id
If the company already appeared as a partner on another board, its person. leads straight to Lookup person.
- Keep track of the roots already visited: cross participations can form cycles, and each step consumes queries.
- Both directions show only the current board and participations, and
participationscan lag behindpartners, as explained in Current participations.
Codes and values
role.: 2-character code from the Receita Federal table of roles, also used incode legalRepresentative.. The most common codes, such asrole 49(Managing Partner) and22(Partner), are in Qualifications and legal representative.type.:code INDIVIDUAL,ESTABLISHMENT,FOREIGNERorUNKNOWN, described in Person types.ageGroup:0-12,13-20,21-30,31-40,41-50,51-60,61-70,71-80or81+, in years.domicileCountry.: alpha-2 country code, such ascode BR.- Base your logic on
code. Thelabelis for display only and changes with the language, as explained in Response format. Person names and legal names are returned as registered, regardless of the response language.
Sources and updates
The sources of each person type are in Sources and freshness. In the API:
- Lookup CNPJ makes a live query of the Receita Federal CNPJ registry when the cached data is older than
maxAge, which defaults to45d, or, in requests with an API key, does not include the CNPJ yet. The general rules are in Max age and partial success. - Lookup company, Lookup person and the searches deliver cached data only. To refresh a company’s board, or add the company to cached data, look up one of its CNPJs with Lookup CNPJ: the live query also updates
partners, and people’sparticipationscan take until the next open data release to reflect the change. - A live query can add
UNKNOWNpeople to the board, known only by name.
Certificate
The RFB_ certificate, issued by Issue CNPJ dossier, carries as a PDF the board of partners and administrators as it stood in the Receita Federal CNPJ registry at the live query that produced it. Whether the PDF is the source’s original or a reproduction generated by CNPJá, and what a certificate is not, is in CNPJ card and other certificates.
GET /v2/establishments/EXEMPLO0000154/dossier?certificates=RFB_PARTNERS HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY RFB_comes from the same live query of the CNPJ registry that produces thePARTNERS RFB_registration certificate, and both can be requested together, as inREGISTRATION certificates=RFB_.REGISTRATION,RFB_ PARTNERS - The certificate is updated only by live queries, not by the open data. It can therefore require a live query even when Lookup CNPJ would answer from cached data.
- A company with no partners in the Receita Federal registry gets the certificate with a notice in place of the board, as explained in Omitted certificates.
The other certificates and the dossier rules are in Certificates.
Billing
Lookup company, Lookup person and Search people consume cached queries, and partners add no usage to Lookup CNPJ or Search CNPJ. The usage of each operation is in the Metering Rules, that of 404 responses under What is charged even without a useful result, and the certificate under Issue certificates.
Frequent errors
| Status | Code | Cause | Action |
|---|---|---|---|
400 | REQUEST_ | In Lookup company, an id that is not 8 characters long, or that has lowercase letters or punctuation, such as the full CNPJ; in Lookup person, an id that is not a UUID; in Search people, an unknown filter, a value in the wrong format, an invalid sort or order value or cursor combined with another parameter | Fix what errors points to |
400 | PAGE_ | In Search people, an expired or unknown cursor | Run the search again from the first page |
401 | API_ | Request without a key to Lookup company, Lookup person or Search people, or a public request to Lookup CNPJ with parameters | Send the API key, as explained in Public access |
404 | COMPANY_ | The root is not in cached data | Look up one of the company’s CNPJs with Lookup CNPJ, which adds it, and try again |
404 | PERSON_ | No person has the given id | Get the id from partners or from Search people |
404 | ESTABLISHMENT_ | In Lookup CNPJ, the CNPJ is not in the Receita Federal registry or, without a key, is not in cached data yet | Check the CNPJ before repeating; without a key, send one. With a key, the 404 is charged |
The other errors are in Limits and errors.
Use cases
- Customer and supplier onboarding: Lookup CNPJ already includes
company.. Use the partners and administrators to support verification before approving the registration, and keep thepartners RFB_certificate when you need to record the board as it stood in the Receita Federal registry.PARTNERS - A person’s holdings: search by name and CPF with Search people and read
participations. - Corporate groups: follow
ESTABLISHMENTpartners up to the controlling companies, and usetaxId.to find the companies a company holds stakes in.in - Related parties: compare the
person.of the partners of two companies. The sameid idmeans the same person. - Tracking the board: look up the CNPJ periodically, with a suitable
maxAge, and comparecompany.with your previous copy to detect partners joining and leaving. You are the controller of this data and need your own legal basis and retention period (LGPD).partners
In the app
On the platform, the board appears in the Partners and administrators section of the CNPJ record, and people in the Partners app, which searches people and opens each one’s record with their participations. See Search partners by name, CPF or CNPJ and Partner record.
Notes
- What the board does not include, such as each partner’s share of the capital and the full CPF, is in What is not available.
- A masked CPF cannot be used in Lookup CPF, which covers a different resource, the individual, with state and SUFRAMA registrations. See State registrations and SUFRAMA.
- To find companies without knowing the root, use the
company.filters of CNPJ search.* - For the remaining company data, such as the tax regime and establishments, see CNPJ lookup and Tax regime.