Smart CNAM API validates phone numbers and identifies the name or business to which the phone number belongs.
URL Structure: https://api.trestleiq.com/3.1/cnam?api_key=[insert_key]&phone=[insert_phone_number]
phone required | string The phone number in E.164 or local format. The default country calling code is +1 (USA). Example: phone=2069735100 |
phone.country_hint | string <ISO-3166-2> The ISO-3166 alpha-2 country code of the phone number. See: ISO-3166 Example: phone.country_hint=US |
Successful reverse phone response.
Bad Request: Indicates that the server cannot process the request due to client-side errors.
Too Many Requests: API Key has exceeded its rate limit.
Internal Server Error: Indicates that the server encountered an unexpected error.
curl --location --request GET '/https://api.trestleiq.com/3.1/cnam?phone=2069735100&phone.country_hint=US' --header 'x-api-key: [insert_api_key]' --header 'Accept: application/json'
{- "id": "Phone.3dbb6fef-a2df-4b08-cfe3-bc7128b6f5b4",
- "is_valid": true,
- "belongs_to": {
- "id": "Person.fffdcf06-0929-4b5a-9921-ee49b101ca84",
- "name": "Waidong L Syrws",
- "firstname": "Waidong",
- "middlename": "L",
- "lastname": "Syrws"
}, - "error": {
- "name": "InternalError",
- "message": "Could not retrieve entire response"
}, - "warnings": "Missing Input"
}