{"id":34,"date":"2021-06-16T11:10:00","date_gmt":"2021-06-16T01:10:00","guid":{"rendered":"https:\/\/enfonica.com\/blog-new\/?p=34"},"modified":"2021-06-25T09:26:06","modified_gmt":"2021-06-24T23:26:06","slug":"how-to-activate-a-phone-number-in-minutes","status":"publish","type":"post","link":"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/","title":{"rendered":"How to Activate a Phone Number in Minutes"},"content":{"rendered":"\n<p>We know your time is valuable, which is why Enfonica has built an intelligent software layer that allows businesses to provision voice and SMS-enabled phone numbers in minutes. Whether it be by clicking or by code, Enfonica provides you immediate access to local, mobile, 1300 and 1800 phone numbers for your voice and SMS applications.<\/p>\n\n\n\n<p>Here we will show you how to set up Australian phone numbers using either our API or the Enfonica Console. The choice is yours.<\/p>\n\n\n\n<h2>Purchasing phone numbers with the Enfonica Console\u200d<\/h2>\n\n\n\n<p>Once you\u2019ve logged into the&nbsp;<a href=\"https:\/\/console.enfonica.com\/#\/login\">Enfonica Console<\/a>, choose the project you want to purchase a number for and select Phone Numbers from the left menu. Here you\u2019ll be able to manage your current inventory or purchase additional numbers.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"541\" src=\"https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/enfonica-console-phone-numbers-1024x541.png\" alt=\"\" class=\"wp-image-36\" srcset=\"https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/enfonica-console-phone-numbers-1024x541.png 1024w, https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/enfonica-console-phone-numbers-300x158.png 300w, https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/enfonica-console-phone-numbers-768x406.png 768w, https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/enfonica-console-phone-numbers-1536x811.png 1536w, https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/enfonica-console-phone-numbers-1250x660.png 1250w, https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/enfonica-console-phone-numbers.png 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Enfonica Console &gt; Phone Numbers<\/figcaption><\/figure>\n\n\n\n<p>Under the Purchase tab, you can filter your search by country, capability or type, and search for numbers by their prefix. Once you have selected a number, click purchase and you\u2019re done. It\u2019s as simple as that! Your new phone number will appear in your phone numbers list in the project you purchased it in.<\/p>\n\n\n\n<h2>Purchasing phone numbers with the Enfonica API with C#<\/h2>\n\n\n\n<p>Alternative to using the Enfonica Console, you also have the ability to search and purchase phone numbers using our API. If you can develop for the web, you can develop for telco.<\/p>\n\n\n\n<p>First things first, you\u2019ll need to get everything ready. To use the&nbsp;<a href=\"https:\/\/enfonica.com\/support\">Enfonica API<\/a>, you will need:<\/p>\n\n\n\n<ul><li>Your access token (a bearer token)<\/li><li>Your project name (e.g. projects\/my-project)<\/li><\/ul>\n\n\n\n<p>To install the Enfonica Client Library for .NET, simply install the Enfonica package from NuGet.<\/p>\n\n\n\n<p>To use the library, you will need your service account key. For more information on authentication in Enfonica&#8217;s platform for application developers, please see our&nbsp;<a href=\"https:\/\/enfonica.com\/docs\/authentication\/\">Docs<\/a>.<\/p>\n\n\n\n<h5>Search available phone numbers<\/h5>\n\n\n\n<p>The search phone numbers API allows you to filter search results based on the type of phone number. A description of all available fields is available in the&nbsp;<a href=\"https:\/\/github.com\/enfonica\/enfonicaapis\/tree\/master\/enfonica\/numbering\/v1beta1\">public interface definitions<\/a>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">var client = PhoneNumbersClient.Create();\n\n\/\/ search for australian mobile numbers\nvar results = client.SearchPhoneNumbersAsync(new()\n{\n    CountryCode = \"AU\",\n    Prefix = \"+614\"\n});\n\n\/\/ display all results (using auto-magic pagination)\nawait foreach (var number in results)\n{\n    Console.WriteLine(number.PhoneNumber_);\n}<\/pre>\n\n\n\n<h5>Purchase a phone number<\/h5>\n\n\n\n<p>When you\u2019re ready to purchase a phone number, you\u2019ll need to create an &#8220;instance&#8221; of it against your given project.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">var phoneNumbersClient = PhoneNumbersClient.Create();\nvar phoneNumberInstancesClient = PhoneNumberInstancesClient.Create();\n\n\/\/ get the first AU mobile phone number result\nvar results = phoneNumbersClient.SearchPhoneNumbersAsync(new()\n{\n    CountryCode = \"AU\",\n    Prefix = \"+614\"\n});\nvar firstMobile = (await results.ReadPageAsync(1)).First();\n\n\/\/ provision\nvar provisioned = await phoneNumberInstancesClient.CreatePhoneNumberInstanceAsync(new()\n{\n    Parent = \"projects\/my-project\",\n    PhoneNumberInstance = new()\n    {\n        PhoneNumber = new()\n        {\n            Name = firstMobile.Name\n        }\n    }\n});\nConsole.WriteLine($\"Provisioned phone number instance {provisioned.Name}\");<\/pre>\n\n\n\n<h5>Configure the purchased phone number<\/h5>\n\n\n\n<p>Once you have purchased a phone number, you can update the &#8220;phone number instance&#8221; using the API. This will allow you to configure how a call or SMS will be handled.<\/p>\n\n\n\n<p>In this example, we&#8217;ll forward all calls to a mobile number.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"csharp\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">var phoneNumberInstancesClient = PhoneNumberInstancesClient.Create();\n\n\/\/ define the changes we want to make\nvar changes = new PhoneNumberInstance();\nchanges.IncomingCallHandlerUris.Add(\"tel:+61412345678\");\n\n\/\/ apply the changes to the specified phone number instance\n\/\/ change `Name` below to match the name of your phone number instance\nawait phoneNumberInstancesClient.UpdatePhoneNumberInstanceAsync(new()\n{\n    Name = \"projects\/my-project\/phoneNumberInstances\/7sdynf8sydfym7sdnf87ny7dfy8sydf87ysd\",\n    PhoneNumberInstance = changes\n});<\/pre>\n\n\n\n<p>There you have it! You\u2019ve searched, purchased and set up a new phone number with code.<\/p>\n\n\n\n<h2>Closing words<\/h2>\n\n\n\n<p>By following this guide, you&#8217;ve been able to set up a phone number in the Enfonica Console and using the Enfonica API.<\/p>\n\n\n\n<p>Setting up phone numbers shouldn\u2019t be difficult, which is why we&#8217;ve worked our hardest to make the process quick and easy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We know your time is valuable, which is why Enfonica has built an intelligent software layer that allows businesses to provision voice and SMS-enabled phone numbers in minutes. Whether it&#8230;<\/p>\n","protected":false},"author":4,"featured_media":127,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,5,18],"tags":[19,20,7,21],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Activate a Phone Number in Minutes<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Activate a Phone Number in Minutes\" \/>\n<meta property=\"og:description\" content=\"We know your time is valuable, which is why Enfonica has built an intelligent software layer that allows businesses to provision voice and SMS-enabled phone numbers in minutes. Whether it...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/\" \/>\n<meta property=\"og:site_name\" content=\"Enfonica\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-16T01:10:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-24T23:26:06+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/Blog-Image-Designs-5.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1250\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/127.0.0.1\/blog\/#website\",\"url\":\"http:\/\/127.0.0.1\/blog\/\",\"name\":\"Enfonica\",\"description\":\"Our mission is to revolutionize communications technology.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/127.0.0.1\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/Blog-Image-Designs-5.png\",\"contentUrl\":\"https:\/\/enfonica.com\/blog\/wp-content\/uploads\/2021\/06\/Blog-Image-Designs-5.png\",\"width\":1250,\"height\":630,\"caption\":\"active-phone-numbers\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/#webpage\",\"url\":\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/\",\"name\":\"How to Activate a Phone Number in Minutes\",\"isPartOf\":{\"@id\":\"http:\/\/127.0.0.1\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/#primaryimage\"},\"datePublished\":\"2021-06-16T01:10:00+00:00\",\"dateModified\":\"2021-06-24T23:26:06+00:00\",\"author\":{\"@id\":\"http:\/\/127.0.0.1\/blog\/#\/schema\/person\/81fc4ed88837f7120305eface9efbefe\"},\"breadcrumb\":{\"@id\":\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/enfonica.com\/blog\/how-to-activate-a-phone-number-in-minutes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/127.0.0.1\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Activate a Phone Number in Minutes\"}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/127.0.0.1\/blog\/#\/schema\/person\/81fc4ed88837f7120305eface9efbefe\",\"name\":\"Braydon Gould\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/127.0.0.1\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eed35526c1eb9c956358fcc8274846af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eed35526c1eb9c956358fcc8274846af?s=96&d=mm&r=g\",\"caption\":\"Braydon Gould\"},\"url\":\"https:\/\/enfonica.com\/blog\/author\/braydon-gould\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/posts\/34"}],"collection":[{"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":4,"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions\/45"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/media\/127"}],"wp:attachment":[{"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enfonica.com\/blog\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}