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

# Business Verify ID

> Determines whether a phone number is associated with a residential or business line.

## Request

### Headers

<ParamField header="loginId" type="string" required>
  Your API Key (LoginId from your DNCScrub account)
</ParamField>

### Query Parameters

<ParamField query="phone" type="string" required>
  10-digit phone number to check
</ParamField>

## Output parameters

| Field           | Description                                                 |
| --------------- | ----------------------------------------------------------- |
| `Phone`         | Ten digit phone number that was queried. Example 5039367188 |
| `ResOrBusiness` | One character code indicating status                        |

### ResOrBusiness values

| Value | Description                                             |
| ----- | ------------------------------------------------------- |
| `R`   | Residential                                             |
| `B`   | Business                                                |
| `U`   | Unknown. The record type was not able to be determined. |

## Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl --location --request GET \
    'https://dataapi.dncscrub.com/v1.4/Data/ResOrBusiness
      ?phone=7072842774' \
    --header 'loginId: YOUR_API_KEY'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://dataapi.dncscrub.com/v1.4/Data/ResOrBusiness?phone=7072842774',
    {
      method: 'GET',
      headers: {
        'loginId': 'YOUR_API_KEY'
      }
    }
  );
  const data = await response.json();
  console.log(data);
  ```

  ```csharp C# theme={null}
  using (var client = new HttpClient())
  {
      client.DefaultRequestHeaders.Add("loginId", "YOUR_API_KEY");

      var response = await client.GetAsync(
          "https://dataapi.dncscrub.com/v1.4/Data/ResOrBusiness?phone=7072842774"
      );

      var result = await response.Content.ReadAsStringAsync();
      Console.WriteLine(result);
  }
  ```
</CodeGroup>

<ResponseExample>
  ```json Response theme={null}
  {
    "Phone": "7072842774",
    "ResOrBusiness": "B"
  }
  ```
</ResponseExample>
