import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const logMessages = await client.externalConnections.logMessages.list();
console.log(logMessages.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"
}
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}Retrieve a list of log messages for all external connections associated with your account.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const logMessages = await client.externalConnections.logMessages.list();
console.log(logMessages.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"
}
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Filter parameter for log messages (deepObject style). Supports filtering by external_connection_id and telephone_number with eq/contains operations.
Show child attributes
The external connection ID to filter by or "null" to filter for logs without an external connection ID
"67ea7693-9cd5-4a68-8c76-abb3aa5bf5d2"
Telephone number filter operations for log messages. Use 'eq' for exact matches or 'contains' for partial matches.
Show child attributes
Successful response
Show 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?