Skip to main content
GET
/
external_connections
/
log_messages
/
{id}
JavaScript
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"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<int64>
required

Identifies the resource.

Example:

"1293384261075731499"

Response

Successful response

log_messages
object[]
Required array length: 1 element