Attest tools · Phone number check

Convert a phone number to E.164

Normalize a reserved US fictional phone number into E.164 format using US numbering metadata.

1 credit per successful call

Input JSON

{
  "phone": "(202) 555-0123",
  "default_country": "US"
}

Captured output JSON

{
  "input_country": "US",
  "valid": true,
  "possible": true,
  "reason": null,
  "e164": "+12025550123",
  "national": "(202) 555-0123",
  "international": "+1 202 555 0123",
  "country": "US",
  "country_calling_code": "1",
  "type": "FIXED_LINE_OR_MOBILE",
  "extension": null,
  "uri": "tel:+12025550123",
  "checked_at": "2026-10-20T20:47:48.409Z",
  "source": "libphonenumber-js (MIT) using phone numbering metadata from Google libphonenumber (Apache-2.0)",
  "note": "Checked offline against libphonenumber metadata; carrier and live-line status are not checked."
}

API call

curl -s -X POST https://getattest.com.au/api/v1/phone/parse \
  -H "authorization: Bearer $ATTEST_API_KEY" \
  -H "content-type: application/json" \
  --data-raw '{"phone":"(202) 555-0123","default_country":"US"}'

Run this call with your own bearer key. Issue an API key.

About this example

The input was validated and run locally through the registered service. The output above is a display preview of the captured service result. File bytes are described instead of printed, and strings longer than 400 characters are truncated; the HTTP API also adds call_id, credits_charged and credits_remaining. Timestamps and generated identifiers will vary.

Source: apps/api/svc/phone_parse.mjs

Tool reference and limits · API key guide