1. Vonage Learn
  2. Blog
  3. 2019
  4. 05
  5. 31
  6. Receive an Sms With Python Dr
Receive an SMS with Python

< Tutorial />

Receive an SMS with Python

In this post, we'll show you how to receive SMS messages on your Vonage virtual number.

To receive inbound SMS, you need to create a publicly-accessible webhook and configure your Vonage account to use it. We'll cover that process in this post and you can find the source code on Github.


You'll use Python 3 and Flask to write your webhook. You can install flask with the pip3 package manager:

pip3 install flask

Lastly, you'll need to install our CLI. You will use this to purchase a Vonage virtual number (if you haven't already got one) and to send a test SMS.