Create your Vonage Application

In this step you will create a Vonage Application capable of in-app voice communication use cases.

Open a new terminal and, if required, navigate to your project directory.

Create a Vonage application by copying and pasting the command below into terminal. Make sure to change the values of --voice_answer_url and --voice_event_url arguments, by replacing SUBDOMAIN with the actual value used in the previous step:

vonage apps:create "App to Phone Tutorial" --voice_answer_url=https://SUBDOMAIN.loca.lt/voice/answer --voice_event_url=https://SUBDOMAIN.loca.lt/voice/event 

NOTE: An application can be also created using the CLI's interactive mode. For more details on how to create an application and various available application capabilities please see our documentation.

A file named vonage_app.json is created/updated in your project directory and contains the newly created Vonage Application ID and the private key. A private key file named app_to_phone_tutorial.key is also created.

Make a note of the Application ID that is echoed in your terminal when your application is created:

screenshot of the terminal with Application ID underlined
screenshot of the terminal with Application ID underlined

NOTE: Information about your application, including the Application ID, can also be found in the Dashboard.