Search available Twilio or Telnyx phone numbers by country, area code, locality, region, pattern, provider, and result limit.
country_code (string, optional): Country code to search in. Defaults to "US"area_code (string, optional): Specific area code to search withincontains (string, optional): Pattern or digits the number should containlocality (string, optional): City or locality name to search inregion (string, optional): State or region to search withinlimit (integer, optional): Maximum number of results (1-50). Defaults to 10provider (string, optional): Provider to search ("twilio" or "telnyx"). Defaults to "telnyx"200 OK status with available phone numbers.
success (boolean): Whether the search completed successfullynumbers (array): List of available phone numbers with details
phone_number (string): The phone number in E.164 formatfriendly_name (string): Display name for the numberlocality (string): City/locality where the number is locatedregion (string): State/region where the number is locatedcountry_code (string): Country codecapabilities (object): Features supported by this number
voice (boolean): Supports voice callssms (boolean): Supports SMS messagesmms (boolean): Supports MMS messagesfax (boolean): Supports fax transmissionscost (string): Monthly cost for the number (Telnyx only)setup_cost (string): One-time setup fee (Telnyx only)provider (string): Provider name (“twilio” or “telnyx”)total_found (integer): Total number of results foundprovider (string): Provider used for the searchprovider valuelimit outside of 1-50 range| Feature | Twilio | Telnyx |
|---|---|---|
| Search Filters | Area code, locality, region, contains | Area code, locality, region, contains |
| Pricing Info | Not included in search | Monthly + setup costs shown |
| Global Coverage | Provider-dependent and changes by product | Provider-dependent and changes by product |
| API Speed | Fast | Very fast |
| Features | Voice, SMS, MMS, Fax | Voice, SMS, MMS |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for searching available phone numbers.
Country code (e.g., US, GB)
Area code to search in
Pattern the number should contain
City/locality to search in
State/region to search in
Maximum number of results
1 <= x <= 50Provider to search ('twilio', 'telnyx', or 'byo-sip-trunk')