List Audit Logs
GET/audit_events
Retrieve a list of audit log entries. Audit logs are a best-effort, eventually consistent record of significant account-related changes.
Request
Query Parameters
page[number] integer
Page number to load.
page[size] integer
Number of items per page.
filter[created_before] date-time
Filter for audit events created before a specific date.
filter[created_after] date-time
Filter for audit events created after a specific date.
sort string
Possible values: [asc
, desc
]
Set the order of the results by the creation date.
Responses
200: A list of audit log entries.
- application/json
default: Unexpected error.
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/audit_events' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"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",
"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
}
}
{
"errors": [
{
"code": "10001",
"title": "Unauthorized",
"detail": "The request requires user authentication."
}
]
}