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 logMessage = await client.externalConnections.logMessages.retrieve('1293384261075731499');
console.log(logMessage.log_messages);{
"log_messages": [
{
"code": "10015",
"title": "Invalid attribute",
"detail": "The value provided for the attribute is not valid. Check the value used and try again.",
"source": {
"pointer": "/attribute"
},
"meta": {
"telephone_number": "+12345678",
"external_connection_id": "1293384261075731499",
"ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761"
}
}
]
}Retrieve a log message for an external connection associated with your account.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const logMessage = await client.externalConnections.logMessages.retrieve('1293384261075731499');
console.log(logMessage.log_messages);{
"log_messages": [
{
"code": "10015",
"title": "Invalid attribute",
"detail": "The value provided for the attribute is not valid. Check the value used and try again.",
"source": {
"pointer": "/attribute"
},
"meta": {
"telephone_number": "+12345678",
"external_connection_id": "1293384261075731499",
"ticket_id": "542c3bca-d247-42bc-8fe7-e01d16ecd761"
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the resource.
"1293384261075731499"
Successful response
1 elementShow child attributes
Was this page helpful?