Call it
curl https://api.peume.com/v1/call/check-if-a-phone-number-is-live \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"telephone_number": "447540822872",
"usa_status": "NO",
"save_to_cache": "PRIVATE",
"cache_days_global": 0,
"cache_days_private": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/check-if-a-phone-number-is-live", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"telephone_number": "447540822872",
"usa_status": "NO",
"save_to_cache": "PRIVATE",
"cache_days_global": 0,
"cache_days_private": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/check-if-a-phone-number-is-live",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"telephone_number": "447540822872",
"usa_status": "NO",
"save_to_cache": "PRIVATE",
"cache_days_global": 0,
"cache_days_private": 0
}
},
)
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: check-if-a-phone-number-is-live.
Parameters
telephone_numberRequiredstringInternational E.164 digits without the leading +, or a national number with input_format.
Example: 447540822872
input_formatstringISO3 country code when telephone_number is in national format, e.g. GBR. Leave unset for international input.
output_formatstringFormat of formatted_telephone_number: E164, PLUS_E164, NATIONAL, or an ISO3 country code.
usa_statusstringSet YES only for +1 numbers. Without it a US number returns NOT_AVAILABLE_NETWORK_ONLY. A US mobile with YES costs two credits.
YES · NO
Example: NO
save_to_cacheRequiredstringThe result is cached only for this account, never shared.
PRIVATE
cache_days_globalRequiredinteger0 never reads the shared cache, so the lookup is live.
0
cache_days_privateRequiredinteger0 never reads this account's cache, so the lookup is live.
0
