- Home
- >
- Receive an SMS from a Twilio Phone Number
Receive an SMS from a Twilio Phone Number
By Twilio
- SMS
- Twilio
- Building blocks
Regulations require that you first register your number to use these resources to send SMS traffic to US and Canadian mobile destinations. If you are sending to Canada or the US and have not already done so, please see our documentation to register your Twilio phone number or Toll-Free number before you use this template. |
A simple code sample to show how to receive messages from a Twilio phone number. This is a good sample for those looking to set up two-way texting - for example, a user messages your Twilio number and receives an automatic response.
The following section links to the relevant code snippets in the Twilio Docs, rather than in GitHub.
Step 2:
You need an API key to get started.
Get a free API key
Step 3: Set up the code sample locally
To set up locally, follow the setup instructions in the README
Don't see what you want? Request a code sample Explore Docs
There was an issue loading the page.
Please try again in some time.