Hello, @Ben Walker
Good afternoon!
Yes, it is possible to collect Audit Log data using the Genesys Cloud Audit APIs.
A good starting point is the Developer Center / API Explorer. For audit data, you can look at endpoints such as:
POST /api/v2/audits/query
This creates an asynchronous audit query execution. You can use:
GET /api/v2/audits/query/servicemapping
to check the valid values for service name, entity type, and actions.
There is also:
POST /api/v2/audits/query/realtime
This is useful for more recent audit data, but it only retrieves up to 14 days of audits for certain services.
One easy way to understand the request body is to reproduce the same search in the Audit Viewer. For example, make a small change to a test object, search for that change in the Audit Viewer, and then refresh the filter while the browser Developer Tools are open on the Network tab.
From there, you can inspect the request made by the UI, check the payload/body, and use it as a reference in API Explorer or Postman. Then you can adjust the date interval, service name, entity type, or filters as needed.
So, in short, I would suggest:
-
Start by finding the event in the Audit Viewer.
-
Use browser Network logs to understand the request structure.
-
Copy only the request body as a reference.
-
Test the same request in API Explorer.
-
Adjust the date range and filters for the data you need.
------------------------------
Arthur Pereira Reinoldes
------------------------------