Skip to content
REST API and MCP · Phone validation

Validate a phone number
before the next step.

One API call returns validity, carrier, line type, country, and porting status. Connect your app or AI agent with one key and a prepaid credit balance.

No card requiredNo subscriptionPurchased credits never expire
Phone lookupSynthetic sample · no credits
POST/api/v1/validate_phone{"phone":"+12025550147"}
Carrier
Example Wireless
Line type
Mobile
Country
US
Ported
No
10 free lookupsWhen you create an account
1 creditPer fresh phone validation
7 day cacheRepeat lookups use zero credits
$0 on 4xx errorsRejected requests are never charged
SEE THE DATA SHAPE

A closer look at
the number behind the contact.

Explore a synthetic phone validation result. Nothing is sent to a provider, no number is called, and no credits are spent.

Phone validationINTERACTIVE SAMPLE

Inspect an example.

Choose a scenario or enter one of the reserved example numbers.

Synthetic examples only. This is not a live validation tool.

Try:

A number check is not an identity check. This result does not identify the owner or establish consent to contact.

Valid numberILLUSTRATIVE RESPONSE
Line type
Mobile
Carrier
Example Wireless
Country
US
Number ported
No
{
  "result": {
    "valid": true,
    "e164": "+12025550147",
    "line_type": "mobile",
    "carrier": "Example Wireless"
  }
}

No live request made · No credit charge

PHONE INTELLIGENCE

Know the number
before the next step.

Validity, carrier, line type, country, and porting status in one structured response, from one REST endpoint or MCP tool.

SAMPLE RESPONSE200 OK
{
"valid": true,
"line_type": "mobile",
"carrier": "Example Wireless",
"country_code": "US"
}
Phone number+1 (202) 555-0147Valid · Mobile

Phone intelligence

Understand a number before it enters your next workflow.

  • Number validity and E.164 format
  • Carrier and line type
  • Country and porting status
  • One credit per fresh lookup
REST API and MCPTry a number
Coming next
  • Email verification
  • IP intelligence
  • Phone spam check
  • Fraud check
  • Trust score
See what is coming

From a number to your next decision.

Three steps from signup to a decision in your code.

  1. 1

    Create a free account

    Sign up to get a server API key and 10 free lookups. The key is shown once.

    Authorization: Bearer sk_live_…
  2. 2

    Send a lookup

    One fresh lookup uses one credit. Repeats within seven days come from cache for zero credits.

    POST /api/v1/validate_phone
    {"phone":"+12025550147"}
  3. 3

    Branch on the result

    Read validity, carrier, line type, and porting, then continue, verify, or review.

    if (data.result.line_type === "voip") {
      requireExtraVerification();
    }
BUILT TO INTEGRATE

Contact checks your code can work with.

Validate phone numbers through a consistent REST response. Get carrier, line type, and validity without building another vendor integration.

Predictable input

Send a phone number. The API normalizes it to E.164 format.

Consistent output

Read classification, result fields, and recommendations from one response envelope.

Visible credit cost

One credit per fresh phone lookup. Cached responses consume zero additional credits.

Keep your API key on the server. The examples use a placeholder, never a real credential.

Get your API key
REQUESTPOST /api/v1/validate_phone
curl https://app.lookuprail.com/api/v1/validate_phone \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+12025550147"}'
SAMPLE RESPONSE · EXCERPT200 OK
{
"success": true,
"data": {
"result": {
"valid": true,
"line_type": "mobile",
"carrier": "Example Wireless"
}
}
}

Synthetic data. Selecting a language does not execute a request.

The next integration:
your AI agent.

Phone validation is also available as an MCP server. Connect Claude, Cursor, or any MCP client with your API key.

One connection

Point your MCP client at https://app.lookuprail.com/api/mcp and authenticate with your API key.

Available now

One credit balance

Agent calls use the same credits and the same seven day cache as the REST API.

Available now

Focused tools

The validate_phone tool returns the same fields as the REST endpoint and supports forced fresh lookups.

Available now
Read the MCP setup guide
CONTEXT BEFORE ACTION

Better contact signals.
More informed workflows.

Useful wherever a number becomes the start of a call, an account, or an automated decision.

Before your next call

Catch invalid numbers and see whether a line is mobile, landline, or VoIP before you dial. Consent checks remain a separate responsibility.

Inspect a sample
"valid": false,
"line_type": "unknown"

Before you trust a contact

Use line type, carrier, and porting to decide when to ask for extra verification. A valid number is not a verified identity.

Inspect a sample
"line_type": "voip",
"ported": true

Inside your application

Branch on one consistent response from your server, or let an AI agent call the same check through MCP.

Inspect a sample
"recommendations": {
  "primary_action": "VERIFY"
}

Know what the data tells you.
And where it stops.

Good decisions start with clear boundaries. Number intelligence adds context; it does not replace identity, consent, or possession verification.

What phone validation provides

Number validity and E.164 normalization
Carrier, line type, and country information
Porting status when provided by the source
Structured results your software can use
See the response format

What requires a separate check

Who owns the number or placed a call
Whether a person consented to be contacted
Whether the number will answer right now
Whether a valid contact is a real customer
Read the limitations

Where the data comes from

Each fresh lookup queries a carrier data provider at request time. Carrier and porting fields reflect that provider's numbering records.

How fresh it is

Results are cached for seven days. Send bypass_cache: true when you need a fresh lookup, which uses one credit.

When data is missing

If the provider has no carrier name, carrier comes back as null instead of a guess. ported is true only when the provider confirms a port, so false also covers numbers with no porting data.

Response fields in the docs
FAQ

The details, explained.

Answers about the data, the integration, and how credits work.

What does LookupRail do?
LookupRail checks phone numbers through a REST API and an MCP server. Each lookup returns validity, carrier, line type, country, and porting status in one structured response.
Will this identify who called me?
No. Phone validation reports number validity, carrier, line type, country, and porting status. It does not return an owner name, home address, or email, and cannot establish who actually placed a call.
How do credits work?
A fresh phone lookup uses one credit. Results are cached for seven days, and cache hits use zero additional credits. Prepaid packs start at $49 for 5,000 credits, and new accounts get 10 free credits.
Do I need a subscription?
No. Credits are sold as one time prepaid packs through Paddle, our merchant of record. Purchased credits do not expire while your account remains in good standing.
Am I charged for rejected requests?
No. Requests rejected with a 4xx error, such as an invalid number or a missing field, use zero credits. Every response reports the credits used and the credits remaining.
Does a valid number mean the person can be reached?
No. Validity is a numbering signal, not proof that someone will answer, consented to contact, or controls the number. Add a separate possession verification step when your workflow needs it.
Can I connect Claude, Cursor, or an automation tool?
Yes. LookupRail runs an MCP server at https://app.lookuprail.com/api/mcp. Add it to Claude, Cursor, or any MCP client with your API key; agent calls use the same credits and cache as the REST API.
Where do I keep my API key?
On your server. Send it as a bearer token in the Authorization header and never ship it in browser or mobile code. You can create and revoke keys in the dashboard.
Is the sample tool a live lookup?
No. The homepage uses reserved example numbers and synthetic results. It does not send calls or texts, contact a data provider, or spend credits. The sample is here so you can inspect the format before you sign up.

Check the number. Then take the next step.

Start with 10 free lookups.

No card required. Credit packs start at $49 for 5,000 lookups when you need more, billed through Paddle.