> ## 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.

# Verificaties ophalen

> Haal resultaten van bulk-e-mailverificatie op via batch-ID, inclusief geldigheid per e-mail, batchstatus en gebruikte credits

<Badge color="blue">GET</Badge>

```
https://api.enrow.io/email/verify/bulk?id={id}
```

Haal alle resultaten op van een bulk-e-mailverificatie aan de hand van de batch-ID. Authenticeer elke aanvraag met je [API-sleutel](/nl/authentication) in de `x-api-key`-header. Gebruik eerst het endpoint [Verify Bulk Emails](/nl/api-reference/email-verifier/verify-bulk) om een batch te starten.

<Info>
  Met een webhook kun je het aanroepen van dit GET-endpoint overslaan. Zie [How Webhooks Work](/nl/how-webhooks-work).
</Info>

## Queryparameters

<ParamField query="id" type="string" required>
  De `id` die door de POST-aanvraag wordt geretourneerd
</ParamField>

## Response

### 200 — Verificatie voltooid

<ResponseField name="general" type="object">
  Batchmetadata

  <Expandable title="general eigenschappen">
    <ResponseField name="id" type="string">
      Batch-identifier
    </ResponseField>

    <ResponseField name="status" type="string">
      `completed`, `ongoing` of `failed`
    </ResponseField>

    <ResponseField name="custom" type="object">
      Aangepaste gegevens die in de oorspronkelijke aanvraag zijn meegegeven
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="stats" type="object">
  Batchstatistieken

  <Expandable title="stats eigenschappen">
    <ResponseField name="credits_cost" type="number">
      Totaal aantal verbruikte credits. Zie [Credits & billing](/nl/credits-billing) voor kosten per endpoint.
    </ResponseField>

    <ResponseField name="requested" type="number">
      Totaal aantal aangevraagde verificaties
    </ResponseField>

    <ResponseField name="valid" type="number">
      Aantal geldige e-mailadressen
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="results" type="array">
  Array met verificatieresultaten

  <Expandable title="Resultaat eigenschappen">
    <ResponseField name="email" type="string">
      Het geverifieerde e-mailadres
    </ResponseField>

    <ResponseField name="index" type="string">
      Unieke identifier voor deze verificatie binnen de batch
    </ResponseField>

    <ResponseField name="qualification" type="string">
      `valid` (bezorgbaar) of `invalid` (niet bezorgbaar). [Waarom binair?](/nl/status-codes#why-binary)
    </ResponseField>
  </Expandable>
</ResponseField>

### 200 — Verificatie nog bezig

Zolang de batch nog loopt, retourneert het endpoint HTTP `200` met de batchstatus in plaats van de volledige resultaten.

<ResponseField name="general" type="object">
  Batchmetadata

  <Expandable title="general eigenschappen">
    <ResponseField name="id" type="string">
      Batch-identifier
    </ResponseField>

    <ResponseField name="status" type="string">
      `ongoing`
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="stats" type="object">
  Batchvoortgang

  <Expandable title="stats eigenschappen">
    <ResponseField name="finished" type="number">
      Aantal verificaties dat al is voltooid
    </ResponseField>

    <ResponseField name="requested" type="number">
      Totaal aantal aangevraagde verificaties
    </ResponseField>
  </Expandable>
</ResponseField>

### Foutresponses

| Code    | Message                                        |
| ------- | ---------------------------------------------- |
| **400** | `Could not retrieve bulk verification results` |

Zie [Error handling](/nl/error-handling) voor de volledige lijst met statuscodes en responseformaten.

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.enrow.io/email/verify/bulk?id=9d4fa0ed-f76b-409f-bee4-d5468ebda70e' \
    --header 'x-api-key: YOUR_API_KEY'
  ```

  ```javascript Node.js theme={null}
  const batchId = '9d4fa0ed-f76b-409f-bee4-d5468ebda70e';
  const response = await fetch(`https://api.enrow.io/email/verify/bulk?id=${batchId}`, {
    headers: {
      'x-api-key': process.env.ENROW_API_KEY
    }
  });

  const data = await response.json();
  if (data.general.status === 'completed') {
    console.log(`Valid: ${data.stats.valid}/${data.stats.requested}`);
    console.log(data.results);
  }
  ```

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

  batch_id = "9d4fa0ed-f76b-409f-bee4-d5468ebda70e"
  url = f"https://api.enrow.io/email/verify/bulk?id={batch_id}"
  headers = {
      "x-api-key": os.getenv("ENROW_API_KEY")
  }

  response = requests.get(url, headers=headers)
  data = response.json()
  if data["general"]["status"] == "completed":
      print(f"Valid: {data['stats']['valid']}/{data['stats']['requested']}")
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "general": {
      "id": "9d4fa0ed-f76b-409f-bee4-d5468ebda70e",
      "status": "completed"
    },
    "results": [
      {
        "email": "pam.beesly@dundermifflin.com",
        "index": "195f87c6-376e-4eca-9861-f92935413b0c",
        "qualification": "valid"
      },
      {
        "email": "angela.martin@dundermifflin.com",
        "index": "662784ae-3722-47af-b056-7554e013f73b",
        "qualification": "valid"
      }
    ],
    "stats": {
      "credits_cost": 0.5,
      "requested": 2,
      "valid": 2
    }
  }
  ```

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

## Volgende stappen

<CardGroup cols={2}>
  <Card title="E-mails in bulk verifiëren" icon="layer-group" href="/nl/api-reference/email-verifier/verify-bulk">
    Start een batchverificatie en ontvang de batch-`id` terug.
  </Card>

  <Card title="Eén e-mail verifiëren" icon="circle-check" href="/nl/api-reference/email-verifier/verify-single">
    Controleer of één e-mailadres geldig en bezorgbaar is.
  </Card>

  <Card title="Webhooks" icon="bell" href="/nl/how-webhooks-work">
    Word automatisch op de hoogte gebracht wanneer een batch is voltooid in plaats van te pollen.
  </Card>

  <Card title="Credits & billing" icon="coins" href="/nl/credits-billing">
    Bekijk hoe credits voor elk endpoint worden verbruikt.
  </Card>
</CardGroup>
