Call it
curl https://api.peume.com/v1/call/validate-a-phone-number \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"phone": "+13005550103",
"phone.country_hint": "US"
}
}'const res = await fetch("https://api.peume.com/v1/call/validate-a-phone-number", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"phone": "+13005550103",
"phone.country_hint": "US"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/validate-a-phone-number",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"phone": "+13005550103",
"phone.country_hint": "US"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: validate-a-phone-number.
Parameters
phoneRequiredstringE.164 or national format.
Example: +13005550103
phone.country_hintstringISO-3166 alpha-2 context for a national-format number.
Example: US
Other ways to do it
Same job, other sources, cheapest first.
Validate and format a phone numberValidates the number and returns number type, issuing network and formatted output without a live.Validate and format a phone numberPhone number → validity, local/international/E.164/RFC3966 formats, country, line type, carrier, region and timezonesValidate a phone number withCheck one supplied phone number and return validation verdict and validator.
