> ## 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 Single Phone

> Find a single phone number from a LinkedIn URL or name and company with the Phone Finder API

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

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

Run an asynchronous search to find a phone number and the associated country. Authenticate every request with your [API key](/authentication) in the `x-api-key` header.

The 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, as it is the best way to discriminate a single person and avoid homonym-related issues.

## Request Body

**Option 1 (Recommended):**

<ParamField body="linkedin_url" type="string">
  LinkedIn profile URL of the person.

  **Note**: Takes precedence over individual information if both are provided.
</ParamField>

**Option 2:**

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

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

<ParamField body="company_domain" type="string">
  Company domain (e.g., `"dundermifflin.com"`)
</ParamField>

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

**Additional:**

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

<ParamField body="settings" type="object">
  Settings related to this search.

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

## Response

### 201 — Single search created

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

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

<ResponseField name="credits_used" type="number">
  Number of credits consumed (50 by default; may vary by plan). See [Credits & billing](/credits-billing) for per-endpoint costs.
</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), `paygo` (pay-as-you-go), or `mixed`
    </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** | `Invalid linkedin_url format`                                 |
| **401** | `No apikey found in the x-api-key headers`                    |
| **401** | `This apikey is not valid`                                    |
| **401** | `This account is not allowed to use the phone search feature` |
| **402** | `Insufficient credits`                                        |

On insufficient credits (**402**), the response body is `{ "reason": "...", "success": false }`. See [Error handling](/error-handling) for the full list of status codes and response formats.

<RequestExample>
  ```bash cURL — LinkedIn URL theme={null}
  curl --request POST \
    --url https://api.enrow.io/phone/single \
    --header 'Content-Type: application/json' \
    --header 'x-api-key: YOUR_API_KEY' \
    --data '{
      "linkedin_url": "https://www.linkedin.com/in/michael-scott/",
      "custom": "#u84hde941Jdx"
    }'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.enrow.io/phone/single', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
      'x-api-key': process.env.ENROW_API_KEY
    },
    body: JSON.stringify({
      linkedin_url: 'https://www.linkedin.com/in/michael-scott/',
      custom: '#u84hde941Jdx'
    })
  });

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

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

  url = "https://api.enrow.io/phone/single"
  headers = {
      "Content-Type": "application/json",
      "x-api-key": os.getenv("ENROW_API_KEY")
  }
  payload = {
      "linkedin_url": "https://www.linkedin.com/in/michael-scott/",
      "custom": "#u84hde941Jdx"
  }

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

<ResponseExample>
  ```json Success Response theme={null}
  {
    "credits_used": 40,
    "id": "94cbc13b-7d77-4f41-83f0-60106daa7182",
    "message": "Single search operating",
    "credits": {
      "amount": 40,
      "source": "sub",
      "split": { "fromPaygo": 0, "fromSub": 40 }
    }
  }
  ```

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

## Next steps

<CardGroup cols={2}>
  <Card title="Get the result" icon="inbox" href="/api-reference/phone/get-single-result">
    Retrieve the found phone number using the search `id`.
  </Card>

  <Card title="Find phones in bulk" icon="layer-group" href="/api-reference/phone/find-bulk">
    Run multiple phone searches in a single request.
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    How to pass your API key in the x-api-key header.
  </Card>

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