# Company phones and e-mails

> Where company phones and e-mails on CNPJá come from, how they are normalized, the inferred types, contact filters and the responsible use of this data.

The phones and e-mails of each establishment come from the CNPJ registry of the [Receita Federal](https://cnpja.com/en-us/docs/glossary#receita-federal). CNPJá standardizes their format, discards what is not valid and classifies each contact by type, an inference of its own that does not come from the source.

## Where contacts come from

They are the contacts the company gave the Receita Federal in the registration of each [establishment](https://cnpja.com/en-us/docs/glossary#estabelecimento--establishment). The head office and each branch have their own, which may differ, so the contacts of a branch do not stand for the whole company, as explained in [Companies and establishments](https://cnpja.com/en-us/docs/data/company-and-establishment#what-belongs-where).

A contact reflects what is in the registration, not the channel the company uses today. It may belong to whoever filed the registration, such as the accounting firm, and a number may have changed without the company updating the Receita Federal.

Contacts are updated with the rest of the registration, on each open data release or in a live query, as explained in [Data freshness](https://cnpja.com/en-us/docs/data/freshness). To correct a contact, the company updates its own registration at the Receita Federal, and the change shows up on CNPJá after the next update, as described in [How to correct data at the source](https://cnpja.com/en-us/docs/data/sources#correct-at-source).

SUFRAMA registrations have phones and e-mails of their own, from the SUFRAMA registry, in the same format and with the same types, which may differ from those at the Receita Federal, as explained in [SUFRAMA and Free Trade Zone incentives](https://cnpja.com/en-us/docs/data/suframa).

## Phones

Each phone follows the international E.164 format: the plus sign, the country code (55), the area code and the number, with no spaces or punctuation, as in `+5511900000000`. On screen, the same number reads (11) 90000-0000.

When reading the registration, CNPJá converts the numbers to this format, discards those that do not make a valid phone number and keeps a repeated number only once.

## E-mails

E-mails come in lowercase, as in `contato@empresa.example`. Invalid addresses are discarded, and a repeated address appears only once. The domain, the part after the @, has a filter of its own and weighs on the type classification.

## Types calculated by CNPJá

The Receita Federal does not say what type a contact is. CNPJá calculates it from the number or address itself, so the type is an inferred hint, which can be wrong, not data from the source.

| Phone type | How it is set |
| --- | --- |
| **Mobile** | A number that starts with 9 after the area code |
| **Landline** | Every other number |

Mobile does not mean the number has WhatsApp or is for personal use: CNPJá does not check how the number is used.

| E-mail type | What it indicates |
| --- | --- |
| **Corporate** | A domain owned by a company or organization |
| **Consumer** | The domain of a free e-mail provider, common in personal accounts |
| **Accounting** | The address of an accounting firm, common when the accountant filed the registration |
| **Government** | The domain of a public body, such as those with .gov |
| **Academic** | The domain of an education or research institution |

The e-mail type follows the domain and the address. One registration may have contacts of different types, and a small company may use a consumer e-mail as its official channel.

## Filter by contact

In the **CNPJ** app, the **Filters** button, at the end of the filter bar, groups the phone and e-mail filters under **Contact**:

| Filter | What it compares |
| --- | --- |
| **Phone type** | The inferred type: **Mobile** or **Landline** |
| **Area code** | The 2 digits of the area code |
| **Phone** | The number with its area code, typed with or without the 55 and with or without punctuation |
| **E-mail type** | The inferred type: **Corporate**, **Consumer**, **Accounting**, **Government** or **Academic** |
| **E-mail domain** | The part after the @, typed with or without a leading @ or www. |
| **E-mail** | The full address |

An establishment matches when at least one of its contacts meets the filter. **Phone type** and **E-mail type** are on the filter bar by default and only include values; **Area code**, **Phone**, **E-mail domain** and **E-mail** can also exclude, leaving out the establishments with any matching contact. To find establishments with an e-mail on their own domain, for example, filter **E-mail type** by **Corporate**: the other e-mails of those establishments still show.

Free-text search also finds phones, e-mails and domains, as explained in [Free text search](https://cnpja.com/en-us/docs/data/search-matching#free-text). The editor of each filter is described in [Search filters](https://cnpja.com/en-us/docs/search/filters#reference).

## Responsible use

Contacts are public in the Receita Federal registry, but that does not make every use acceptable. The phones and e-mails of sole proprietors and [MEIs](https://cnpja.com/en-us/docs/glossary#mei), as well as a mobile number or a **Consumer** e-mail, may belong to the person, and then they are personal data protected by the LGPD (Lei 13.709/2018).

You are the controller of the personal data you process from CNPJá and you answer for how you use it, prospecting included. Prohibited uses, such as automated mass unsolicited commercial messages to natural persons, and the other rules on personal data are in the [Terms of Use](https://cnpja.com/en-us/legal/terms#personal-data).

The data subject of an eligible registration can ask for the removal of their personal data, and phones and e-mails are among the data removed, as explained in [Remove personal data from CNPJá](https://cnpja.com/en-us/docs/privacy/data-removal).

## Where it appears in the app

- On the [company record](https://cnpja.com/en-us/docs/companies/record), the **Contacts** section lists the establishment's **Phones** and **E-mails**, each with its type beside it. Click the number to call or the address to write, and copy each contact with the button beside it. With no contacts in the registration, the section shows **No phones** or **No e-mails**.
- In the [search](https://cnpja.com/en-us/docs/search/companies), the results table has the **Phones** and **E-mails** columns, and the **Contact** filters are under the **Filters** button.

## In the API

Contacts are in `phones` and `emails` in the Lookup CNPJ and Search CNPJ responses:

| Field | Format | Example |
| --- | --- | --- |
| `phones[].number` | E.164: `+`, country code, area code and number, with no spaces | `+5511900000000` |
| `phones[].type.code` | `MOBILE` or `LANDLINE` | `MOBILE` |
| `emails[].address` | Address in lowercase | `contato@empresa.example` |
| `emails[].type.code` | `CORPORATE`, `CONSUMER`, `ACCOUNTING`, `GOVERNMENT` or `ACADEMIC` | `CORPORATE` |

In Search CNPJ, the `phones.type.code`, `phones.area`, `phones.number`, `emails.type.code`, `emails.domain` and `emails.address` filters match those of the **Contact** group: the two types take `some`, and the others `some` and `none`. Encode the `+` of phone numbers as `%2B` in the URL. Lookup company does not return the contacts of each establishment: look up each CNPJ instead. The parameters are in [CNPJ lookup in the API](https://cnpja.com/en-us/docs/api/cnpj-lookup) and [CNPJ search and lists in the API](https://cnpja.com/en-us/docs/api/cnpj-search).
