There are two alternative methods for creating a Messages and Dispatch application:
- Using the Nexmo CLI
- Using the Dashboard
Each of these methods is described in the following sections.
To create your application using the Nexmo CLI, enter the following command into the shell:
nexmo app:create "My Messages App" --capabilities=messages --messages-inbound-url=https://example.com/webhooks/inbound-message --messages-status-url=https://example.com/webhooks/message-status --keyfile=private.key
This creates a Vonage API application with a messages capability, with the webhook URLs configured as specified, and generate a private key file
You can create Messages and Dispatch applications in the Dashboard.
To create your application using the Dashboard:
Under Applications in the Dashboard, click the Create a new application button.
Under Name, enter the Application name. Choose a name for ease of future reference.
Click the button Generate public and private key. This will create a public/private key pair and the private key will be downloaded by your browser.
Under Capabilities select the Messages button.
In the Inbound URL box, enter the URL for your inbound message webhook, for example,
In the Status URL box, enter the URL for your message status webhook, for example,
Click the Generate new application button. You are now taken to the next step of the Create Application procedure where you can link a Vonage API number to the application, and link external accounts such as Facebook to this application.
If there is an external account you want to link this application to, click the Linked external accounts tab, and then click the corresponding Link button for the account you want to link to.
You have now created your application.
NOTE: Before testing your application ensure that your webhooks are configured and your webhook server is running.