Legacy API Notice: This documentation covers the Legacy Sent API (v2). While this API remains fully supported, we recommend new integrations use the latest Sent API v3 for enhanced features, improved performance, and long-term support.

Lookup phone number information

Retrieves detailed information about a phone number including validation, formatting, country information, and available messaging channels. The customer ID is extracted from the authentication token.

GET
/v2/number-lookup

Query Parameters

phoneNumber*string

Response Body

Phone number information retrieved successfully

application/json
  1. response

Response containing phone number lookup data

phoneNumber?string

The phone number in its original format

formatE164?string

The phone number formatted in E.164 standard (e.g., +1234567890)

formatInternational?string

The phone number formatted for international dialing (e.g., +1 234-567-890)

formatNational?string

The phone number formatted for national dialing (e.g., (234) 567-890)

formatRfc?string

The phone number formatted according to RFC 3966 (e.g., tel:+1-234-567-890)

countryCode?string

The country calling code (e.g., 1 for US/Canada)

regionCode?string

The ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)

numberType?string

The type of phone number (e.g., mobile, fixed_line, voip)

phoneTimezones?string

The timezones associated with the phone number

Example Request
curl -X GET 'https://api.sent.dm/v2/number-lookup?phoneNumber=%2B1234567890'
Example Response
{  "phoneNumber": "1234567890",  "formatE164": "+1234567890",  "formatInternational": "+1 234-567-890",  "formatNational": "(234) 567-890",  "formatRfc": "tel:+1-234-567-890",  "countryCode": "1",  "regionCode": "US",  "numberType": "mobile",  "phoneTimezones": "America/New_York"}