Skip to content
Console

Phone Validation API

The Phone Validation API checks whether a phone number is valid and returns what is known about it: the normalized E.164 form, national format, country, line type, carrier, region and time zones. Send numbers in E.164 format (+38766000111), or in national format together with a region code.

Base URL https://api.omaxtelecom.com/numbers
Authentication Bearer access token — how to get one
Postman Collection · Environment
AI assistants Open in ChatGPT · Open in Claude · Markdown · MCP server

[!TIP] Try it here: enter your Client ID and Client Secret in the Authentication box, click Authorize, then use Test Request on any endpoint. They stay filled in on every API page until you close the tab.

What you can do

Task Endpoint Description
Validate a number POST /phone-validation Validate one phone number
Bulk validation POST /phone-validation/bulk Start an asynchronous bulk job for many numbers
Bulk job status GET /phone-validation/bulk/{job_id} Progress and results of a bulk job
Your price GET /phone-validation/pricing Whether the API is enabled for you, and your price per validation
Usage history GET /phone-validation/transactions Every validation you made, with what it cost
Bulk jobs GET /phone-validation/jobs All your bulk jobs and their results
Health GET /phone-validation/health Service availability (no token needed)

Quick start

  1. Enable the API. Phone validation must be enabled for your organization in OmaxTelecom Console.
  2. Get a token — see Getting started.
  3. Validate a number:
curl -X POST "https://api.omaxtelecom.com/numbers/phone-validation?phone_number=%2B38766000111&locale=en" \
  -H "Authorization: Bearer $TOKEN"
{
  "success": true,
  "data": {
    "valid": true,
    "possible": true,
    "phone_number": "+38766000111",
    "national_format": "066 000-111",
    "country_code": "BA",
    "calling_code": "387",
    "number_type": "MOBILE",
    "geocoder": {
      "description": "Bosnia and Herzegovina",
      "locale": "en"
    },
    "time_zones": ["Europe/Sarajevo"],
    "carrier": {
      "name": "BH Telecom",
      "locale": "en"
    }
  }
}

[!TIP] In a query string, + must be sent as %2B, otherwise it is read as a space.

Authentication

Send an access token on every request except GET /phone-validation/health:

Authorization: Bearer <access_token>

Get the token from POST https://api.omaxtelecom.com/auth/token with your Console client_id and client_secret. Getting started shows how, with code samples.

Machine-to-machine clients whose token has no organization claim also send:

X-Organization-Id: <organization_id>

The validation result

Field Description
valid The number is valid for its region
possible The number has a plausible length, even if it is not valid
phone_number Normalized E.164 number
national_format Number formatted the national way
country_code ISO 3166-1 alpha-2 country code
calling_code International calling code
number_type Line type, for example MOBILE or FIXED_LINE
geocoder Geographic description of the number
time_zones Time zones of the number
carrier Carrier name, when known

Responses

Successful responses wrap the result in data:

{ "success": true, "data": { ... } }

Errors return success: false with a code you can branch on:

{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "The phone number field format is invalid."
  }
}

Examples

Validate a national number

Send the number without the country prefix and add region:

curl -X POST "https://api.omaxtelecom.com/numbers/phone-validation?phone_number=066000111&region=BA&locale=en" \
  -H "Authorization: Bearer $TOKEN"

The result is the same as for +38766000111 in the quick start.

Bulk validation

Bulk validation runs in the background. Start a job, then poll it until status is completed.

1. Start the job — the answer is 202 Accepted with a job_id:

curl -X POST "https://api.omaxtelecom.com/numbers/phone-validation/bulk" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "locale": "en",
    "validations": [
      {"phone_number": "+38766000111"},
      {"phone_number": "066000111", "region": "BA"}
    ]
  }'
{ "success": true, "data": { "job_id": "9f3c2b1a-7d6e-4f5a-8b9c-0d1e2f3a4b5c" } }

2. Poll the job:

curl "https://api.omaxtelecom.com/numbers/phone-validation/bulk/9f3c2b1a-7d6e-4f5a-8b9c-0d1e2f3a4b5c" \
  -H "Authorization: Bearer $TOKEN"
{
  "success": true,
  "data": {
    "job_id": "9f3c2b1a-7d6e-4f5a-8b9c-0d1e2f3a4b5c",
    "status": "processing",
    "total_count": 2,
    "processed_count": 1,
    "failed_count": 0,
    "items": [
      {
        "phone_number": "+38766000111",
        "region": null,
        "locale": "en",
        "status": "completed",
        "result": {
          "valid": true,
          "possible": true,
          "phone_number": "+38766000111",
          "national_format": "066 000-111",
          "country_code": "BA",
          "calling_code": "387",
          "number_type": "MOBILE"
        },
        "error": null
      },
      {
        "phone_number": "066000111",
        "region": "BA",
        "locale": "en",
        "status": "pending",
        "result": null,
        "error": null
      }
    ]
  }
}

Health check

curl "https://api.omaxtelecom.com/numbers/phone-validation/health"
{ "ok": true, "timestamp": "2026-08-20T16:42:00+00:00" }

Pricing and history

Your price — GET /phone-validation/pricing:

{ "success": true, "data": { "enabled": true, "price_per_validation": "0.020000", "currency": "EUR" } }

Usage history — GET /phone-validation/transactions lists every validation you made, newest first, with the amount billed. Filter by from, to, cached, phone_number, region; page with page and per_page. GET /phone-validation/transactions/{id} returns one transaction.

Bulk jobs — GET /phone-validation/jobs lists your bulk jobs (filter by status, from, to); GET /phone-validation/jobs/{id} returns one job with its items.

Billing

When your organization's price_per_validation is above zero, each successful validation is charged from your Console wallet — repeat validations of the same number too.

Errors

HTTP status Error code What to do
401 — Get a new access token
402 INSUFFICIENT_BALANCE Top up your wallet in Console
403 PHONE_VALIDATION_DISABLED Ask support to enable phone validation for your organization
403 BILLING_NOT_CONFIGURED Billing is not set up for your organization — contact support
403 ORGANIZATION_NOT_FOUND Your organization is not registered — check X-Organization-Id or contact support
422 VALIDATION_ERROR Fix the request body or the phone number format

Need help?

Email [email protected]. Tell us which endpoint you called, when, and what the response was — including its request_id if it has one. Never send your Client Secret or access token.