Call it
curl https://api.peume.com/v1/call/validate-a-phone-number-with \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"action": "phone_verifier",
"action_type": "tool",
"input_attributes": [
{
"phone_number": "+12025550143"
}
],
"poll_only": true
}
}'const res = await fetch("https://api.peume.com/v1/call/validate-a-phone-number-with", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"action": "phone_verifier",
"action_type": "tool",
"input_attributes": [
{
"phone_number": "+12025550143"
}
],
"poll_only": true
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/validate-a-phone-number-with",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"action": "phone_verifier",
"action_type": "tool",
"input_attributes": [
{
"phone_number": "+12025550143"
}
],
"poll_only": True
}
},
)
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-with.
Parameters
actionRequiredstringphone_verifier
Example: phone_verifier
action_typeRequiredstringtool
Example: tool
input_attributesRequiredarrayOne existing phone number in E.164 format; a malformed number can still be checked and charged.
Example: [{"phone_number":"+12025550143"}]
poll_onlyRequiredbooleantrue
Example: true
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 numberValidate one phone number and return carrier, line type, prepaid status, and activity score
