{"uid":"cap_jaztKx_DK6mMyrT0aluhe","slug":"e-164-phone-number-formatter-validator-25fb37f5","name":"E.164 Phone Number Formatter & Validator","description":"Parses loosely formatted phone number input and returns its E.164 standard representation, country, and line type, with a default-country hint for numbers missing a country code. Built for lead deduplication, SMS delivery systems, and validation steps that reject malformed numbers before they hit a paid messaging API.","url":"https://x402.forgemesh.io/e164-phone-format","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"number":{"type":"string"},"country":{"type":"string","description":"2-letter default country for national input, default US"}}},"responseSchema":{"type":"json","example":{"e164":"+17135550142","valid":true,"country":"US","international":"+1 713 555 0142"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ejQ8jbFpiyX3aVdp-7AkF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses loosely formatted phone number input and returns the E.164 standard representation, country code, and line type, with optional default-country fallback for national numbers.","exampleAgentPrompt":"Can you normalize this phone number to E.164 format and tell me its country and line type — the number is '(415) 555-0132' and it's a US number?","exampleUseCases":null,"resultDescription":"Returns the E.164 formatted phone number (e.g. +14155550132), the detected country (ISO code), and the line type (e.g. mobile, landline, VoIP), enabling downstream validation or routing decisions.","failureModes":["Malformed or completely unrecognizable number string returns a validation error","Missing country code on a national-format number with no default-country hint may fail to resolve","Ambiguous number formats for some regions may produce incorrect country assignment","Numbers that look structurally valid but are unallocated may return unknown line type"],"whenToPreferThis":"Use this endpoint when you need to normalize phone numbers to E.164 before passing them to a paid SMS/calling API, when deduplicating leads by phone, or when validating user-submitted phone input across international formats. Prefer this over rolling your own regex or using a general-purpose library when you also need line-type classification and country identification in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:49:24.860Z","isFirstParty":false}