> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enrow.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Trova email

> Trova un singolo indirizzo email professionale a partire da nome completo e dominio o nome dell'azienda

<Badge color="green">POST</Badge>

```
https://api.enrow.io/email/find/single
```

Esegui una singola ricerca email per trovare un indirizzo email professionale. Autentica ogni richiesta con la tua [chiave API](/it/authentication) nell'header `x-api-key`. Per le operazioni in batch, utilizza l'endpoint [Find Bulk Emails](/it/api-reference/email-finder/find-bulk) (fino a 5.000 ricerche per batch).

<Info>
  Enrow esegue **verifiche deterministiche** che verificano anche le email catch-all. Ciò significa che non è necessario far passare successivamente le email trovate attraverso un debouncer.
</Info>

## Corpo della richiesta

<ParamField body="fullname" type="string" required>
  Il nome completo della persona per cui trovare l'email
</ParamField>

<ParamField body="company_domain" type="string">
  Il dominio dell'azienda, sono accettati più formati (`"dundermifflin.com"`, `"https://www.dundermifflin.com"`...)

  **Nota**: È richiesto almeno uno tra `company_domain` o `company_name`.
</ParamField>

<ParamField body="company_name" type="string">
  Il nome dell'azienda (`"Apple"`, `"Air France"`, ...)

  **Nota**: È richiesto almeno uno tra `company_domain` o `company_name`.
</ParamField>

<ParamField body="custom" type="object">
  Parametri personalizzati che verranno restituiti nella risposta GET e nella notifica webhook.

  <Expandable title="oggetto custom">
    <ParamField body="your_custom_key_name" type="string" default="your_custom_property">
      I tuoi dati personalizzati
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="settings" type="object">
  Un insieme di impostazioni relative a questa ricerca

  <Expandable title="proprietà settings">
    <ParamField body="webhook" type="string">
      Un URL che verrà notificato tramite una richiesta HTTP POST una volta terminata la singola ricerca. Consulta [Come funzionano i webhook](/it/how-webhooks-work).
    </ParamField>

    <ParamField body="country_code" type="string" default="US">
      Il codice ISO 3166 Alpha-2 del paese relativo alla ricerca. Rilevante quando si utilizza un nome di azienda — aiuta a disambiguare gli omonimi effettuando la ricerca su Google localizzato.
    </ParamField>

    <ParamField body="retrieve_gender" type="boolean" default="false">
      Ti consente di ottenere il genere (`male`/`female`) della persona.
    </ParamField>

    <ParamField body="retrieve_company_info" type="boolean" default="false">
      Restituisce informazioni aggiuntive sull'azienda nel risultato. Attualmente efficace solo quando `country_code` è `FR`.
    </ParamField>
  </Expandable>
</ParamField>

## Risposta

### 200 — Ricerca avviata

<ResponseField name="message" type="string">
  Messaggio di conferma
</ResponseField>

<ResponseField name="id" type="string">
  Identificatore univoco per questa ricerca. Utilizzalo per recuperare i risultati tramite l'[endpoint GET](/it/api-reference/email-finder/get-single-result).
</ResponseField>

<ResponseField name="credits_used" type="number">
  Numero di crediti consumati. Consulta [Crediti e fatturazione](/it/credits-billing) per i costi per endpoint.
</ResponseField>

### Risposte di errore

| Codice  | Messaggio                                                                                   |
| ------- | ------------------------------------------------------------------------------------------- |
| **400** | `invalid JSON input`                                                                        |
| **400** | `both company_domain and company_name are absent, input payload needs at least one of them` |
| **400** | `missing fullname`                                                                          |
| **401** | `No apikey found in the x-api-key headers`                                                  |
| **401** | `This apikey is not valid`                                                                  |
| **402** | `Insufficient credits`                                                                      |

<Note>
  Le risposte di credito insufficiente (`402`) sugli endpoint singoli restituiscono `{ "reason": "...", "success": false }`; tutti gli altri errori restituiscono `{ "message": "..." }`.
</Note>

Consulta [Gestione degli errori](/it/error-handling) per l'elenco completo dei codici di stato e dei formati di risposta.

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.enrow.io/email/find/single \
    --header 'Content-Type: application/json' \
    --header 'x-api-key: YOUR_API_KEY' \
    --data '{
      "fullname": "Dwight Schrute",
      "company_domain": "dundermifflin.com",
      "settings": {
        "retrieve_gender": true
      }
    }'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.enrow.io/email/find/single', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'x-api-key': process.env.ENROW_API_KEY
    },
    body: JSON.stringify({
      fullname: 'Dwight Schrute',
      company_domain: 'dundermifflin.com',
      settings: {
        retrieve_gender: true
      }
    })
  });

  const data = await response.json();
  console.log(data.id);
  ```

  ```python Python theme={null}
  import requests
  import os

  url = "https://api.enrow.io/email/find/single"
  headers = {
      "Content-Type": "application/json",
      "x-api-key": os.getenv("ENROW_API_KEY")
  }
  payload = {
      "fullname": "Dwight Schrute",
      "company_domain": "dundermifflin.com",
      "settings": {
          "retrieve_gender": True
      }
  }

  response = requests.post(url, json=payload, headers=headers)
  print(response.json())
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "message": "Single search operating",
    "id": "0cf517bc-16e8-45bc-b967-ab9116b3c804",
    "credits_used": 1
  }
  ```

  ```json Error Response theme={null}
  {
    "message": "..."
  }
  ```
</ResponseExample>

## Prossimi passi

<CardGroup cols={2}>
  <Card title="Ottieni il risultato" icon="inbox" href="/it/api-reference/email-finder/get-single-result">
    Recupera l'email trovata usando l'`id` della ricerca.
  </Card>

  <Card title="Trova email in blocco" icon="layer-group" href="/it/api-reference/email-finder/find-bulk">
    Esegui fino a 5.000 ricerche email in una singola richiesta.
  </Card>

  <Card title="Autenticazione" icon="key" href="/it/authentication">
    Come passare la tua chiave API nell'header x-api-key.
  </Card>

  <Card title="Webhook" icon="bell" href="/it/how-webhooks-work">
    Ricevi una notifica automatica al completamento di una ricerca.
  </Card>
</CardGroup>
