Phone Validation & SMS Verification API

Complete phone number solution: validate formats, detect countries, and send SMS verification codes. One API, unlimited possibilities.

Test API View Docs

✓ Free plan available  •  ✓ Instant API key  •  ✓ Production-ready  •  ✓ 99.9% uptime

Everything You Need for Phone Numbers

One powerful API for validation, formatting, and SMS verification

Phone Validation

Validate any phone number format from 200+ countries. Get instant results with country detection and line type identification.

🌍

Global Coverage

Supports all international formats. Automatically detects country codes and formats numbers to E.164 standard.

📱

SMS Verification

Send 6-digit verification codes via SMS using Twilio Verify. Perfect for 2FA, account verification, and secure logins.

Lightning Fast

Sub-100ms response times. Built on serverless infrastructure for maximum performance and reliability.

🔒

Secure & Reliable

Enterprise-grade security with API key authentication. 99.9% uptime SLA with automatic failover.

🔌

Easy Integration

Simple REST API that works with any language. Comprehensive documentation and code examples included.

Ready to Get Started?

Get your free API key in seconds. No credit card required. Start validating phone numbers and sending SMS codes today.

View Pricing

✓ 7 free requests  •  ✓ Instant setup  •  ✓ No credit card

API Documentation

Complete API reference with examples. All endpoints require your API key in the x-api-key header.

Base URL

https://phone-validation-api.vercel.app

All requests require the x-api-key header with your API key.

GET

/api/validate

Validate and format phone numbers. Returns validation status, formatted number, country code, and line type.

Query Parameters
  • phone (required) - Phone number to validate
  • country (optional) - Default country code (defaults to 'US')
Response
{ "valid": true, "number": "+12345678901", "country": "US", "type": "mobile" }
Example: Node.js
const axios = require('axios'); const response = await axios.get( 'https://phone-validation-api.vercel.app/api/validate', { params: { phone: '+1234567890', country: 'US' }, headers: { 'x-api-key': 'YOUR_API_KEY' } } ); console.log(response.data);
Example: cURL
curl -X GET "https://phone-validation-api.vercel.app/api/validate?phone=+1234567890" \ -H "x-api-key: YOUR_API_KEY"
POST

/api/send-code

Send a 6-digit verification code to a phone number via SMS. Perfect for two-factor authentication and account verification.

Request Body
{ "phone": "+1234567890" }
Response
{ "success": true, "message": "Verification code sent successfully", "phone": "+12345678901", "verification_sid": "VE..." }
Example: Node.js
const axios = require('axios'); const response = await axios.post( 'https://phone-validation-api.vercel.app/api/send-code', { phone: '+1234567890' }, { headers: { 'x-api-key': 'YOUR_API_KEY' } } ); console.log(response.data);
Example: cURL
curl -X POST "https://phone-validation-api.vercel.app/api/send-code" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"phone": "+1234567890"}'
POST

/api/check-code

Verify a 6-digit code sent to a phone number. Returns verification status instantly.

Request Body
{ "phone": "+1234567890", "code": "123456" }
Response (Success)
{ "success": true, "verified": true, "message": "Verification code is correct", "phone": "+12345678901" }
Example: Node.js
const axios = require('axios'); const response = await axios.post( 'https://phone-validation-api.vercel.app/api/check-code', { phone: '+1234567890', code: '123456' }, { headers: { 'x-api-key': 'YOUR_API_KEY' } } ); console.log(response.data);
Example: cURL
curl -X POST "https://phone-validation-api.vercel.app/api/check-code" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"phone": "+1234567890", "code": "123456"}'

Rate Limits & Error Codes

SMS Verification
  • • 3 requests per phone/hour
  • • 10 requests per API key/hour
Error Codes
  • 400 - Bad Request
  • 401 - Invalid API Key
  • 429 - Rate Limit Exceeded
  • 500 - Server Error

Try It Live

Test our API endpoints right here. No API key required for phone validation demo.

Phone Validation

No API key required for this demo. Rate limited to 5 requests/minute.

SMS Verification

Test SMS verification with your API key. Get your free API key to test with real SMS.

Enter your API key to test with real SMS. Get your free API key

Step 1: Send Verification Code

Enter phone number in E.164 format (e.g., +1234567890)

Simple, Transparent Pricing

Start free, scale as you grow. All plans include phone validation and SMS verification.

Free

$0/month
  • 7 API requests/month
  • Phone validation
  • SMS verification (3 SMS/month)
  • Country detection
  • Number formatting
  • Perfect for testing

Pro

$20/month
  • 2,500 API requests/month
  • Phone validation
  • SMS verification (500 SMS/month)
  • Country detection
  • Number formatting
  • Priority support
  • Advanced features

Custom

Contact Us
  • 5,000+ API requests/month
  • Unlimited SMS verification
  • All Pro features
  • Custom integration
  • Dedicated support
  • Volume discounts

Perfect For

Trusted by developers building modern applications

🔐

Two-Factor Authentication

Add SMS-based 2FA to your applications. Secure user accounts with phone number verification.

📝

Form Validation

Validate phone numbers in real-time as users type. Improve data quality and user experience.

👤

Account Verification

Verify user phone numbers during signup. Reduce fake accounts and improve security.

🛒

E-commerce

Validate shipping addresses and send order confirmations via SMS. Improve customer trust.

💬

Messaging Apps

Verify phone numbers before allowing users to send messages. Prevent spam and abuse.

🏢

Enterprise Solutions

Integrate phone validation into your CRM, ERP, or custom business applications.

Payment Successful

Your API key is being generated and will be displayed below.