To optimize application performance and control data residency, Lookup developers can select the Twilio Region that their Lookup request is processed out of.
Twilio Lookup currently operates in the following Regions:
To use this feature, you will need to create Region-specific authentication credentials and specify that target Region in your API requests. If no target Region is specified, the request will be handled in US1 by default. Keep in mind that Regions operate in full isolation from each other. Although Lookup does not store data beyond internal logging, its workload processing will happen in-Region. Read more on Twilio's Region Isolation Model here.
During this initial phase of the rollout of Twilio Regions, Twilio does not guarantee that all data will remain within your selected Region. For example, globally accessible Twilio resources like account-level billing and usage records are shared across all Regions.
Also, when Lookup calls third-party providers, data may egress out of your selected Region depending on the requested phone number's resident country.
Before making an API request, you'll need to generate an API key specifically for the IE1 Region. You can then use this Region-specific API Key to authenticate Twilio API requests in the IE1 Region.
To create the key, follow these steps:
Make a note of the API Key's SID and Secret . You will need this information for the next step.
To select the target Region of IE1 for an API request, use this base URL. The parameter dublin is the Edge Location of your request, and it can be replaced with whichever Edge is closest to your application. See Edge Locations for a list of what Edges are available to you.
https://lookups.dublin.ie1.twilio.com/v2/PhoneNumbers/{PhoneNumber}
The following code samples show how to target IE1 for the SIM Swap Lookup and Line Type Intelligence endpoints. Ensure that the variables $TWILIO_API_KEY
and $TWILIO_API_KEY_SECRET
resolve to the IE1 Region API Key SID and Secret that you created in Step 1.
1curl -X GET \2'https://lookups.dublin.ie1.twilio.com/v2/PhoneNumbers/+447772000001?Fields=sim_swap' \3-u $TWILIO_API_KEY:$TWILIO_API_KEY_SECRET
1curl -X GET \2'https://lookups.dublin.ie1.twilio.com/v2/PhoneNumbers/+447772000001?Fields=line_type_intelligence' \3-u $TWILIO_API_KEY:$TWILIO_API_KEY_SECRET
1curl -X GET \2'https://lookups.dublin.ie1.twilio.com/v2/PhoneNumbers/+447772000001?Fields=identity_match&FirstName=John&LastName=Doe&AddressLine1=71+Cherry+Court&City=Southampton&PostalCode=SO53+5PD&AddressCountryCode=GB&NationalId=925076473&DateOfBirth=19901213' \3-u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN4