Before you Begin

What are Code Snippets?

Code snippets are short pieces of code you can reuse in your own applications. The code snippets use code from example repositories.

Please read this information carefully before attempting to use the code snippets.


  1. Create a Vonage account - so that you can access your API key and secret to authenticate requests.
  2. Rent a Vonage Number - if you want to receive inbound SMS.
  3. Install a Server SDK - for your chosen programming language.
  4. All US based customers must register a brand and campaign to comply with 10 DLC guidelines.


If you want to receive incoming SMS or delivery receipts, you will need to create a webhook. Vonage needs to be able to access your webhook via the public internet.

During development you can use Ngrok to expose the webhooks you create on your local machine to the Vonage APIs. See Using Ngrok for local development for details of how to set up and use Ngrok.