Join us Jan 27 in SF for the Low Latency Club: Voice AI Observability Meetup! Learn more
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.retrieve(
'7b6a6449-b055-45a6-81f6-f6f0dffa4cc6',
{ id: 'id' },
);
console.log(upload.data);{
"data": {
"ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"tenant_id": "ea175aba-f47c-4702-9400-efaa42688048",
"location_id": "c37e5036-1e87-42e6-86a2-b3e8dd39a2ad",
"status": "error",
"available_usages": [
"calling_user_assignment"
],
"error_code": "<string>",
"error_message": "<string>",
"tn_upload_entries": [
{
"number_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"phone_number": "<string>",
"status": "error",
"error_code": "internal_error",
"error_message": "<string>",
"civic_address_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internal_status": "error"
}
]
}
}Return the details of an Upload request and its phone numbers.
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.retrieve(
'7b6a6449-b055-45a6-81f6-f6f0dffa4cc6',
{ id: 'id' },
);
console.log(upload.data);{
"data": {
"ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"tenant_id": "ea175aba-f47c-4702-9400-efaa42688048",
"location_id": "c37e5036-1e87-42e6-86a2-b3e8dd39a2ad",
"status": "error",
"available_usages": [
"calling_user_assignment"
],
"error_code": "<string>",
"error_message": "<string>",
"tn_upload_entries": [
{
"number_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761",
"phone_number": "<string>",
"status": "error",
"error_code": "internal_error",
"error_message": "<string>",
"civic_address_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"location_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internal_status": "error"
}
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the resource.
"1293384261075731499"
Identifies an Upload request
"7b6a6449-b055-45a6-81f6-f6f0dffa4cc6"
Successful response
Show child attributes
Was this page helpful?