NAME
Twilio::Rest::Numbers::V1::Eligibility - The Eligibility resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $eligibility = $client->numbers->v1->eligibilities->create(\%body);
DESCRIPTION
This file holds EligibilityList and EligibilityInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
EligibilityList
Returned by $client->numbers->v1->eligibilities. See also Twilio::ListResource.
create
my $eligibility = $client->numbers->v1->eligibilities->create(\%body);
Create an eligibility check for a number that you want to host in Twilio. Returns a EligibilityInstance.
%body is sent as JSON. It can be left out. When given, it takes the names Twilio's API documentation uses.
EligibilityInstance
See also Twilio::InstanceResource.
Its fields are:
- results
-
The result set that contains the eligibility check response for the requested number, each result has at least the following attributes: phone_number: The requested phone number ,hosting_account_sid: The account sid where the phone number will be hosted, date_last_checked: Datetime (ISO 8601) when the PN was last checked for eligibility, country: Phone number’s country, eligibility_status: Indicates the eligibility status of the PN (Eligible/Ineligible), eligibility_sub_status: Indicates the sub status of the eligibility , ineligibility_reason: Reason for number's ineligibility (if applicable), next_step: Suggested next step in the hosting process based on the eligibility status.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.