How to get the location of a purchased phone number in Twilio -


i'm working on project using twilio api. i've noticed availablephonenumbers collection sends us, along available numbers, geo-location, rate center, lot of useful information number i'm purchase.

after purchasing number, realised incomingphonenumbers collection doesn't have such thing phone location, iso country, , on!

is there way retrieve information numbers purchased, or should save every number availablephonenumbers in case i'll buy later?

also, guess question, there doesn't seem way know via api if number enabled send/receive calls/sms internationally. need automate purchasing of numbers via api, , while frontend allows me see if number has restrictions before buying it, can't find api method so. api says if number enabled send or receive sms example, doesn't state if can send/receive them to/from numbers out of own country.

thank you!

twilio developer evangelist here.

if want use data phone number returned available phone numbers resource want cache somewhere until buy number. can iso country code of number if use lookups api. location phone numbers supported , canada.

as other question, i'm afraid not part of api, inquired within twilio , improvement looking into, out in future.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -