Skip to main content

Prerequisites

Before you begin, make sure you have:
  • A Verisoul API key (available from the Dashboard)
  • 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 2: Submit Phone Numbers

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

Submit Phone

Submit a single number with optional identity claims. Returns a request_id for webhook correlation.

Submit Phone Batch

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. See Modes. Each request is billed, and pro costs more than standard. In a batch, an entry’s own mode overrides the top-level one.
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.
  • 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.
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 guide for the full algorithm, code examples in Node.js, Python, Go, and C#, and troubleshooting tips.
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 for the full payload structure and field definitions.

Latency and Delivery Guarantees

Single requests: 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 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

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.
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.
All Verisoul webhooks are sent from:
You can allowlist this IP if your endpoint is behind a firewall. You should still verify webhook signatures regardless.
Results are delivered by webhook. If webhook_configured is false, Verisoul still processes the number, but no webhook is sent for it.