Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Identify Unknown Phone Numbers with JavaScript, Twilio Lookup and SMS

Blog post from Twilio

Post Details
Company
Date Published
Author
Joe Previte
Word Count
1,538
Language
English
Hacker News Points
-
Summary

This app will use three Twilio APIs: Functions, Lookup, and SMS. The app will send a text message to its own phone number with the phone number of the incoming message. The Functions API will then perform a Lookup on the received number using the Lookups API, which will return the caller's name if available. If the number is valid but no caller name is found, the app will respond with a message indicating that it couldn't associate a name with that number. If the number is invalid, the app will respond with an error message asking the user to try sending the number again.