Create a Vonage Messages Application

In this topic you learn how to create a Vonage API application.

Use the CLI to create a Messages application with the webhooks that will be responsible for receiving a message to your Vonage number (/webhooks/messages/inbound), and check status updates (/webhooks/mesages/status), respectively.

These webhooks need to be accessible by Vonage's servers, so in this guide you will use ngrok to expose your local development environment to the public Internet. This article explains how to install and run ngrok and configure Vonage to send requests.

If you do not have an application, you can create one using the CLI

The command returns an application ID (which you should make a note of) and your private key information (which you can safely ignore for the purposes of this guide).

Run ngrok using the following command:

ngrok http 3000

Make a note of the temporary host name that ngrok provides and use it in place of example.com in the following command: