Get Phone Details
Gets the details for the given phone number. Returns the details if successful, otherwise returns an error.
Permissions Required: Phone::Lookup
GET
/phone/details
curl \
-X GET https://thefemdevs.com/api/phone/details \
-H "x-number: +8888888888"
Response examples (200)
{
"e164": "+18888888888",
"phone": "+8888888888",
"status": "success",
"carrier": "",
"country": "United States",
"phone_type": "fixed_line_or_mobile",
"phone_valid": true,
"country_code": "US",
"local_number": "(888) 888-8888",
"phone_region": "Michigan",
"country_prefix": "1",
"international_number": "+1 888-888-888"
}
Response examples (400)
Missing phone
{
"code": 8,
"message": "Missing Header Parameter(s)"
}
{
"code": 9,
"message": "Invalid Header Parameter(s)"
}
Response examples (401)
Missing API Token
{
"code": 3,
"message": "No API key provided"
}
{
"code": 4,
"message": "Invalid API key provided"
}
Response examples (403)
Missing permissions
{
"code": 1,
"message": "You are not authorized to access this resource"
}
{
"code": 2,
"message": "You are blacklisted from accessing this resource"
}
Response examples (404)
{
"code": 22,
"message": "Unable to retrieve requested information"
}