Check out our upcoming events and meetups! View events →
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const messagingNumbersBulkUpdate = await client.messagingNumbersBulkUpdates.create({
messaging_profile_id: '00000000-0000-0000-0000-000000000000',
numbers: ['+18880000000', '+18880000001', '+18880000002'],
});
console.log(messagingNumbersBulkUpdate.data);{
"data": {
"record_type": "messaging_numbers_bulk_update",
"order_id": "00000000-0000-0000-0000-000000000000",
"success": [
"+18880000000",
"+18880000001",
"+18880000002"
],
"pending": [],
"failed": []
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Configure the messaging profile these phone numbers are assigned to:
"" to unassign each number from their respective messaging profileThe list of phone numbers to update.
If true, only assign numbers to the profile without changing other settings.
Successful response with details about messaging bulk update phone numbers.
Show child attributes
{
"record_type": "messaging_numbers_bulk_update",
"order_id": "00000000-0000-0000-0000-000000000000",
"success": [
"+18880000000",
"+18880000001",
"+18880000002"
],
"pending": [],
"failed": []
}Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const messagingNumbersBulkUpdate = await client.messagingNumbersBulkUpdates.create({
messaging_profile_id: '00000000-0000-0000-0000-000000000000',
numbers: ['+18880000000', '+18880000001', '+18880000002'],
});
console.log(messagingNumbersBulkUpdate.data);{
"data": {
"record_type": "messaging_numbers_bulk_update",
"order_id": "00000000-0000-0000-0000-000000000000",
"success": [
"+18880000000",
"+18880000001",
"+18880000002"
],
"pending": [],
"failed": []
}
}