Skip to main content

AuditTrailService

A list of all methods in the AuditTrailService service. Click on the method name to view detailed information about that method.

MethodsDescription
audit_trail_searchReturns the audit trail data with specific filters applied. Audit trail searching is limited to the last 10,000 records or last 180 days, whichever comes first.

Returns the audit trail data with specific filters applied. Audit trail searching is limited to the last 10,000 records or last 180 days, whichever comes first.

  • HTTP Method: POST
  • Endpoint: /restapi/v1.0/account/{accountId}/audit-trail/search

Parameters

NameTypeRequiredDescription
request_bodyAccountHistorySearchPublicRequestThe request body.
account_idstrInternal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used)

Return Type

AccountHistorySearchPublicResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import AccountHistorySearchPublicRequest

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = AccountHistorySearchPublicRequest(
event_time_from="eventTimeFrom",
event_time_to="eventTimeTo",
initiator_ids=[
"initiatorIds"
],
page=1,
per_page=25,
target_ids=[
"targetIds"
],
site_id="871836004",
action_ids=[
"CHANGE_SECRET_INFO"
],
search_string="542617",
exclude_action_ids=[
"CHANGE_SECRET_INFO"
]
)

result = sdk.audit_trail.audit_trail_search(
request_body=request_body,
account_id="~"
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →