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

# Phone

> Phone intelligence on the account in Authenticate Session

## Overview

> [!TIP]
>
> Looking for the standalone Phone Intelligence API? See [Phone Intelligence API](https://docs.verisoul.ai/phone-intelligence/overview.md) for integration, webhooks, batch support, and identity intelligence.

[Authenticate Session](https://docs.verisoul.ai/api-reference/session/authenticate.md) can score the account's phone number in the same call. Send the number in `account.phone` and choose a mode in `account.phone_mode`:

```json theme={null}
{
  "session_id": "7fd9d3e5-a5d3-4e47-9c2a-69fd8f0e0bd7",
  "account": {
    "id": "john-doe",
    "email": "johndoe.example@gmail.com",
    "first_name": "John",
    "last_name": "Doe",
    "phone": "+12125550143",
    "phone_mode": "pro"
  }
}
```

The response then carries a `phone` block on `account`, beside `email`.

Every call that sends `account.phone` checks that the number is valid, with or without `phone_mode`, the same way `email` is checked. Without `phone_mode` the block holds only `data.phone.e164` and `data.phone.valid`, nothing is scored, and the call is not billed for phone intelligence.

On [Predict User](https://docs.verisoul.ai/api-reference/v1/predict/user.md) (v1 beta), send `user.phone` as an object with the mode inside it. The result comes back in `user.phone`, in the same shape as the block below.

```json theme={null}
{
  "session": { "id": "7fd9d3e5-a5d3-4e47-9c2a-69fd8f0e0bd7" },
  "user": {
    "id": "john-doe",
    "email": "johndoe.example@gmail.com",
    "first_name": "John",
    "last_name": "Doe",
    "phone": { "value": "+12125550143", "mode": "pro" }
  }
}
```

> [!NOTE]
>
> Phone intelligence in Authenticate Session is enabled per project. Contact us to turn it on.

> [!WARNING]
>
> Phone intelligence is billed per run, and the price depends on the mode. `pro` costs more than `standard` because it adds the deeper identity checks. Send `phone_mode` only on the calls where you want the number scored.

Send the number in E.164 format, with the `+` and country code. A number without a country code is read as a number in the session IP's country.

### Invalid numbers

A number that cannot be parsed still returns the phone block, with `data.phone.e164: null` and `data.phone.valid: false`. With a `phone_mode`, it also returns `phone_risk: 1`, `decision: "high_risk"`, and the `phone_invalid` risk signal, as the [webhook](https://docs.verisoul.ai/phone-intelligence/webhook-reference.md#unparseable-numbers) does.

## Modes

| | `standard` | `pro` |
| - | - | - |
| **What runs** | Line type and carrier, number age from public numbering plans (the block the number's area code and exchange belong to), public receive-SMS lists for disposable numbers, and the session IP's location against the number's country | Everything in `standard`, plus a full [Phone Intelligence API](https://docs.verisoul.ai/phone-intelligence/overview.md) `pro` run: porting history, breach intelligence, and [Identity Intelligence](https://docs.verisoul.ai/phone-intelligence/identity-intelligence.md) |
| **When results arrive** | In the authenticate response | `standard` results in the response; the full run finishes after the call returns |
| **Added fields** | | `history`, `breach_intelligence`, `identity_intelligence` |
| **Webhook** | None | `phone.intelligence.completed` |
| **Time added to the call** | At most 1.5 seconds | Same as `standard` |
| **Cost** | Billed per run | Billed per run at a higher price than `standard` |

### How `standard` works

1. Verisoul looks up the number's line type and carrier, dates its block from public numbering plans, checks public receive-SMS lists, and compares the session IP's location with the number's country.
2. The result is scored and returned on `account.phone` in the same response.

If the lookup fails or runs out of time, the response leaves out the phone block. The rest of the response returns as usual.

### How `pro` works

1. The first call runs `standard` and returns its result. It also starts a full Phone Intelligence API run on the number. The run uses the account's `first_name`, `last_name`, and `email`, and the session IP's country, as its claims.
2. While the run is in progress, `history`, `breach_intelligence`, and `identity_intelligence` are null.
3. When the run finishes, Verisoul sends the `phone.intelligence.completed` webhook. Its payload carries the `session_id` and `account_id` of the call that started it. See the [Webhook Payload Reference](https://docs.verisoul.ai/phone-intelligence/webhook-reference.md).
4. Later `pro` calls for the same number return the finished result. `history`, `breach_intelligence`, and `identity_intelligence` fill in, and `phone_risk` and the signals come from the full run.

Calls with the same number, name, email, and IP country share one `pro` run, so repeat calls reuse it and start no new run.

## Response

`scores` and `signals` hold the score and signals. `data` holds everything else in the [webhook](https://docs.verisoul.ai/phone-intelligence/webhook-reference.md) `data.result` object, with the same fields. The example below is a finished `pro` run, so every field has a value:

```json theme={null}
"phone": {
  "scores": {
    "phone_risk": -0.62
  },
  "signals": {
    "risk": [],
    "trust": [
      "phone_ported",
      "phone_low_risk_carrier",
      "phone_trusted_breach",
      "phone_long_breach_history",
      "phone_trusted_online_presence",
      "identity_name_match",
      "identity_email_match"
    ]
  },
  "data": {
    "decision": "high_trust",
    "phone": {
      "e164": "+12125550143",
      "country": "US",
      "valid": true,
      "line_type": "mobile",
      "disposable": false
    },
    "carrier": { "name": "Verizon", "mcc": "311", "mnc": "480" },
    "number_age": {
      "block_assigned_at": "2004-02-01",
      "block_age_years": 22.8,
      "first_seen_at": "2013-10-04"
    },
    "history": { "ported": true, "seen_countries": ["US"] },
    "breach_intelligence": {
      "breach_count": 3,
      "breach_list": [
        { "source": "Adobe", "breach_date": "2013-10-04", "trust_weight": "high", "country": "global", "industry": "software" },
        { "source": "Dropbox", "breach_date": "2016-08-31", "trust_weight": "moderate", "country": "global", "industry": "software" },
        { "source": "Ticketfly", "breach_date": "2018-05-31", "trust_weight": "moderate", "country": "US", "industry": "retail" }
      ]
    },
    "identity_intelligence": {
      "match_risk_score": -0.71,
      "online_accounts_count": 5,
      "online_accounts": ["google", "apple", "amazon", "whatsapp", "instagram"],
      "connected_names": ["John Doe"],
      "connected_emails": ["johndoe.example@gmail.com"],
      "claim_matches": { "name": "match", "email": "match", "country": "match" }
    }
  }
}
```

In `standard` mode, and while a `pro` run is in progress, `history`, `breach_intelligence`, `identity_intelligence`, and `number_age.first_seen_at` are null.

`phone_risk` ranges from **-1 to 1**:

* **-1** represents the most trustworthy numbers
* **1** represents the highest risk numbers

See [Signals & Scores](https://docs.verisoul.ai/phone-intelligence/signals.md) for the risk and trust signals.

| Field | Webhook field | Description |
| - | - | - |
| `scores.phone_risk` | `risk_score` | Phone risk score from -1 to 1 |
| `signals.risk` | `risk_signals` | Risk signals that fired |
| `signals.trust` | `trust_signals` | Trust signals that fired |
| `data.decision` | `decision` | `high_trust`, `trusted`, `moderate`, `risky`, or `high_risk` |
| `data.phone` | `phone` | The number: `e164`, `country`, `valid`, `line_type`, `disposable` |
| `data.carrier` | `carrier` | The carrier: `name`, `mcc`, `mnc` |
| `data.number_age` | `number_age` | `block_assigned_at`, `block_age_years`, and `first_seen_at` |
| `data.history` | `history` | Porting history and countries the number has been seen in |
| `data.breach_intelligence` | `breach_intelligence` | Data breaches the number appears in |
| `data.identity_intelligence` | `identity_intelligence` | Online accounts, names, and emails linked to the number, how they match the account, and `match_risk_score` |

See the [Webhook Payload Reference](https://docs.verisoul.ai/phone-intelligence/webhook-reference.md#field-reference) for each field.

What `data` holds depends on the mode:

| | No `phone_mode` | `standard` | `pro`, run in progress | `pro`, run finished |
| - | - | - | - | - |
| `phone.e164`, `phone.valid` | Set | Set | Set | Set |
| `scores`, `signals`, `decision` | Null score and decision, empty signals | From `standard` | From `standard` | From the `pro` run |
| Rest of `phone`, `carrier`, `number_age` | Null | From `standard`; `first_seen_at` is null | From `standard`; `first_seen_at` is null | From the `pro` run |
| `history`, `breach_intelligence`, `identity_intelligence` | Null | Null | Null | Filled |

On [Predict User](https://docs.verisoul.ai/api-reference/v1/predict/user.md), `user.phone` is always present. When the request has no `mode`, only `data.phone.e164` and `data.phone.valid` are set and everything else is null.


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