Check out our upcoming events and meetups! View events →
Creates a new Upload request to Microsoft teams with the included phone numbers. Only one of civic_address_id or location_id must be provided, not both. The maximum allowed phone numbers for the numbers_ids array is 1000.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const upload = await client.externalConnections.uploads.create('1293384261075731499', {
number_ids: [
'3920457616934164700',
'3920457616934164701',
'3920457616934164702',
'3920457616934164703',
],
});
console.log(upload.ticket_id);{
"success": true,
"ticket_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}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.
Identifies the resource.
"1293384261075731499"
Parameters that can be set when creating an Upload request.
1Phone number ID from the Telnyx API.
The use case of the upload request. NOTE: calling_user_assignment is not supported for toll free numbers.
calling_user_assignment, first_party_app_assignment Additional use cases of the upload request. If not provided, all supported usages will be used.
calling_user_assignment, first_party_app_assignment Identifies the location to assign all phone numbers to.
Identifies the civic address to assign all phone numbers to.
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 upload = await client.externalConnections.uploads.create('1293384261075731499', {
number_ids: [
'3920457616934164700',
'3920457616934164701',
'3920457616934164702',
'3920457616934164703',
],
});
console.log(upload.ticket_id);{
"success": true,
"ticket_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}