Use the AvailablePhoneNumbers resource to find a number that fits your needs (local, toll-free, or specific area code).
POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers
You can filter by AreaCode , Contains (for vanity numbers), or capabilities like SmsEnabled . 2. Purchase the Number
PhoneNumber (the number you found in Step 1). 💻 Code Example (Node.js) javascript
You can configure VoiceUrl and SmsUrl during the purchase to handle incoming traffic instantly.