import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.messagingHostedNumberOrders.checkEligibility({ phone_numbers: ['string'] });
console.log(response.phone_numbers);{
"phone_numbers": [
{
"detail": "<string>",
"phone_number": "<string>",
"eligible": true,
"eligible_status": "NUMBER_CAN_NOT_BE_REPEATED"
}
]
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.messagingHostedNumberOrders.checkEligibility({ phone_numbers: ['string'] });
console.log(response.phone_numbers);{
"phone_numbers": [
{
"detail": "<string>",
"phone_number": "<string>",
"eligible": true,
"eligible_status": "NUMBER_CAN_NOT_BE_REPEATED"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Phone numbers to check eligibility
List of phone numbers to check eligibility
Phone number to check eligibility
Successful response
List of phone numbers with their eligibility status.
Show child attributes
Detailed information about the eligibility status.
The phone number in e164 format.
Whether the phone number is eligible for hosted messaging.
The eligibility status of the phone number.
NUMBER_CAN_NOT_BE_REPEATED, NUMBER_CAN_NOT_BE_VALIDATED, NUMBER_CAN_NOT_BE_WIRELESS, NUMBER_CAN_NOT_BE_ACTIVE_IN_YOUR_ACCOUNT, NUMBER_CAN_NOT_HOSTED_WITH_A_TELNYX_SUBSCRIBER, NUMBER_CAN_NOT_BE_IN_TELNYX, NUMBER_IS_NOT_A_US_NUMBER, NUMBER_IS_NOT_A_VALID_ROUTING_NUMBER, NUMBER_IS_NOT_IN_E164_FORMAT, BILLING_ACCOUNT_CHECK_FAILED, BILLING_ACCOUNT_IS_ABOLISHED, ELIGIBLE Was this page helpful?