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

application/json

curl -X GET "https://api.sent.dm/v2/number-lookup?phoneNumber=%2B1234567890"
{
  "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"
}
Empty
Empty