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

# Find Bulk Phones

> Find multiple phone numbers in a single batch (up to 3,000 searches) from LinkedIn URLs or name and company, with webhook notifications

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

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

Run multiple phone searches in a single request. Up to 3,000 searches per batch. Authenticate every request with your [API key](/authentication) in the `x-api-key` header. To find a single phone number, use the [Find Single Phone](/api-reference/phone/find-single) endpoint.

Each search needs to contain either:

* The URL of a person's **LinkedIn profile** (e.g., `https://www.linkedin.com/in/michael-scott/`)
* The combination of individual information: `firstname` + `lastname` + (`company_name` or `company_domain`)

The **LinkedIn URL will always prevail** on the individual information if both are present.

## Request Body

<ParamField body="searches" type="array of objects" required>
  Search payloads for which to find corresponding phone numbers.

  <Expandable title="search object properties">
    **Option 1 (Recommended):**

    <ParamField body="linkedin_url" type="string">
      LinkedIn profile URL
    </ParamField>

    **Option 2:**

    <ParamField body="firstname" type="string">
      First name
    </ParamField>

    <ParamField body="lastname" type="string">
      Last name
    </ParamField>

    <ParamField body="company_domain" type="string">
      Company domain
    </ParamField>

    <ParamField body="company_name" type="string">
      Company name (alternative to `company_domain`)
    </ParamField>

    **Additional:**

    <ParamField body="custom" type="string">
      A custom value to reference an internal ID. It will be present in the results.
    </ParamField>
  </Expandable>
</ParamField>

<ParamField body="custom" type="object">
  Custom params that will be returned in the GET response and in the webhook notification.
</ParamField>

<ParamField body="settings" type="object">
  Settings relative to the whole bulk search.

  <Expandable title="settings properties">
    <ParamField body="webhook" type="string">
      A URL that will be notified through an HTTP POST request once the bulk search is finished. See [How Webhooks Work](/how-webhooks-work).
    </ParamField>
  </Expandable>
</ParamField>

## Response

### 201 — Bulk search created

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

<ResponseField name="id" type="string">
  Unique identifier for this batch. Use this to retrieve results via the [GET endpoint](/api-reference/phone/get-bulk-results).
</ResponseField>

<ResponseField name="credits_used" type="number">
  Total credits consumed. See [Credits & billing](/credits-billing) for per-endpoint costs.
</ResponseField>

<ResponseField name="estimated_duration" type="number">
  Estimated processing time in minutes (not guaranteed)
</ResponseField>

<ResponseField name="credits" type="object">
  Credit breakdown

  <Expandable title="credits properties">
    <ResponseField name="amount" type="number">
      Credits consumed
    </ResponseField>

    <ResponseField name="source" type="string">
      Credit source: `sub` (subscription) or `paygo` (pay-as-you-go)
    </ResponseField>

    <ResponseField name="split" type="object">
      Breakdown between subscription and pay-as-you-go credits (`fromSub`, `fromPaygo`)
    </ResponseField>
  </Expandable>
</ResponseField>

### Error Responses

| 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>
  When credits are insufficient, the bulk endpoint returns HTTP **402** with a body of the form `{ "message": "..." }`. See [Error handling](/error-handling) for the full list of status codes and response formats.
</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>

## Next steps

<CardGroup cols={2}>
  <Card title="Get bulk results" icon="inbox" href="/api-reference/phone/get-bulk-results">
    Retrieve the found phone numbers using the batch `id`.
  </Card>

  <Card title="Find a single phone" icon="phone" href="/api-reference/phone/find-single">
    Run a single phone search from a LinkedIn URL or name and company.
  </Card>

  <Card title="Webhooks" icon="bell" href="/how-webhooks-work">
    Get notified automatically when a bulk search completes.
  </Card>

  <Card title="Credits & billing" icon="coins" href="/credits-billing">
    See how credits are consumed for each endpoint.
  </Card>
</CardGroup>
