Skip to contentSkip to navigationSkip to topbar
Rate this Page:

Call Forwarding


Lookup's Call Forwarding package allows you to get the unconditional call forwarding status of a mobile phone number.

Call Forwarding Lookups are billed per Lookup, even if data may not be available. Currently, requesting Call Forwarding Lookups for unsupported carriers will return null values, but will not be billed.

To make a Call Forwarding request, add call_forwarding to the optional query parameter Fields when making a standard Lookup request.


_10
curl -X GET "https://lookups.twilio.com/v2/PhoneNumbers/{PhoneNumber}?Fields=call_forwarding" \ -u
_10
$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN

Coverage and Limitations: Only numbers owned by major carriers in the United Kingdom are supported.

Release Stage and Access: Private Beta, please submit this form(link takes you to an external page) to contact sales. Requires carrier approvals.


Response properties

response-properties page anchor

The following additional properties are returned for a Call Forwarding request.

PropertyDescription
CallForwardingStatusA boolean value indicating unconditional call forwarding is currently enabled for the requested mobile phone number (true) or is not (false).
ErrorCodeThe error code, if any, associated with your request.

Call Forwarding Lookup

call-forwarding-lookup page anchor

Call forwarding enabled (paid)

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_10
// Download the helper library from https://www.twilio.com/docs/node/install
_10
// Find your Account SID and Auth Token at twilio.com/console
_10
// and set the environment variables. See http://twil.io/secure
_10
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_10
const authToken = process.env.TWILIO_AUTH_TOKEN;
_10
const client = require('twilio')(accountSid, authToken);
_10
_10
client.lookups.v2.phoneNumbers('+447772000001')
_10
.fetch({fields: 'call_forwarding'})
_10
.then(phone_number => console.log(phone_number.callForwarding));

Output

_21
{
_21
"calling_country_code": "44",
_21
"country_code": "GB",
_21
"phone_number": "+447772000001",
_21
"national_format": "07772 000001",
_21
"valid": true,
_21
"validation_errors": null,
_21
"caller_name": null,
_21
"sim_swap": null,
_21
"call_forwarding": {
_21
"call_forwarding_status": true,
_21
"error_code": null
_21
},
_21
"line_status": null,
_21
"line_type_intelligence": null,
_21
"identity_match": null,
_21
"reassigned_number": null,
_21
"sms_pumping_risk": null,
_21
"phone_number_quality_score": null,
_21
"url": "https://lookups.twilio.com/v2/PhoneNumbers/+447772000001"
_21
}


Rate this Page: