Check out our upcoming events and meetups! View events →
Retrieve a list of audit log entries. Audit logs are a best-effort, eventually consistent record of significant account-related changes.
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 auditEventListResponse of client.auditEvents.list()) {
console.log(auditEventListResponse.id);
}{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"user_id": "550e8400-e29b-41d4-a716-446655440001",
"record_type": "audit_event",
"resource_id": "550e8400-e29b-41d4-a716-446655440002",
"alternate_resource_id": "+14155551234",
"change_made_by": "organization_member",
"changes": [
{
"field": "field.name",
"to": "old value",
"from": "new value"
}
],
"organization_id": "550e8400-e29b-41d4-a716-446655440003",
"change_type": "update",
"created_at": "2023-01-01T00:00:00Z"
}
],
"meta": {
"total_pages": 3,
"total_results": 50,
"page_number": 1,
"page_size": 10
}
}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.
Consolidated page parameter (deepObject style). Originally: page[number], page[size]
Show child attributes
Consolidated filter parameter (deepObject style). Originally: filter[created_before], filter[created_after]
Show child attributes
Set the order of the results by the creation date.
asc, desc "desc"
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 auditEventListResponse of client.auditEvents.list()) {
console.log(auditEventListResponse.id);
}{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"user_id": "550e8400-e29b-41d4-a716-446655440001",
"record_type": "audit_event",
"resource_id": "550e8400-e29b-41d4-a716-446655440002",
"alternate_resource_id": "+14155551234",
"change_made_by": "organization_member",
"changes": [
{
"field": "field.name",
"to": "old value",
"from": "new value"
}
],
"organization_id": "550e8400-e29b-41d4-a716-446655440003",
"change_type": "update",
"created_at": "2023-01-01T00:00:00Z"
}
],
"meta": {
"total_pages": 3,
"total_results": 50,
"page_number": 1,
"page_size": 10
}
}