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

# IPQS: Batch Phone Validate

> Screen up to 100 known phone numbers for fraud and DNC risk after primary phone validation. Deepline runs at most 5 IPQS checks concurrently.

Screen up to 100 known phone numbers for fraud and DNC risk after primary phone validation.

> [!NOTE]
>
> Tool ID: `ipqs_batch_phone_validate`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'ipqs_batch_phone_validate',
  {
    "phone_batch": [
      {
        "phone": "+14155550123"
      }
    ]
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute ipqs_batch_phone_validate --input '{
  "phone_batch": [
    {
      "phone": "+14155550123"
    }
  ]
}' --json
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe ipqs_batch_phone_validate --json` for the complete live contract.

## Input reference

Validate up to 100 phone numbers in one synthetic batch. Deepline runs at most 5 IPQS checks concurrently, so larger batches can be slow. 0.070 Deepline credits per phone.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.phone_batch` | `array` | Yes | — | Array of phone objects to validate in batch (1-100). Deepline runs at most 5 IPQS checks concurrently, so larger batches can be slow. Minimum items: 1. Maximum items: 100. |
| `payload.country` | `array` | No | — | ISO-3166 country codes to bias lookup (e.g. \["US","CA"]). |
| `payload.strictness` | `0 \| 1 \| 2` | No | — | Strictness level 0-2. Higher = more false positives but catches more fraud. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Validate up to 100 phone numbers in one synthetic batch. Deepline runs at most 5 IPQS checks concurrently, so larger batches can be slow. 0.070 Deepline credits per phone.",
    "properties": {
      "phone_batch": {
        "type": "array",
        "description": "Array of phone objects to validate in batch (1-100). Deepline runs at most 5 IPQS checks concurrently, so larger batches can be slow.",
        "minItems": 1,
        "maxItems": 100,
        "items": {
          "type": "object",
          "properties": {
            "phone": {
              "type": "string",
              "description": "Phone number to validate.",
              "minLength": 1
            },
            "contact_name": {
              "type": "string",
              "description": "Optional contact name for context."
            }
          },
          "required": [
            "phone"
          ],
          "additionalProperties": false
        }
      },
      "country": {
        "type": "array",
        "description": "ISO-3166 country codes to bias lookup (e.g. [\"US\",\"CA\"]).",
        "items": {
          "type": "string",
          "minLength": 1
        }
      },
      "strictness": {
        "description": "Strictness level 0-2. Higher = more false positives but catches more fraud.",
        "anyOf": [
          {
            "type": "number",
            "const": 0
          },
          {
            "type": "number",
            "const": 1
          },
          {
            "type": "number",
            "const": 2
          }
        ]
      }
    },
    "required": [
      "phone_batch"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.status` | `string` | Yes | — | — |
| `result.result` | `object` | Yes | — | — |
| `result.result.data` | `object` | Yes | — | — |
| `result.result.data.phone_batch` | `array` | Yes | — | — |
| `result.result.data.phone_batch[].valid` | `boolean` | Yes | — | — |
| `result.result.data.phone_batch[].line_type` | `string` | Yes | — | — |
| `result.result.data.phone_batch[].carrier` | `string` | Yes | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "properties": {
      "status": {
        "type": "string"
      },
      "result": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "phone_batch": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "valid": {
                          "type": "boolean"
                        },
                        "line_type": {
                          "type": "string"
                        },
                        "carrier": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "valid",
                        "line_type",
                        "carrier"
                      ],
                      "additionalProperties": true
                    },
                    {
                      "type": "object",
                      "properties": {
                        "valid": {
                          "type": "boolean"
                        },
                        "line_type": {
                          "type": "null"
                        },
                        "carrier": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "valid",
                        "line_type",
                        "carrier"
                      ],
                      "additionalProperties": true
                    }
                  ]
                }
              }
            },
            "required": [
              "phone_batch"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "status",
      "result"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Deepline cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.07` per pricing unit.

## Related documentation

* [IPQS provider guide](https://deepline.com/docs/providers/ipqs/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.