Twilio.listPotentialNumbers()

List the phone numbers potentially available (but not yet provisioned) to your Twilio account.

Usage

Hover over inputs/exits for more info.

var Twilio = require('machinepack-twilio');


// List the phone numbers potentially available (but not yet provisioned) to your Twilio account.

Twilio.listPotentialNumbers({

accountSid: 'DZe5eafd3c69b1e74example5852c04a9102',

authToken: 'Dafd4example5852c3c69bZe5e1e704a9102',

country: 'US',

type: 'local',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

accountSid required

The "account sid" associated with your Twilio account.

'DZe5eafd3c69b1e74example5852c04a9102'
authToken required

The "auth token" associated with your Twilio account.

'Dafd4example5852c3c69bZe5e1e704a9102'
country

The ISO country code of phone numbers to return.

'US'
type

The type of phone numbers to return- "local", "mobile", or "tollFree". If omitted, defaults to "local".

'local'

Exits

error

An unexpected error occurred.

success

OK.

[ '+15128459328' ]