import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const messagingHostedNumberOrders = await client.messagingHostedNumberOrders.list();
console.log(messagingHostedNumberOrders.data);{
"data": [
{
"id": "86f58db9-0fe3-4adc-9d1f-46e66e6e9323",
"record_type": "messaging_hosted_number_order",
"messaging_profile_id": "dc8f39ac-953d-4520-b93b-786ae87db0da",
"status": "pending",
"phone_numbers": [
{
"record_type": "messaging_hosted_number",
"id": "bf6307bd-884d-4c1f-b6ea-c62b8c495d3c",
"phone_number": "+18665550001",
"status": "pending"
},
{
"record_type": "messaging_hosted_number",
"id": "464bd54e-a328-4b11-a131-28e6793cb6f2",
"phone_number": "+18665550002",
"status": "pending"
}
]
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const messagingHostedNumberOrders = await client.messagingHostedNumberOrders.list();
console.log(messagingHostedNumberOrders.data);{
"data": [
{
"id": "86f58db9-0fe3-4adc-9d1f-46e66e6e9323",
"record_type": "messaging_hosted_number_order",
"messaging_profile_id": "dc8f39ac-953d-4520-b93b-786ae87db0da",
"status": "pending",
"phone_numbers": [
{
"record_type": "messaging_hosted_number",
"id": "bf6307bd-884d-4c1f-b6ea-c62b8c495d3c",
"phone_number": "+18665550001",
"status": "pending"
},
{
"record_type": "messaging_hosted_number",
"id": "464bd54e-a328-4b11-a131-28e6793cb6f2",
"phone_number": "+18665550002",
"status": "pending"
}
]
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response with a list of messaging hosted number orders.
Show child attributes
Identifies the type of the resource.
"messaging_hosted_number_order"
Resource unique identifier.
Automatically associate the number with this messaging profile ID when the order is complete.
carrier_rejected, compliance_review_failed, deleted, failed, incomplete_documentation, incorrect_billing_information, ineligible_carrier, loa_file_invalid, loa_file_successful, pending, provisioning, successful Show child attributes
"messaging_hosted_number"
Identifies the type of resource.
The messaging hosted phone number (+E.164 format)
deleted, failed, failed_activation, failed_carrier_rejected, failed_ineligible_carrier, failed_number_already_hosted, failed_number_not_found, failed_ownership_verification, failed_timeout, pending, provisioning, successful Was this page helpful?