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

# Telefoonnummers vinden

> Vind meerdere telefoonnummers in één batch (tot 3.000 zoekopdrachten) op basis van LinkedIn-URLs of naam en bedrijf, met webhook-notificaties

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

```
https://api.enrow.io/phone/bulk
```

Voer meerdere telefoonzoekopdrachten uit in één verzoek. Tot 3.000 zoekopdrachten per batch. Authenticeer elk verzoek met je [API-sleutel](/nl/authentication) in de `x-api-key`-header. Gebruik het [Find Single Phone](/nl/api-reference/phone/find-single)-endpoint om één telefoonnummer te vinden.

Elke zoekopdracht moet een van de volgende bevatten:

* De URL van iemands **LinkedIn-profiel** (bijv. `https://www.linkedin.com/in/michael-scott/`)
* De combinatie van individuele informatie: `firstname` + `lastname` + (`company_name` of `company_domain`)

De **LinkedIn-URL heeft altijd voorrang** op de individuele informatie als beide aanwezig zijn.

## Request Body

<ParamField body="searches" type="array of objects" required>
  Zoekpayloads waarvoor de bijbehorende telefoonnummers moeten worden gevonden.

  <Expandable title="eigenschappen van zoekobject">
    **Optie 1 (Aanbevolen):**

    <ParamField body="linkedin_url" type="string">
      URL van het LinkedIn-profiel
    </ParamField>

    **Optie 2:**

    <ParamField body="firstname" type="string">
      Voornaam
    </ParamField>

    <ParamField body="lastname" type="string">
      Achternaam
    </ParamField>

    <ParamField body="company_domain" type="string">
      Bedrijfsdomein
    </ParamField>

    <ParamField body="company_name" type="string">
      Bedrijfsnaam (alternatief voor `company_domain`)
    </ParamField>

    **Aanvullend:**

    <ParamField body="custom" type="string">
      Een aangepaste waarde om naar een interne ID te verwijzen. Deze is aanwezig in de resultaten.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="custom" type="object">
  Aangepaste parameters die worden teruggegeven in de GET-respons en in de webhook-notificatie.
</ParamField>

<ParamField body="settings" type="object">
  Instellingen die betrekking hebben op de volledige bulkzoekopdracht.

  <Expandable title="eigenschappen van settings">
    <ParamField body="webhook" type="string">
      Een URL die via een HTTP POST-verzoek wordt genotificeerd zodra de bulkzoekopdracht is voltooid. Zie [Hoe webhooks werken](/nl/how-webhooks-work).
    </ParamField>
  </Expandable>
</ParamField>

## Response

### 201 — Bulkzoekopdracht aangemaakt

<ResponseField name="message" type="string">
  Bevestigingsbericht
</ResponseField>

<ResponseField name="id" type="string">
  Unieke identifier voor deze batch. Gebruik deze om resultaten op te halen via het [GET-endpoint](/nl/api-reference/phone/get-bulk-results).
</ResponseField>

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

<ResponseField name="estimated_duration" type="number">
  Geschatte verwerkingstijd in minuten (niet gegarandeerd)
</ResponseField>

<ResponseField name="credits" type="object">
  Uitsplitsing van credits

  <Expandable title="eigenschappen van credits">
    <ResponseField name="amount" type="number">
      Verbruikte credits
    </ResponseField>

    <ResponseField name="source" type="string">
      Creditbron: `sub` (abonnement) of `paygo` (pay-as-you-go)
    </ResponseField>

    <ResponseField name="split" type="object">
      Uitsplitsing tussen abonnements- en pay-as-you-go-credits (`fromSub`, `fromPaygo`)
    </ResponseField>
  </Expandable>
</ResponseField>

### Foutresponsen

| Code    | Message                                                       |
| ------- | ------------------------------------------------------------- |
| **400** | `At least 1 phone search must be present in the payload`      |
| **400** | `Missing payload`                                             |
| **400** | `Too many searches. Limit is currently at 3000 per batch.`    |
| **401** | `This apikey is not valid`                                    |
| **401** | `This account is not allowed to use the phone search feature` |
| **402** | `Insufficient credits`                                        |

<Note>
  Wanneer er onvoldoende credits zijn, retourneert het bulk-endpoint HTTP **402** met een body in de vorm `{ "message": "..." }`. Zie [Foutafhandeling](/nl/error-handling) voor de volledige lijst met statuscodes en responsformaten.
</Note>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.enrow.io/phone/bulk \
    --header 'Content-Type: application/json' \
    --header 'x-api-key: YOUR_API_KEY' \
    --data '{
      "searches": [
        {
          "linkedin_url": "https://www.linkedin.com/in/michael-scott"
        },
        {
          "linkedin_url": "https://www.linkedin.com/in/dwight-schrute"
        }
      ],
      "settings": {
        "webhook": "https://your-app.com/webhooks/enrow/phone"
      }
    }'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.enrow.io/phone/bulk', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'x-api-key': process.env.ENROW_API_KEY
    },
    body: JSON.stringify({
      searches: [
        { linkedin_url: 'https://www.linkedin.com/in/michael-scott' },
        { linkedin_url: 'https://www.linkedin.com/in/dwight-schrute' }
      ],
      settings: {
        webhook: 'https://your-app.com/webhooks/enrow/phone'
      }
    })
  });

  const data = await response.json();
  console.log(`Batch ID: ${data.id}`);
  ```

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

  url = "https://api.enrow.io/phone/bulk"
  headers = {
      "Content-Type": "application/json",
      "x-api-key": os.getenv("ENROW_API_KEY")
  }
  payload = {
      "searches": [
          {"linkedin_url": "https://www.linkedin.com/in/michael-scott"},
          {"linkedin_url": "https://www.linkedin.com/in/dwight-schrute"}
      ],
      "settings": {
          "webhook": "https://your-app.com/webhooks/enrow/phone"
      }
  }

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

<ResponseExample>
  ```json Success Response theme={null}
  {
    "credits_used": 80,
    "estimated_duration": 1,
    "id": "e3b61122-d6a6-4ea7-b331-9b734682a76a",
    "message": "Bulk search operating",
    "credits": {
      "amount": 80,
      "source": "sub",
      "split": {
        "fromPaygo": 0,
        "fromSub": 80
      }
    }
  }
  ```

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

## Volgende stappen

<CardGroup cols={2}>
  <Card title="Bulkresultaten ophalen" icon="inbox" href="/nl/api-reference/phone/get-bulk-results">
    Haal de gevonden telefoonnummers op met de batch-`id`.
  </Card>

  <Card title="Eén telefoonnummer vinden" icon="phone" href="/nl/api-reference/phone/find-single">
    Voer één telefoonzoekopdracht uit op basis van een LinkedIn-URL of naam en bedrijf.
  </Card>

  <Card title="Webhooks" icon="bell" href="/nl/how-webhooks-work">
    Word automatisch genotificeerd wanneer een bulkzoekopdracht is voltooid.
  </Card>

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