# Encontrar um e-mail corporativo

Source: https://won.dev/pt-BR/docs/enrich/people-email-find

`POST https://api.won.dev/v1/enrich/people/email/find`

Encontra o e-mail corporativo de uma pessoa no domínio próprio do empregador, a partir do nome e do site do empregador, do perfil no LinkedIn ou do `person_id` que outra chamada retornou, como uma busca de pessoas. O e-mail fica guardado com esse ID, então a pessoa pode ser adicionada a uma campanha por ele. Todo endereço é verificado antes de ser retornado. Custa US$ 0,03 quando um e-mail é encontrado; não encontrar nada é grátis. As fontes são consultadas numa ordem fixa, da mais barata para a mais cara, até que uma tenha um endereço no domínio, e a resposta vem em cerca de 30 segundos. Um perfil no LinkedIn é primeiro transformado num nome e num empregador atual: um endereço de um empregador anterior nunca é retornado, nem uma caixa compartilhada como `info@`. Por padrão, só caixas `verified` voltam; `min_email_status: "risky"` também retorna endereços em domínios que aceitam qualquer endereço. Para checar um endereço que você já tem, use `POST /enrich/email/verify`.

- **Cobrança:** `person_email` US$ 0,03: Um e-mail corporativo encontrado no domínio do empregador, verificado antes de ser retornado.
- **Modo:** `waterfall` ([o que cada modo significa](/pt-BR/docs/trade#modes))

Uma chave de teste (`won_test_...`) responde a esta requisição com a mesma empresa e as mesmas pessoas de exemplo, sem custo.

## Parâmetros [#parameters]

Os parâmetros vão no corpo JSON. Requisições `POST` também aceitam o cabeçalho `Idempotency-Key`; veja [Idempotência](/pt-BR/docs/idempotency).

| Parâmetro | Tipo | Obrigatório | Descrição (texto original da API) |
| --- | --- | --- | --- |
| `first_name` | string | não | First name, with `last_name` and `domain`. |
| `last_name` | string | não | Last name, with `first_name` and `domain`. |
| `domain` | string | não | The website of the person's employer, such as `example.com`. Only an address on this domain is returned. |
| `company_id` | string | não | A company ID from the trade data API, such as `co_8f3k2m9x4p1q`, instead of `domain`: the company's website on record is used. |
| `linkedin_url` | string | não | The person's LinkedIn profile, instead of the name and the website, or with them. |
| `person_id` | string | não | A person ID this account was given in the last 90 days, such as `per_4m7q2x9k1c8d`, instead of naming the person: their name, employer website and LinkedIn profile on file are used. What you pass besides it wins. |
| `min_email_status` | `verified` \| `risky` | não | `verified` (default) returns only mailboxes that were confirmed to exist. `risky` also returns addresses on domains that accept every address, which cannot be confirmed. Same price. Default: `verified`. |
| `max_cost` | number | não | Spending cap for this call in US dollars. If the call could cost more, it fails with `budget_exceeded` before anything is charged. |
| `dry_run` | boolean | não | If true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: `false`. |

## Resposta [#response]

Com `dry_run: true` nada é executado e `data` traz só o máximo que a chamada pode custar; veja [Simulações](/pt-BR/docs/responses#dry-run). Os erros estão descritos em [Erros](/pt-BR/docs/errors).

| Campo | Tipo | Descrição (texto original da API) |
| --- | --- | --- |
| `data` | object | The email, and who it is for. |
| `data.email` | object \| null | The work email. Null when none was found. |
| `data.email.email` | string | Work email on the employer's own domain. |
| `data.email.status` | `verified` \| `risky` | `verified`: the mailbox exists. `risky`: the domain accepts every address, so the mailbox cannot be confirmed. |
| `data.person` | object \| null | Who the email is for. From a LinkedIn profile, the profile it was read from. Null when the profile was not found. |
| `data.person.id` | string | Person ID, such as `per_4m7q2x9k1c8d`. It is kept for your account for 90 days after it was last returned: pass it as `person_id` to find the person's email or phone, or as `contact_id` to add them to a campaign. The same person can come back under another ID from another endpoint; each one works. To match people across calls, compare `linkedin_url`. |
| `data.person.name` | string \| null | Full name. |
| `data.person.first_name` | string \| null |  |
| `data.person.last_name` | string \| null |  |
| `data.person.title` | string \| null | Current job title. |
| `data.person.seniority` | `owner` \| `c_level` \| `executive` \| `manager` \| `senior` \| `staff` \| null | Level, read from the title. |
| `data.person.department` | `purchasing` \| `sales` \| `management` \| `operations` \| `marketing` \| `finance` \| `engineering` \| `quality` \| `it` \| `hr` \| `legal` \| null | Department, read from the title. |
| `data.person.company` | string \| null | Current employer. |
| `data.person.company_domain` | string \| null | The employer's website, such as `example.com`. |
| `data.person.linkedin_url` | string \| null | The person's LinkedIn profile. |
| `data.person.location` | string \| null | Where the person is, as their profile says. |
| `query` | object | The request as it was understood, with the website that was searched. |
| `query.domain` | string \| null | The website the email was looked for on: `domain` when it was given, otherwise the one of the person's profile. Null when none is known. |
| `notice` | string \| null | A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise. |
| `usage` | object | What this call was charged, and the balance left. |
| `usage.unit` | `person_record` \| `person_profile` \| `person_email` \| `person_phone` \| `email_verification` \| `company_listing` \| `company_record` \| `company_channels` \| `company_technologies` \| `company_funding` \| `company_news` \| `company_lookalikes` \| `job_posting` | What is counted. |
| `usage.records` | integer | How many were returned and charged. |
| `usage.already_paid` | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
| `usage.cost` | number | What this call cost, in US dollars. |
| `usage.balance` | number | The balance left after this call, in US dollars. |
| `usage.replayed` | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |

## Exemplo [#example]

```bash
curl https://api.won.dev/v1/enrich/people/email/find \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "first_name": "Jordan",
  "last_name": "Lee",
  "domain": "northfield-home.example"
}'
```

```json
{
  "data": {
    "email": {
      "email": "jordan.lee@northfield-home.example",
      "status": "verified"
    },
    "person": {
      "id": "per_4m7q2x9k1c8d",
      "name": "Jordan Lee",
      "first_name": "Jordan",
      "last_name": "Lee",
      "title": "Director of Global Sourcing",
      "seniority": "executive",
      "department": "purchasing",
      "company": "SAMPLE Northfield Home Furnishings",
      "company_domain": "northfield-home.example",
      "linkedin_url": "https://www.linkedin.com/in/sample-jordan-lee",
      "location": "Charlotte, North Carolina, United States"
    }
  },
  "query": {
    "first_name": "Jordan",
    "last_name": "Lee",
    "domain": "northfield-home.example",
    "min_email_status": "verified"
  },
  "notice": null,
  "usage": {
    "unit": "person_email",
    "records": 1,
    "already_paid": 0,
    "cost": 0.03,
    "balance": 48.97,
    "replayed": false
  }
}
```