Skip to main content
POST
/
messaging_hosted_number_orders
/
eligibility_numbers_check
JavaScript
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"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Phone numbers to check eligibility

phone_numbers
string<+E.164>[]
required

List of phone numbers to check eligibility

Phone number to check eligibility

Response

Successful response

phone_numbers
object[]

List of phone numbers with their eligibility status.