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

# Integration

> How to integrate the Phone Intelligence API: configure webhooks, submit numbers, and process results

## Prerequisites

Before you begin, make sure you have:

* A **Verisoul API key** (available from the [Dashboard](https://dashboard.verisoul.ai))
* Phone Intelligence enabled for your project. Contact us to turn it on.

***

## Step 1: Configure Your Webhook Endpoint

Results are delivered by webhook. To configure one, go to **Settings > Webhooks** in the Dashboard and add a new endpoint. Select the **Phone Intel Completed** event type, enter your target URL, and click **Create**.

Your webhook endpoint must:

* Accept **POST** requests with **JSON** payloads
* Respond with a **2xx** HTTP status code on success
* Be **idempotent** (Verisoul may retry delivery)
* **Verify webhook signatures** for security (see [Step 3](#step-3-receive-and-verify-webhook-results))

***

## Step 2: Submit Phone Numbers

Submit numbers to the `POST /v1/phone` endpoint. You can submit a single number or a batch.

> [card] [Submit Phone](https://docs.verisoul.ai/api-reference/phone-intelligence/post.md)
>
> Submit a single number with optional identity claims. Returns a `request_id` for webhook correlation.

> [card] [Submit Phone Batch](https://docs.verisoul.ai/api-reference/phone-intelligence/post-batch.md)
>
> Submit up to 1,000 numbers per request with per-number claims. Returns a `batch_id` for grouping webhook results and for growing the batch across requests.

The API responds immediately with a `request_id` (single) or `batch_id` (batch), plus a `webhook_configured` boolean that shows whether a webhook subscription is active for your project. The response confirms the number was accepted for processing. The analysis results arrive by webhook.

Every request sets a required `mode`: `standard`, or `pro` to add porting history, breach intelligence, and [Identity Intelligence](https://docs.verisoul.ai/phone-intelligence/identity-intelligence.md). See [Modes](https://docs.verisoul.ai/phone-intelligence/overview.md#modes). Each request is billed, and `pro` costs more than `standard`. In a batch, an entry's own `mode` overrides the top-level one.

```json theme={null}
{
  "phone": "+14155550142",
  "mode": "standard",
  "claims": { "country": "US" }
}
```

Send numbers in E.164 format, with the `+` and country code. A number without a country code is read as a number in `claims.country`. A number that cannot be parsed is still accepted, and its webhook returns `decision: "high_risk"` with the `phone_invalid` risk signal.

### Claims and metadata

Each number can carry `claims` and `metadata`. In a batch, set them on each entry in `phones`.

* `claims.country` is compared with the number's country in every request. In `pro` mode it is also compared with the countries in the number's breach history.
* `claims.name` and `claims.email` are matched in `pro` mode, which adds [Identity Intelligence](https://docs.verisoul.ai/phone-intelligence/identity-intelligence.md).
* `claims.address` and `metadata` (`customer_tags`, `external_id`) are returned unchanged in the webhook's `data.input`.

### Building a batch across requests

Each batch request carries at most 1,000 numbers. To run a larger list as one batch, send the first request as usual, then pass the returned `batch_id` in each request that follows. Those numbers join the same batch, and each response reports the cumulative `total_count` and the batch's current `status`. A batch holds up to 100,000 numbers.

```json theme={null}
{
  "batch_id": "bbc73b22-bd47-48e4-b173-c9ca085efb2a",
  "mode": "standard",
  "phones": [
    { "phone": "+14155550142" },
    { "phone": "+442079460958", "claims": { "country": "GB" } }
  ]
}
```

A batch accepts new numbers for 24 hours after its most recent request. After that window, a request carrying its `batch_id` returns a `400`, as does a `batch_id` from another project or a request that would take the batch past 100,000 numbers. `batch_name` comes from the first request and is ignored afterwards. Each number has 24 hours to complete from the request that submitted it; any still pending after that come back with `error.code: "timed_out"`.

### Repeat requests

A number submitted again with the same claims and `mode` returns the earlier result from your project, and its webhook is sent right away.

***

## Step 3: Receive and Verify Webhook Results

Once analysis completes, Verisoul delivers a webhook to your configured endpoint with the event type `phone.intelligence.completed`.

### Webhook Signature Verification

All webhook requests include an `x-signature` header containing an HMAC-SHA256 signature over the timestamp, selected headers, and the raw request body.

See the **[Webhook Signature Verification](https://docs.verisoul.ai/phone-intelligence/webhook-signature-verification.md)** guide for the full algorithm, code examples in Node.js, Python, Go, and C#, and troubleshooting tips.

> [!WARNING]
>
> Always verify the signature before processing the payload. Use the **raw request body** (the bytes as received, before parsing) and enforce a timestamp tolerance of ±5 minutes.

### Processing the Payload

1. Verify the webhook signature
2. Check the `status` field: either `success` or `error`
3. On success, use `data.result.decision` and `data.result.risk_score` for your business logic
4. On error, inspect the `error` object for details

See the [Webhook Payload Reference](https://docs.verisoul.ai/phone-intelligence/webhook-reference.md) for the full payload structure and field definitions.

### Latency and Delivery Guarantees

**Single requests:**

| Scenario | Typical latency |
| - | - |
| Unparseable number, or a repeat of an earlier request | Under **1 second** |
| New number in `standard` mode | A few seconds |
| New number in `pro` mode | **10–15 seconds** |

Verisoul guarantees that the webhook for a single request will be delivered within **60 seconds** of submission. If analysis has not completed by then, a webhook is sent with `status: "error"` and `error.code: "timed_out"`.

**Batch requests:**

Batch submissions are processed at a default throughput of approximately **250 numbers per minute** per project, or about 15,000 per hour. A batch of 1,000 numbers is fully processed and all of its webhooks delivered within about **4 minutes** of submission. A full batch of 100,000 numbers takes about **7 hours**.

Each number in the batch triggers its own webhook as soon as its analysis completes. You can act on results before the batch finishes, and you can submit additional batches without waiting for earlier ones to drain.

If your use case requires higher throughput, [contact us](mailto:support@verisoul.ai) and we can raise your project's batch processing rate.

Batch numbers are processed at a lower priority than single requests, so batch processing leaves single requests on their usual timing.

***

## FAQ

> [accordion] What is the webhook retry policy?
>
> If your endpoint does not return a 2xx response, Verisoul retries delivery several times over a few minutes. Webhooks may be delivered more than once, so your endpoint must be idempotent.

> [accordion] What is my rate limit?
>
> Calls to `/v1/phone` count toward your API key's rate limit. Phone Intelligence also has its own limits: **300 numbers per minute** for single requests and **100,000 numbers per hour** for batches. These limits cap how many numbers you can submit. Batch numbers are then processed at about 250 per minute. Requests over a limit return `429`. If you need higher limits, contact Verisoul.

> [accordion] What IP address do webhooks come from?
>
> All Verisoul webhooks are sent from:
>
> ```
> 34.71.198.163
> ```
>
> You can allowlist this IP if your endpoint is behind a firewall. You should still verify webhook signatures regardless.

> [accordion] Can I get results without a webhook?
>
> Results are delivered by webhook. If `webhook_configured` is `false`, Verisoul still processes the number, but no webhook is sent for it.


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