Lookup Phone Number Profile
GET/v1/phones/phoneProfile
Retrieves reputation and identity information for a phone number from Hiya's global intelligence database.
Response Data
The profile includes:
- Caller Identity: Name, business type, and verified status (if available)
- Reputation Score: Risk assessment based on community reports and network analysis
- Category Classification: Spam, scam, fraud, robocall, telemarketer, or legitimate
Use Cases
- Call Log Enhancement: Enrich call history with caller details
- Contact Verification: Validate unknown numbers from the address book
Query Parameters
The phone number to lookup (does not need to be in E.164 - send it as you have it)
Header Parameters
Product version. The standard "major.minor.patch" format is highly encouraged without any leading characters; "2.1.3" or "3.0.0" for example.
The identifier of a logged-in user. Same identifier that is used for /users/{user_id}
Responses
- 200
- 400
- 404
- 500
OK
Response Body
- VOIP: Voice over IP connection
- PSTN: Public Switched Telephone Network
The caller's name (from Hiya Protect/Connect and other sources)
Acme InsuranceThe phone number in E.164 format
+14155551234The caller's location (e.g., "Seattle, WA, USA")
Seattle, WA, USAThe phone number's carrier/service provider
Verizon WirelessHow the call was transited:
Possible values: [VOIP, PSTN]
PSTNExample from Schema
{
"name": "Acme Insurance",
"number": "+14155551234",
"location": "Seattle, WA, USA",
"carrier": "Verizon Wireless",
"connectionType": "PSTN"
}
Bad Request
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}
Not Found
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}
Internal Server Error
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}