# Service enfonica.numbering.v1beta1.PhoneNumbers

## Methods

| SearchPhoneNumbers |
| -- |
| <span class="e-code">rpc SearchPhoneNumbers(<span class="e-code">[SearchPhoneNumbersRequest](#searchphonenumbersrequest)</span>) returns (<span class="e-code">[SearchPhoneNumbersResponse](#searchphonenumbersresponse)</span>)</span><br/><br/>Searches available phone numbers with the specified filters.<br/><br/>Search returns phone numbers sorted by create_time descending.<br/><br/>The caller must be authenticated. |

## Resource: PhoneNumber

The PhoneNumber resource.

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Resource name of the phone number. It must match the pattern `phoneNumbers/*`
<span class="e-code">phone_number</span> | <span class="e-code">string</span><br/>The phone number, in +E164 format.
<span class="e-code">capabilities[]</span> | <span class="e-code">[PhoneNumberCapability](#phonenumberphonenumbercapability)</span><br/>The capabilities of the phone number.
<span class="e-code">sku</span> | <span class="e-code">string</span><br/>The SKU that will be used to bill the phone number for the monthly service charge. In the form `services/*/skus/*`. Output only.
<span class="e-code">activation_sku</span> | <span class="e-code">string</span><br/>The SKU that will be used to bill the phone number for the once-off activation charge. In the form `services/*/skus/*`. If not set, there is no activation charge. Output only.
<span class="e-code">number_type</span> | <span class="e-code">[PhoneNumberType](#phonenumberphonenumbertype)</span><br/>The type of phone number.
<span class="e-code">country_code</span> | <span class="e-code">string</span><br/>The alpha-2 country code that identifies the country associated with the phone number. 

## PhoneNumber.PhoneNumberCapability

A capability of a phone number.

Enums | &nbsp;
--|--
<span class="e-code">PHONE_NUMBER_CAPABILITY_UNSPECIFIED</span> | Unspecified phone number capability.
<span class="e-code">SMS</span> | The phone number is capable of SMS.
<span class="e-code">MMS</span> | The phone number is capable of MMS.
<span class="e-code">VOICE</span> | The phone number is capable of voice.

## PhoneNumber.PhoneNumberType

The type of phone number.

Enums | &nbsp;
--|--
<span class="e-code">PHONE_NUMBER_TYPE_UNSPECIFIED</span> | Unspecified phone number type.
<span class="e-code">LOCAL</span> | The phone number is a local phone number and corresponds to a specific geography within a country.
<span class="e-code">NATIONAL</span> | The phone number is a national phone number and is independent of geography within a country.
<span class="e-code">MOBILE</span> | The phone number is a mobile-only phone number and is independent of geography within a country.
<span class="e-code">TOLL_FREE</span> | The phone number is a toll-free number, where the caller can call the number typically without any cost to the caller.
<span class="e-code">SHARED_RATE</span> | The phone number is a shared-rate number, where both the caller and holder of the phone number both typically share in the cost of calls to the phone number.

## SearchPhoneNumbersRequest

The SearchPhoneNumbers request.

Fields | &nbsp;
--|--
<span class="e-code">page_size</span> | <span class="e-code">int32</span><br/>The maximum number of PhoneNumbers to return in the response. Default value of 10 and maximum value of 100.
<span class="e-code">page_token</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous call to `SearchPhoneNumbers` that indicates where this listing should continue from.
<span class="e-code">number_type</span> | <span class="e-code">[PhoneNumber.PhoneNumberType](#phonenumberphonenumbertype)</span><br/>The type of phone number.
<span class="e-code">country_code</span> | <span class="e-code">string</span><br/>Required. The alpha-2 country code that identifies the country associated with the phone number. 
<span class="e-code">prefix</span> | <span class="e-code">string</span><br/>The prefix that the number must have after the country code. If the prefix starts with '0', it will be automatically removed.
<span class="e-code">supports_voice</span> | <span class="e-code">boolean</span><br/>If true, the phone number must support voice.
<span class="e-code">supports_sms</span> | <span class="e-code">boolean</span><br/>If true, the phone number must support SMS.
<span class="e-code">supports_mms</span> | <span class="e-code">boolean</span><br/>If true, the phone number must support MMS.

## SearchPhoneNumbersResponse

The SearchPhoneNumbers response.

Fields | &nbsp;
--|--
<span class="e-code">phone_numbers[]</span> | <span class="e-code">[PhoneNumber](#resource-phonenumber)</span><br/>A possibly paginated list of PhoneNumbers.
<span class="e-code">next_page_token</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous call to `SearchPhoneNumbers` that indicates from where listing should continue.

