Check out our upcoming events and meetups! View events →
Retrieve a list of log messages for all external connections 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
});
// Automatically fetches more pages as needed.
for await (const logMessageListResponse of client.externalConnections.logMessages.list()) {
console.log(logMessageListResponse.code);
}{
"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
}
}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.
Filter parameter for log messages (deepObject style). Supports filtering by external_connection_id and telephone_number with eq/contains operations.
Show child attributes
Consolidated page parameter (deepObject style). Originally: page[size], page[number]
Show child attributes
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
});
// Automatically fetches more pages as needed.
for await (const logMessageListResponse of client.externalConnections.logMessages.list()) {
console.log(logMessageListResponse.code);
}{
"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
}
}