import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const logMessage = await client.externalConnections.logMessages.retrieve('id');
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: 'My API Key',
});
const logMessage = await client.externalConnections.logMessages.retrieve('id');
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
"10015"
"Invalid attribute"
"The value provided for the attribute is not valid. Check the value used and try again."
Show child attributes
The telephone number the log message is associated with, if any.
"+12345678"
The external connection the log message is associated with, if any.
"1293384261075731499"
The ticket ID for an operation that generated the log message, if any.
"542c3bca-d247-42bc-8fe7-e01d16ecd761"
Was this page helpful?